PrePAN

Sign in to PrePAN

PrePAN provides a place
to discuss your modules.

CLOSE

Requests for Reviews Feed

Struct::Path Path lib for nested structures where path is also a structure

There are two main reasosns why such wheel as Path reinvented again:

  1. Existed libs use strings as items indicators, it's possible for collisions to occur. Example: '/a/0/c' may be path for both {a => [{c => x}]} and {a => {0 => {c => x}}}.

  2. There is no module on CPAN (at least I failed to find such) which use perl structure for a path (useful, for example, in JSON conf files, in inter process communications, etc).

Suggestions/critics are welcome =)

mr-mixas@github 0 comments

Linux::RTC::Ioctl Access to the Linux Real Time Clock driver using ioctl requests

Access to Linux Real Time Clock (RTC) device.

Can read/set the RTC date and time, can set an alarm, can generate periodic timer events with a given frequency, can generate events whenever the displayed time changes (on the boundary between seconds).

On most hardware the wake-up alarm can pull the computer out of sleep/stand-by and even power-off, so use this to set-up maintenance tasks over night.

Note the RTC runs in its own time zone (either GMT or local), which the device does not know, so the RTC time may or may not match your local time. Do not use to replace the usual system date and time or timer functions.

Usually needs root access for the device. Any methods are present only if the platform exposes them. Any methods will be successful only if the RTC hardware implements them.

terminatorul@github 0 comments

Graphics::GKS Graphics Kernel System (G.K.S.)

The functionality of GKS is wrapped up as a data model standard in the STEP standard, section ISO 10303-46.

See Also : p5-graphics-gks on jmcveigh's GitHub

This is a completed works, in part, by Jason McVeigh of General Software Contracting and the Linux User Group in Orillia, ON, CA.

12/05/2016 -- imports

Appendix

## SWIG Library ( // 3.x):

  • exceptions

  • carray

    -- bool_ptr -- char_ptr -- uchar_ptr -- short_ptr -- long_ptr -- float_ptr -- double_ptr

  • cpointer

    -- bool_ptr -- char_ptr -- uchar_ptr -- short_ptr -- long_ptr -- float_ptr -- double_ptr

jmcveigh@github 1 comment

Graphics::VTK Perl Bindings for the VTK Toolkit

Graphics::VTK

I had hoped to use current visualization graphics technologies from Perl 5 in my micro-small business. After forking the EntropyOrg GitHub of Zaki Mughal, I was able to bring the namespaces vst, vst.util and vst.util.colors to Perl from the official KitWare Python bindings for VTK 6.2.

The current CPAN module for Graphics::VTK is outdated.

This method, using Inline::Python will keep Graphics::VTK (http://www.vtk.org) fresh for the foreseable future as it is based on the official KitWare Python bindings.

The current version of VTK is 7.0. My testing is with 6.2 as this is the Fedora 23 (my operating system) stable distribution. Official KitWare Python bindings are also available for VTK 7.0.

p5-graphics-vtk on jmcveighs GitHub

jmcveigh@github 1 comment

Inky Inky templates, in Perl

"Zurb Foundation" has created a nice little HTML superset, called "inky", specifically suited for the creation of HTML emails. It abstracts away some parts of an HTML email which are repeated many times in an email, such as columns or row - or parts which are difficult to get right across mail clients, such as vertical spacers.

This repository is a straight "port" into Perl from their JS/NPM version at https://github.com/zurb/inky.

mfontani@github 0 comments

Struct::Diff Recursive diff tools for nested perl structures

Hi all,

I think module will be useful for those writing programs like sync dumpfile < - > API, diff visualizers and so on.

Extra examples: https://github.com/mr-mixas/Struct-Diff.pm/blob/master/examples.txt

Critics/suggestions?

Thanks =)

mr-mixas@github 0 comments

CheckUpdates::AUR pacman (Arch Linux Package Manager) has "checkupdates" for repo, this is for AUR

3ed@github 6 comments

Games-LatticeGenerator A lattice generator for cut&fold.

The above code will create six PNG images in the current directory, which can be cut and fold together to form a "spaceship". This is a randomized 3D object (not completely random, though, there is some symmetry). It is useful mainly for kids. You may see the result of a similar program at:

http://www.pawelbiernacki.net/4kids/cutandfold/spaceship_notex/index_en_US.jsp

Questions

Is the name OK? Can I use the "Games" namespace?

pawel_biernacki@twitter 0 comments

Mozilla::CA::Debian Replace Mozilla::CA using certificates from /etc/ssl/certs

Doc

Root certificates are a major component of TLS security. Many CPAN modules rely on Mozilla::CA as a default, portable, list of root certificates.

But when relying on Mozilla::CA, we rely on:

  • the maintainer to release often to keep Mozilla::CA in sync with the Mozilla certificates list
  • the maintainer of the module to be trustable (no compromised certificates introduced)
  • yourself or your sysadmin to keep your local copy of Mozilla::CA up to date with the latest CPAN release
  • the CPAN mirror from not being compromised to serve an altered version of Mozilla::CA
  • you can't use additional root certificates installed on your system that are not in Mozilla list (unless the application allow to use multiple certificate databases)
  • you can't filter the Mozilla list to exclude some certificates

This is many risks while on a Debian system you already have a list of certificates that:

  • you already trust for all tasks on your system
  • is updated with other system packages

So Mozilla::CA::Debian replaces Mozilla::CA, providing the same interface (including hijacking the package name) but while using the certificates from /etc/ssl/certs.

Implementation

The implementation uses lazy loading to build the certificates file (Mozilla::CA exposes the certificate database while Debian exposes a directory of files) only when the VERSION is requested or when SSL_ca_file function is called.

It also allows both Mozilla::CA and Mozilla::CA::Debian to be installed in @INC. Mozilla::CA::Debian will only be used if it is loaded first.

$Mozilla::CA::VERSION reported will be the timestamp of the most recent file in /etc/ssl/certs.

Status

The code is working. POD has to be written (probably will be copied from the block above).

Questions

  • I'm not sure about the features. What other system use a directory of PEM files?
  • I'm not sure about the name, as my implementation may work on other systems than Debian.
  • Is hijacking the Mozilla::CA package the right way?

dolmen@github 2 comments

Net::FreeIPA Perl bindings for FreeIPA (using JSON REST API)

Net::FreeIPA is a perl FreeIPA JSON API client class

stdweird@github 1 comment