Seneca College teams with FOSS projects for hands-on learning
07-21-2008 01:00 PM
Where most computer science departments emphasize theory and mention free and open source software (FOSS) only indirectly, Seneca College in Toronto, Canada, offers a different approach: a hands-on introduction to the community in partnership with the Mozilla and Fedora projects. Now in its third year, the program is expanding rapidly and receiving attention from other academic institutions that hope to imitate it.
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
My work is to write or design a script in bash shell script format for the Linux O/S Debian distro "Knoppix... (2 Replies)
I am researching the reasons why Unix / Linux is the chosen operating system versus Windows. I have had difficutly narrowing down resources. I am wondering if anyone has any favorite sources that they would care to share.
Thanks
Dan (2 Replies)
Hi all,
I am interested in your opinions of the best way to get hands-on security experience with AIX. I am proficient with most linux flavors on intel, but need to get familiar with AIX.
Any ideas on how to get some hands-on without lumping out $4Gs for a used RS/6000?
Thanks
EW (4 Replies)
Hello all,
I have a quick question for those that might know,
Would a degree in Computer and Information Science (CIS) be enough to get in the Unix Systems Administration door at the junior level? Or is Computer Science a better choice.
The reason I ask is because a degree in CIS is the only... (8 Replies)
Mojolicious::Plugin::JSONConfig(3pm) User Contributed Perl Documentation Mojolicious::Plugin::JSONConfig(3pm)NAME
Mojolicious::Plugin::JSONConfig - JSON configuration plugin
SYNOPSIS
# myapp.json
{
"foo" : "bar",
"music_dir" : "<%= app->home->rel_dir('music') %>"
}
# Mojolicious
my $config = $self->plugin('JSONConfig');
# Mojolicious::Lite
my $config = plugin 'JSONConfig';
# Reads "myapp.json" by default
my $config = app->config;
# Everything can be customized with options
my $config = plugin JSONConfig => {file => '/etc/myapp.conf'};
DESCRIPTION
Mojolicious::Plugin::JSONConfig is a JSON configuration plugin that preprocesses it's input with Mojo::Template.
The application object can be accessed via $app or the "app" function. You can extend the normal config file "myapp.json" with "mode"
specific ones like "myapp.$mode.json". A default configuration filename will be generated by decamelizing the application class with
"decamelize" in Mojo::Util or from the application filename.
The code of this plugin is a good example for learning to build new plugins, you're welcome to fork it.
OPTIONS
Mojolicious::Plugin::JSONConfig inherits all options from Mojolicious::Plugin::Config and supports the following new ones.
"template"
# Mojolicious::Lite
plugin JSONConfig => {template => {line_start => '.'}};
Attribute values passed to Mojo::Template object used to preprocess configuration files.
METHODS
Mojolicious::Plugin::JSONConfig inherits all methods from Mojolicious::Plugin::Config and implements the following new ones.
"parse"
$plugin->parse($content, $file, $conf, $app);
Process content with "render" and parse it with Mojo::JSON.
sub parse {
my ($self, $content, $file, $conf, $app) = @_;
...
$content = $self->render($content, $file, $conf, $app);
...
return $hash;
}
"register"
my $config = $plugin->register($app, $conf);
Register plugin in Mojolicious application.
"render"
$plugin->render($content, $file, $conf, $app);
Process configuration file with Mojo::Template.
sub render {
my ($self, $content, $file, $conf, $app) = @_;
...
return $content;
}
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojolicious::Plugin::JSONConfig(3pm)