Click here to get back home

new module proposal

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
new module proposal =?ISO-8859-1?Q?m=E4ttu?= 03-29-2008
Posted by =?ISO-8859-1?Q?m=E4ttu?= on March 29, 2008, 2:02 pm
Please log in for more thread options
Hi everyone

This is my first posting and my first module (proposal) for CPAN.
I need some advice..
I am about to write a module (another one you may say) to put things
on images.
The concept is to cut an image into boxes on which things are drawn.
There are (and will be more) backends for graphics libraries. The goal
is to use the same user code with different libraries like GD,
ImageMagick, Imager and so on. One could start a programm with IM and
then just switch to GD by defining a different library in the
constructor method.

The idea is to make it easy to implement more backends.
And to make it easy to write wrappers which use the basic
functionality of the module. And wrapper-wrappers.. ;-)

You may find the code here:
http://puffin.ch/perl/mnnm/

There is some documentation as well..
Perhaps read lib/MNNM.pm / lib/MNNM.html first.

There are some examples in /examples to demonstrate what can be done
already and to see if it can be done on your system.
(Note: you need to install GD or IM to run them, or both if you run
them all with run_all_examples.pl)

The first thing this module needs is a good name (for CPAN).
My No Name Module is perhaps not a smart choice. ;-)

Then:
What should be done next?
When should I ask for an PAUSE account?
Some more advice?

cheers
:m)

Posted by Mumia W. on March 29, 2008, 10:32 pm
Please log in for more thread options
On 03/29/2008 01:02 PM, mättu wrote:
> Hi everyone
>
> This is my first posting and my first module (proposal) for CPAN.
> I need some advice..
> I am about to write a module (another one you may say) to put things
> on images.
> The concept is to cut an image into boxes on which things are drawn.
> There are (and will be more) backends for graphics libraries. The goal
> is to use the same user code with different libraries like GD,
> ImageMagick, Imager and so on. One could start a programm with IM and
> then just switch to GD by defining a different library in the
> constructor method.
>
> The idea is to make it easy to implement more backends.
> And to make it easy to write wrappers which use the basic
> functionality of the module. And wrapper-wrappers.. ;-)
>
> You may find the code here:
> http://puffin.ch/perl/mnnm/
>
> There is some documentation as well..
> Perhaps read lib/MNNM.pm / lib/MNNM.html first.
>
> There are some examples in /examples to demonstrate what can be done
> already and to see if it can be done on your system.
> (Note: you need to install GD or IM to run them, or both if you run
> them all with run_all_examples.pl)
>
> The first thing this module needs is a good name (for CPAN).
> My No Name Module is perhaps not a smart choice. ;-)
>
> Then:
> What should be done next?
> When should I ask for an PAUSE account?
> Some more advice?
>
> cheers
> :m)

Based upon your short description, I might suggest Image::TextTiled. You
might want to do a 'tar tvzf mnnm-0.05.tar.gz' to check if the files
have the ownerships and permissions that you want.

Good luck.

Posted by sisyphus on March 30, 2008, 5:45 am
Please log in for more thread options
=2E
=2E
> When should I ask for an PAUSE account?

You can create a PAUSE account whenever you like. (You don't have to
wait until you've got something to upload to CPAN.)

When you get around to uploading your module you can also "register
the namespace" if you want. But namespace registration is not
compulsory - and it's my impression that many authors don't go to the
trouble of registering their modules. I forget the details of
namespace registration as I no longer bother with it - but it's not
hard if you do want to register your module.

These days, if I want to upload a new module to CPAN I simply upload
the source tarball (tar.gz) using my PAUSE account (by selecting
"Upload a file to CPAN" on the PAUSE menu), and everything else gets
taken care of automatically - without any further action on my part.

Cheers,
Rob

Similar ThreadsPosted
RFC: Yahoo::DrivingDirections -- new module proposal September 15, 2004, 9:25 am
proposal for new module -- Math::TriangularNumbers February 21, 2005, 10:19 pm
Module Proposal: Calendar::CelticTree January 27, 2007, 9:20 am
Recall::Template - new module proposal March 14, 2007, 3:21 pm
[RFC] Apache::Session::Memcached - new module proposal September 14, 2004, 3:54 pm
Scary module base namespace proposal: Metaweb August 16, 2007, 5:51 pm
[RFC] Data::Endian (proposal for module to read/write big-endian floats/doubles) July 3, 2007, 5:26 pm
Proposal for PTools::* bundle March 21, 2007, 5:32 pm
PROPOSAL: Error::Exception June 19, 2008, 3:39 pm
Proposal: String::Format::General December 1, 2006, 11:04 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap