user-pic

Alberto Simões

  • About: I blog about Perl. D'uh!
  • Posted Arango::Tango to Alberto Simões

    I am planning on a new project, and a friend suggested me to look to Arango, as an alternative do Mongo, specially because it includes a graphs query language integrated. As I am not really used to Mongo at all, decided to give it a try.

    Unfortunately I did not find a proper module to use …

  • Posted PRC 2016 - Fouth Semester to Alberto Simões

    This was not just a bad year for musicians. Unfortunately not. And the last three months were busy, with lot of (mostly bureaucratic) work. I was expecting the Christmas day to have some extra-time and do, at least one, a decent PR, but I got sick and the will to program just passed by.

    So…

  • Posted PRC 2016 - Third Trimester to Alberto Simões

    Here I am again making a summary of my work during the third trimester of my second year on the CPAN Pull Request Challenge:

  • For July I got Algorithm-GooglePolylineEncoding. This module did not include a META.json file, so my PR was it generation. It was great to have interac…
  • Commented on Do not pass perl globals as arguments to subroutines
    Of course this will not save your ass when using third party modules, I know :)...
  • Commented on Do not pass perl globals as arguments to subroutines
    I would say that if you do your usual first subroutine line: sub foo { my ($arg1, $arg2) = @_; ... } you will be safe. But my preferred solution is even better: use feature 'signatures'; Please, SawyerX, make them...
  • Commented on PRC 2016 - Second Trimester
    I see what you mean, thanks Aristotle. Sometimes not easy to know how other will read, mainly when not writing in your own language....
  • Commented on PRC 2016 - Second Trimester
    Dear Sawyer, Sorry. I should probably rephrase the whole post. Or probably now it is a bit too late. For me things weren't that bad. I know you, Ricardo Signes and Paul Johnson enough, to know of your busy lives....
  • Posted PRC 2016 - Second Trimester to Alberto Simões

    This second semester got me modules owned by well known community members. I expected that to make my life easier, namely to prepare more relevant PRs, but unfortunately it did not work that way.

    For April, I got Dist::Zilla. My PR was the documentation of 'Dist::Zilla::App::Tester', but I…

  • Posted PRC 2016 - First Three Months to Alberto Simões

    As last year I was unable to post every month about the Pull Request Challenge assignments, I decided that this year I would try to post updates every three months.

    So, for the first month, I got WebInject. The PR was not huge. Just a contribution to add a README file to the distribution. …

  • Posted Ressurrecting Perl.pt to Alberto Simões

    onion.png

    In the last week, as a result of YAPC::EU::2015, the main website for the `="http://perl…

  • Commented on My YAPC::EU 2015: The Art of Community
    And that Japanese are fast? :-)...
  • Commented on SWP Day One
    Great to hear from Tobi Oetiker. I "knew" him, given I translated his great book on LaTeX, but didn't know his incursion in the Perl community. Just great....
  • Posted CPAN PRC: July is Data::Dump to Alberto Simões

    For July, the CPAN Pull Request Challenge assigned me Data::Dump. Better than the pull request itself, this assignment was great to know Data::Dump, as I have never see it before.

    For the PR, I tried to read user complains, and one suggestion was to keep UTF-8 intact when dumping to a stre…

  • Posted CPAN PR-Challenge: June Report to Alberto Simões

    I know this is getting a lame excuse. But with lack of time, the patch I had time to prepare this month is, again, small. It is mostly some extra tests: https://github.com/szbalint/WWW--Curl/pull/10

    But better few than nothing...

  • Posted CPAN PR-Challenge: May Report to Alberto Simões

    Somehow I missed to post my April report. Don't remember well what was the PR. It was something basic, as I lack the time for real work.

    This month I prepared a Pull Request on removing HTML from result entries obtained with WWW::W…

  • Commented on Term::ReadLine::Gnu Unicode Hell
    And yes, the comparison works well with $newGloss. But the post needs to be decoded first......
  • Commented on Term::ReadLine::Gnu Unicode Hell
    I confess I did not notice the difference when looking to the manpage. I though they were just aliases (similar names). But of course, it was my mistake. Nevertheless, still not that good: my $newGloss = $self->{term}->readline(">> ", decode("utf-8", $gloss->{gloss}));...
  • Commented on Term::ReadLine::Gnu Unicode Hell
    Hmms, is there a difference? It seems I have to RTFM. Will say something soon. Thanks....
  • Posted Term::ReadLine::Gnu Unicode Hell to Alberto Simões

    I must be doing something wrong. Surely. I have a REST service. I get data using HTTP::Tiny and use JSON::Tiny to decode it.

    If I try to print to the Term::ReadLine::Gnu OUT filehandle, I get double encoded strings, like this:

        coração
    

    If I try to binmode it …

  • Posted CPAN PR-Challenge - April Report to Alberto Simões

    This was a busy month in my teaching duties. Also, needed to debug and create pull requests for other projects. Nevertheless, I managed to create a small pull request in the PRC assigned module, Google::ProtocolBuffers Perl implementation.

    The pull request was a validation of the google sp…

  • Posted CPAN PR-Challenge: March Report #2 to Alberto Simões

    The second pull request for this month is, this time, in the distribution that was assigned to me, Exobrain. In this case, it was a simple PR on dependencies.

    First, define the minimum version for Data::Structure::Util, the distribution for which I created my first PR this month, in order …

  • Commented on CPAN PR-Challenge: February Report
    Hi, Ovid. Sorry if my post feels like I am complaining. That is not the idea. Just marking this PR as done and going for the next one. Nevertheless, I am happy to maintain the PR until it gets good...
  • Posted CPAN PR-Challenge: March Report #1 to Alberto Simões

    This month I was assigned Exobrain. My first problem is that I can not install install it at all because dependencies are failing. The first failing dependency was Data::Structure::Util.

    Looking around in Testers Matrix I found that is was failing only on 5.20 or above. Then, looked up the…

  • Posted CPAN PR-Challenge: February Report to Alberto Simões

    Given the lack of answers and/or comments from Ovid and the Community on my Pull Request on MooseX::Role::Strict, and given my lack of knowledge on Moose internals, I will declare the February assignment as finished.

    Nevertheless, if meanwhile anybody comments on my Pull Request and sugges…

  • Commented on The Moose Slippery - February PR Challenge
    I am sorry for your bandwidth and for the moose. But it is a 4MB gif, not that much bandwidth :-)...
  • Posted The Moose Slippery - February PR Challenge to Alberto Simões

    Cross-posted from null.perl-hackers.net
    This February my Pull Request assignment on the CPAN Pull Request …

  • Posted PR-Challenge: January to Alberto Simões

    As pointed out in my previous post (here), in the January assignment on the Pull Request Challenge, I got the Data::ObjectDriver module.

    For this module I created two very simple pull…

  • Posted PR-Challenge: January 1st PR to Alberto Simões

    So, yeah, to make me more active in the Perl community I decided to join the Pull Request Challenge. I have a quite big number of modules to maintain, but sometimes it is good to look to some other people code to learn something.

    My attribution for January was Data::ObjectDriver. I am not …

  • Posted Language Identification, Neural Networks and Perl to Alberto Simões

    I will not write much, but just would like to let you know there is a new Perl module for Language Identification (Lingua::Identifier). It uses a neural network for the task (read this for details), with Math::Matrix::MaybeGSL, that…

  • Commented on Spam on CPAN
    Just in case you did not notice, the page it refers to is on sale. Mostly sure the authors name and email are fake....
  • Subscribe to feed Recent Actions from Alberto Simões

    • Tom Wyant commented on Do not pass perl globals as arguments to subroutines

      Well, maybe this is cargo cult. Back in 2010 I spent quite a bit of time tracking down a problem where I was returning the value of $+[0] from a subroutine, and the caller was not receiving the value that the subroutine returned. The fix was to force the copy by assigning the value to a lexical variable.

      I was never able to figure out exactly what was going on (this was in PPIx-Regexp, it was seen when Perl-Critic called it and I was never able to duplicate the p…

    • KES commented on Do not pass perl globals as arguments to subroutines

      Even this first subroutine line will not save you if you will do some debugger stuff:

      sub process {
      my( $state, $sub ) = @_;
      }

      #somewhere in DB::sub:
      process( $DB::single, $DB::sub );

      Here when &process is called the $DB::sub is changed and $sub will get 'DB::process' instead of original value.
      Same logic is applied when you pass $DB::single, but at DB::DB sub when $^D |= (1

    • Aristotle commented on Do not pass perl globals as arguments to subroutines
      I was never able to figure out exactly what was going on […but…] I have made it a practice ever since

      That is pretty much cargo cult by definition. 😊 Not that I can fault you for reacting the way you did; so might I.

      The fact that a match-related variable was involved makes me suspicious immediately – all of them have various scoping and lifetime oddities for reasons of efficiency and/or DWIM. But who knows if that’s really the issue.

      Problem is, this is a situation like with folk remedies: with no tested model of what was going on, your r…

    • FeloniousSkunk commented on I'm looking for issues of The Perl Journal

      If you're interested, I found this post while researching the history of the PJ, prior to ebaying Vol01/Iss01 through Vol03/Iss04 - let me know if you would prefer them to me listing them.

    • FeloniousSkunk commented on I'm looking for issues of The Perl Journal

      BTW: They are in mint condition (just now took them out of the envelopes!)

    Subscribe to feed Responses to Comments from Alberto Simões

    About blogs.perl.org

    blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.