17 private links
RapidApp talk and live demo presented at YAPC::NA 2015 in Salt Lake City on June 9th.
RapidApp is a PSGI-compatable, open-source web toolkit and framework based on Catalyst, ExtJS, Template::Toolkit and DBIx::Class for quickly creating interactive, data-rich webapps and components.
Pflogsumm is a log analyzer for Postfix. It can mail out a summery on a daily, weekly or monthly basis and is fully configurable. The generated report can show you patterns in email traffic so you can better determine bandwidth limitations, mail server abusers or if your mail server needs to be upgraded. Statistics can be very helpful in showing, for example, when most of your mail is sent or received or if that one mail user is sending out more than their fair share of mail. Pflogsumm will give you the ability to quickly determine what machines on your network are the top (ab)users and the proof to follow up company policies with numbers.
Pflogsumm is a single perl file and its only dependancies are perl, the perl module Date::Calc (which is probably already installed on your system) and the proper location of a Postfix log file.
A Perl REPL !
pflogsumm.pl is designed to provide an over-view of postfix activity, with just enough detail to give the administrator a "heads up" for potential trouble spots. The following is an over-view of the reports produced.
Use split with a regex that matches anything.
my @arr = split //, "abcd";
Want to see what's inside a variable in a complete, colored and human-friendly way?
use Data::Printer; # or just "use DDP" for short
p @array; # no need to pass references
Code above might output something like this (with colors!):
[
[0] "a",
[1] "b",
[2] undef,
[3] "c",
]
You can also inspect objects:
my $obj = SomeClass->new;
p($obj);
Which might give you something like:
\ SomeClass {
Parents Moose::Object
Linear @ISA SomeClass, Moose::Object
public methods (3) : bar, foo, meta
private methods (0)
internals: {
_something => 42,
}
}
Take a look at App::module::version
$ module-version
The version of App::module::version in /home/yourself/perl5/lib/perl5 is 1.004
When you upgrade to a new major version of Perl, the XS modules have to be rebuilt :
$ cpanm --reinstall Broken::Module
When you upgrade to a new major version of Perl, the XS modules have to be rebuilt :
$ cpanm --reinstall Broken::Module