config maker 0.2
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 2714
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-mplayer 0.1
config-mplayer offers you a small but very useful GUI program which is designed for customising your mplayer configuration. more>>
config-mplayer 0.1 offers you a small but very useful GUI program which is designed for customising your mplayer configuration. It is NOT a wrapper or GUI version of mplayer. It's only business is showing some configuration options and rewriting the mplayer config whenever you change them. The idea is that you can customise it with YOUR desired configuration options just by editing a few files.
Major Features:
- Switching my audio output between rooms (devices).
- Changing the DISPLAY which mplayer will play on - for playing on my main desktop, my TV, or within VNC (and in the case of VNC - selecting the SDL driver which actually works over VNC).
- Switching the video to use X11 so that I can take a screenshot.
- Changing the aspect ratio of a video when the file is incorrect.
- Toggling the 'eq2' filter on when I start a second instance of mplayer and the first instance has got the overlay brightness control.
- Starting in fullscreen
- Cropping the black borders off of a PAL video within a wide format stream.
- Adding a volume filter for low or high volume video files.
- Toggling deinterlacing.
- Forcing the OSD on or off.
- Forcing the index of a dodgy file to be rebuilt.
- Switching to using a different XV port when the main one decides to stop working and just stays blue (very rare these days).
- Selecting an MPEG-TS transport stream pid.
- Adjusting subtitle position
Requirements:
- GTK version 2.xxx
- perl GTK2 bindings (perl-gtk2 or gtk2-perl depending on your system)
- You don't need any GNOME rubbish installed
Added: 2007-02-26 License: GPL Price: FREE
1 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)
El Jay Icon Maker 0.6
El Jay Icon Maker is a Firefox extension that allows you to right click on any image and create an icon for use with livejournal more>>
El Jay Icon Maker is a Firefox extension that allows you to right click on any image and create an icon for use with livejournal.com There are two options to choose from when making an icon "Create Icon Instantly" and "Create Icon With Options".
Selecting either link redirects you to the El Jay icon maker home page where you can rotate, crop, add text and borders to the image. The El Jay icon maker was made for use with llivejournal.com, but can be used on any site that requires an image smaller than 100x100 for an icon.
This is not a support forum, if you have questions or problems please go here: http://www.livejournal.com/users/lechatron/407511.html?mode=reply
<<lessSelecting either link redirects you to the El Jay icon maker home page where you can rotate, crop, add text and borders to the image. The El Jay icon maker was made for use with llivejournal.com, but can be used on any site that requires an image smaller than 100x100 for an icon.
This is not a support forum, if you have questions or problems please go here: http://www.livejournal.com/users/lechatron/407511.html?mode=reply
Download (0.005MB)
Added: 2007-05-30 License: MPL (Mozilla Public License) Price:
1060 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::Magic 0.801
Config::Magic is a Perl extension for reading all kinds of configuration files. more>>
SYNOPSIS
Example 1
use Config::Magic;
use Data::Dumper;
$input=q{
Section 1 {
[Section 4]
#Comment style #1
//Comment style #2
;Comment style #3
Monkey:1
Monkey=>2
Monkey:=3
< Section 2 >
Foo = Bar
Baz { Bip:1
Pants==5 }
< /Section >
< Tasty Cheese="3" / >
< Section 5 >
Foo=Bippity,boppity,boo
< /Section >
}
}
#Fastest way:
$config = new Config::Magic();
print Dumper($config->parse($input));
Example 2
use Config::Magic;
use Data::Dumper;
#Arguments with sorting $ordered_hash = 1; $config = new Config::Magic("input.conf",$ordered_hash); print Dumper($config->parse); $result = $config->get_result; print Dumper($result);
OUTPUT (from second example)
Section 1 => {
Section 4 => {
Monkey => [
1,
2,
3
]
},
Section => [
{
2 => {},
Foo => Bar,
Baz => {
Bip => 1,
Pants => 5
}
},
{
attribs=>5,
Foo => [
Bippity,
boppity,
boo
]
}
],
Tasty => {
Cheese => {
}
}
This module uses Parse::RecDescent to generate a parse tree for nearly any kind of configuration file. You can even combine files/configuration types. It understands XML, Apache-style, ini files, csv files, and pretty much everything else I could find. Just give it a file, and get a hash tree out. If it doesnt understand the file, or it isnt well formed (such as if a bracket is missing, etc), then you will get a partial result, or no result at all.
There is a single option that can be passed to this file which indicates that the resulting hash should be ordered rather than random. This is done using Tie::Hash::Indexed. You can also call "setordered" directly to change from using ordered to unordered hashes.
Download (0.020MB)
Added: 2007-04-12 License: Perl Artistic License Price:
624 downloads
File::Maker 0.05
File::Maker is a Perl module that mimics a make by loading a database and calling targets methods. more>>
File::Maker is a Perl module that mimics a make by loading a database and calling targets methods.
SYNOPSIS
#####
# Subroutine interface
#
use File::Maker qw(load_db);
%data = load_db($pm);
######
# Object interface
#
require File::Maker;
$maker = $maker->load_db($pm);
$maker->make_targets(%targets, @targets, %options );
$maker->make_targets(%targets, %options );
$maker = new File::Maker(@options);
Generally, if a subroutine will process a list of options, @options, that subroutine will also process an array reference, @options, [@options], or hash reference, %options, {@options}. If a subroutine will process an array reference, @options, [@options], that subroutine will also process a hash reference, %options, {@options}. See the description for a subroutine for details and exceptions.
When porting low level C code from one architecture to another, makefiles do provide some level of automation and save some time. However, once Perl or another high-level language is up and running, the high-level language usually allows much more efficient use of programmers time; otherwise, whats point of the high-level language. Thus, makes great economically sense to switch from makefiles to high-level language.
The File::Maker program module provides a "make" style interface as shown in the herein above. The @targets contains a list of targets that mimics the targets of a makefile. The targets are subroutines written in Perl in a separate program module from the File::Maker. The separate target program module inherits the methods in the File::Maker program module as follows:
use File::Maker;
use vars qw( @ISA );
@ISA = qw(File::Maker);
The File::Maker methods will then find the target subroutines in the separate target program module.
The File::Maker provides for the loading of a hash from a program module to provide for the capabilities of defines in a makefile. The option pm = $file> tells File::Maker to load a database from the __DATA__ section of a program module that is in the Tie::Form format. The Tie::Form format is a very flexible lenient format that is about as close to a natural language form and still have the precision of being machine readable.
This provides a more flexible alternative to the defines in a makefile. The define hash is in a separate, very flexible form program module. This arrangement allows one target program module that inherits the File::Maker program module to produce as many different outputs as there are Tie::Form program modules.
<<lessSYNOPSIS
#####
# Subroutine interface
#
use File::Maker qw(load_db);
%data = load_db($pm);
######
# Object interface
#
require File::Maker;
$maker = $maker->load_db($pm);
$maker->make_targets(%targets, @targets, %options );
$maker->make_targets(%targets, %options );
$maker = new File::Maker(@options);
Generally, if a subroutine will process a list of options, @options, that subroutine will also process an array reference, @options, [@options], or hash reference, %options, {@options}. If a subroutine will process an array reference, @options, [@options], that subroutine will also process a hash reference, %options, {@options}. See the description for a subroutine for details and exceptions.
When porting low level C code from one architecture to another, makefiles do provide some level of automation and save some time. However, once Perl or another high-level language is up and running, the high-level language usually allows much more efficient use of programmers time; otherwise, whats point of the high-level language. Thus, makes great economically sense to switch from makefiles to high-level language.
The File::Maker program module provides a "make" style interface as shown in the herein above. The @targets contains a list of targets that mimics the targets of a makefile. The targets are subroutines written in Perl in a separate program module from the File::Maker. The separate target program module inherits the methods in the File::Maker program module as follows:
use File::Maker;
use vars qw( @ISA );
@ISA = qw(File::Maker);
The File::Maker methods will then find the target subroutines in the separate target program module.
The File::Maker provides for the loading of a hash from a program module to provide for the capabilities of defines in a makefile. The option pm = $file> tells File::Maker to load a database from the __DATA__ section of a program module that is in the Tie::Form format. The Tie::Form format is a very flexible lenient format that is about as close to a natural language form and still have the precision of being machine readable.
This provides a more flexible alternative to the defines in a makefile. The define hash is in a separate, very flexible form program module. This arrangement allows one target program module that inherits the File::Maker program module to produce as many different outputs as there are Tie::Form program modules.
Download (0.076MB)
Added: 2007-02-16 License: Perl Artistic License Price:
980 downloads
Soundboard Maker 0.1
Soundboard Maker is a tool for making and running soundboards. more>>
Soundboard Maker is a tool for making and running soundboards.
You can play selected audio, save soundboards, load soundboards, and distribute your soundboards to other users.
The interface is easy to customize.
<<lessYou can play selected audio, save soundboards, load soundboards, and distribute your soundboards to other users.
The interface is easy to customize.
Download (0.31MB)
Added: 2006-06-22 License: GPL (GNU General Public License) Price:
956 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
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
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
Config::Abstract 0.13
Config::Abstract is a Perl extension for abstracting configuration files. more>>
Config::Abstract is a Perl extension for abstracting configuration files.
SYNOPSIS
use Config::Abstract;
my $ini = new Config::Abstract(testdata.pl);
Config::Abstract is the base class for a number of other classes created to facilitate use and handling of a variety of different configuration file formats. It uses the Data::Dumper file format to serialise it self and can be initialise from a file of that format
EXAMPLES
We assume the content of the file testdata.pl to be:
$settings = {
book => {
chapter1 => {
title => The First Chapter, ever,
file => book/chapter1.txt
},
title => A book of chapters,
chapter2 => {
title => The Next Chapter, after the First Chapter, ever,
file => book/chapter2.txt
},
author => Me, Myself and Irene
}
};
use Config::Abstract;
my $settingsfile = testdata.pl;
my $abstract = new Config::Abstract($settingsfile);
my %book = $abstract->get_entry(book);
my %chap1 = $abstract->get_entry_setting(book,chapter1);
my $chap1title = $chapter1{title};
# Want to see the file?
# If you can live without comments and blank lines ;),
# try this:
print("My abstract file looks like this:n$abstractnCool, huh?n");
# We can also create an ini file from it
# A bit crude, but it does the job
bless($abstract,Config::Abstract::Ini);
print($abstract);
<<lessSYNOPSIS
use Config::Abstract;
my $ini = new Config::Abstract(testdata.pl);
Config::Abstract is the base class for a number of other classes created to facilitate use and handling of a variety of different configuration file formats. It uses the Data::Dumper file format to serialise it self and can be initialise from a file of that format
EXAMPLES
We assume the content of the file testdata.pl to be:
$settings = {
book => {
chapter1 => {
title => The First Chapter, ever,
file => book/chapter1.txt
},
title => A book of chapters,
chapter2 => {
title => The Next Chapter, after the First Chapter, ever,
file => book/chapter2.txt
},
author => Me, Myself and Irene
}
};
use Config::Abstract;
my $settingsfile = testdata.pl;
my $abstract = new Config::Abstract($settingsfile);
my %book = $abstract->get_entry(book);
my %chap1 = $abstract->get_entry_setting(book,chapter1);
my $chap1title = $chapter1{title};
# Want to see the file?
# If you can live without comments and blank lines ;),
# try this:
print("My abstract file looks like this:n$abstractnCool, huh?n");
# We can also create an ini file from it
# A bit crude, but it does the job
bless($abstract,Config::Abstract::Ini);
print($abstract);
Download (0.008MB)
Added: 2007-04-12 License: Perl Artistic License Price:
925 downloads
Patch Maker 3.0
Patch Maker helps you manage multiple in-progress source code patches to software. more>>
Patch Maker helps you manage multiple in-progress source code patches to software. Patch Maker remembers which files are part of which patch, and keeps them disentangled during the development process.
It speeds up common operations and housekeeping tasks, allowing you to focus on writing code. It is a command-line tool written in Perl, and so is usable on (at least) Windows, Linux and Mac OS X.
Enhancements:
- Initial SVN support was added to go with CVS.
- The configuration was moved to the .pmrc file in the home directory.
- Message and error printing were tidied up and standardized.
<<lessIt speeds up common operations and housekeeping tasks, allowing you to focus on writing code. It is a command-line tool written in Perl, and so is usable on (at least) Windows, Linux and Mac OS X.
Enhancements:
- Initial SVN support was added to go with CVS.
- The configuration was moved to the .pmrc file in the home directory.
- Message and error printing were tidied up and standardized.
Download (0.032MB)
Added: 2006-07-11 License: GPL (GNU General Public License) Price:
5673 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::Scoped 0.11
Config:Scoped is a feature rich configuration file parser. more>>
Config:Scoped is a feature rich configuration file parser.
Main features:
- Complex recursive datastructures to any extent with scalars, lists and hashes as elements,
- As a subset parses any complex Perl datastructures (no references and globs) without *do* or *require*,
- Include files with recursion checks,
- Controlled macro expansion in double quoted tokens,
- Lexically scoped parameter assignments and pragma directives,
- Perl quote like constructs to any extent, , "", and here docs<<less
Main features:
- Complex recursive datastructures to any extent with scalars, lists and hashes as elements,
- As a subset parses any complex Perl datastructures (no references and globs) without *do* or *require*,
- Include files with recursion checks,
- Controlled macro expansion in double quoted tokens,
- Lexically scoped parameter assignments and pragma directives,
- Perl quote like constructs to any extent, , "", and here docs<<less
Download (0.065MB)
Added: 2007-04-12 License: Perl Artistic License Price:
927 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 maker 0.2 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