user-pic

Flavio Poletti

  • Commented on Graphics::Potrace
    @Ben: actually it's already at https://github.com/polettix/Graphics-Potrace - thanks for asking!...
  • Posted Graphics::Potrace to polettix

    A few months ago I released Graphics::Potrace, that provides Perl bindings to the potrace library. So, if you want to convert rasters into vectors from Perl... you know where to go.

  • Commented on origami envelopes
    @Toby: thanks for the hint, even tough I don't know exactly where I can use it to enhance the program. BTW, 140/99 is a nice approximation but the aspect ratio for A4 paper is exactly the square root of 2....
  • Posted origami envelopes to polettix

    I've always been fond of origami, and in some periods I also had time to fold some as a hobby. Alas, this is not the case any more... most of the times.

    I'm also proud to produce my greeting cards for birthdays and occasions, when I remember to actually make one (which happens seldom... bu…

  • Commented on Why my()?
    I thought that in school they teached how to behave as well. Trying to bend this blogging platform to show only "approved" (by who?) Perl content does not seem to show particular skills in this sense, lest the bad habit...
  • Commented on Haven't Blogged in a While...
    Seems interesting! Is it feasible/easy to set up a system with subcommands a-la git? I would suggest to write the examples with fully expanded keywords (field instead of fld, method instead of mth, ...), it might save you a few...
  • Commented on Parse::RecDescent and number of elements read on the fly
    In this particular case, the possibility to produce a self-contained Pure-Perl module was important in order to have a single script with all the needed stuff inside. Anyway, in my complete and total ignorance of Marpa I would be curious...
  • Posted Parse::RecDescent and number of elements read on the fly to polettix

    I recently had to develop a small parser for some coworkers and I turned to Parse::RecDescent for handling it. The grammar was not particularly difficult to address, but it had some fields that behave like arrays whose number of elements…

  • Commented on When the speed of light is too slow
    I suspect that other factors kick in in addition to speed of light, e.g. latency in intermediate network elements. This is something that might be difficult to factor out even if you're geographically closer, although you're going to have savings...
  • Posted Logging in Dancer to polettix

    I don't remember whether I blogged about Dancer::Logger::Log4perl or not, but a recent post by

  • Commented on Sets operations
    @Gabor: sort relies upon temporary files for its operation, in order to be able to work on big files without going out of memory. And of course relying upon it is one of the major assumptions of the program, unless...
  • Posted Sets operations to polettix

    To help some coworkers I whipped up a program to perform set operations in Perl. It's quite basic but it's been pretty effective so far and it's on github.

    Sets are assumed to be files where each line is a different element. It is assumed …

  • Commented on Alien::Base is almost ready
    I was dubious about integrating relevant C code stuff from Potrace, but now it seems that I can just wait a few days and try to set up an Alien::Potrace library instead!...
  • Commented on Dist::Zilla, Pod::Weaver and bin
    @Jakub: interesting idea - e.g. for adding docs to non-Perl stuff - I'll try it, thanks!...
  • Commented on Dist::Zilla, Pod::Weaver and bin
    @Mithaldu: here's the script: https://gist.github.com/1382375 It also involves doing some additional things - e.g. hop into the right directory and perform a final cleanup of older reports. Nothing that cannot be replicated in a Perl program... but why bother when...
  • Commented on Dist::Zilla, Pod::Weaver and bin
    Thank you for your comments! Which, by the way, let me remember why I had the problem in the first place - I developed an application that has to run in a Linux environment, and I wanted to ship a...
  • Posted Dist::Zilla, Pod::Weaver and bin to polettix

    I use Dist::Zilla for managing my distributions. It's awesome and useful, although it lacks some bits of documentation every now and then; this lack is compensated in other ways, e.g. IRC.

    I also use ="https://metacpan.org/module/Dist::Zilla::Plugin::P…

  • Commented on Exclusive Perl Archive Nook
    @Gabor: I recently re-created a CPAN::Mini mirror and it was 1.4GB - a bit overkill when all you have to do is install some modules that fit into a few MB. @Pedro: Carton seems way wider... thank you for saying...
  • Posted Exclusive Perl Archive Nook to polettix

    I started working on epan, a (somewhat thin) wrapper around cpanminus to create a version of CPAN trimmed down to your needs for installing specific stuff.

    This is what the cool guys…

  • Posted DotCloud::Environment to polettix

    I'm in the process of releasing DotCloud::Environment, a module that should ease the developer's life with providing a unified entry point to get dotCloud's configurations for an application.

  • Commented on Quick note on using module JSON
    I agree 100% with Aristotle's explanation and point: the programmer MUST know what comes in and what comes out, and this also means that there is never the need to ask Perl how data are stored internally. Apart when you...
  • Commented on Quick note on using module JSON
    @gizzlon: the summary was - well - a summary to provide a flash of what had been discussed above. As I was suggesting, in new stuff one should use all character-based strings in the code and adopt by design that...
  • Commented on Quick note on using module JSON
    @zby: the underlying assumption in the whole post is that you're dealing with utf8, either explicitly or implicitly, and not another encoding. As far as I understand, Perl scalars have a flag that tells whether the internal sequence of bytes...
  • Posted Quick note on using module JSON to polettix

    This Unicode stuff tried to drive me crazy, hopefully I'll record something useful here because the docs are a bit too intricated to understand.

    The underlying assumption is that data is "moved" using utf8 encoding, i.e. files and/or stuff transmitted on the network contain data that is ut…

  • Commented on Why you should scrape HTML with regexes
    This reminds me about this and this on Perl Monks some time ago... I agree that when the info you're after can be detected by some local context, going for the global context can be weaker and more time consuming....
  • Posted git for me to polettix

    I use git for my own projects, and the day-by-day stuff does not involve track of the code and avoid losing anything.

    getting started (installation apart!)

    In the directory for the new project, just

  • Commented on To Depend Or Not To Depend
    D'oh you are all right! The funny thing is that I *knew* about UNIX filepaths... just forgot it! Thank you all very much indeed, especially jnareb.openid.pl for putting me on the right track!...
  • Posted To Depend Or Not To Depend to polettix

    When starting an application, I always strive to reduce dependencies as not take me too much time to go.

    It turns out that I chose one of the worst possible examples. Check out the comments below and - more importan…

Subscribe to feed Recent Actions from Flavio Poletti

Subscribe to feed Responses to Comments from Flavio Poletti

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.