user-pic

mpeters.myopenid.com

  • Commented on SQLite and Writes
    Something that causes a visible error like this is not what people normally refer to as "data loss". In fact, if you use that definition then hard disks can have data loss because if it's full, otherwise valid data will...
  • Commented on On Perl Names And Numbers
    I don't think anyone is saying we should change the version just for marketing reasons, at least I haven't seen anyone say that....
  • Commented on On Perl Names And Numbers
    I agree with almost every point you make. I think some people are getting lost in the idea that we need a new version number in an of itself to attract new blood and hype to Perl. But that's not...
  • Commented on Subroutine Signatures - my Plan (v.1)
    Seems like a lot of the comments here are missing the fact that this is a simple first step that can be expanded later on. But things like method keywords, type constraints, etc need other features in Perl core to...
  • Commented on Using Plack::Middleware::CSRFBlock and jQuery to deal with Cross Site Request Forgery
    I can't really see a reason why having the CSRF token appear in the browser history nor in the server logs is a big problem. CSRF is an attack against the user him/her self and a CSRF token is only...
  • Commented on MIME::Base64 and pearlclutching
    Wouldn't this work as well (for the stringification): $actual_string = encoder($unencoded)->base64 . ''; Seems more straight forward and still just a single line....
  • Commented on When the speed of light is too slow
    I'll second linode. Cheap, no hassles, fast and seems to using pretty decent network. And their NJ datacenter should be plenty close to NYC for your needs....
  • Commented on Unicode and Passwords
    I second what Rafaël says. Normalize your input and you'll have less problems dealing with unicode. It's not just specific to passwords, but other things like searching too. But if you normalize correctly then those characters will be collapsed into...
  • Commented on Smolder setup?
    Sorry about this, since it's my fault it doesn't have enough documentation. Once you get it installed, you shouldn't have to do anything to initialize it. The templates, CSS and JS files are installed into a distribution shared directory (should...
  • Commented on How (not) To Load a Module or Bad Interfaces Make Good People Do Bad Things
    AFAIK there are no Perl core keywords (or built-ins) that have underscores and I think that's intentional. So there's already a barrier to entry. What about load?...
  • Commented on Dan's updates for the week ending August 7th, 2011
    Oh, if you want to contact me it's mpeters@ my company's domain :)...
  • Commented on Dan's updates for the week ending August 7th, 2011
    What kind of complaints are people having with donor.com? I talked with Jim Brandt about it when they were first getting started and offered my company's services (http://plusthree.com) and he said he would get back to me if the donor.com...
  • Commented on What should be in core?
    I think one of the problems that contributes to this debate is that if Perl did remove some modules from core and some script somewhere stops working they get a fairly cryptic error message: Can't locate Something/Random.pm in @INC For...
  • Commented on To switch or not to switch - The MySQL Question
    I'll second the vote for using a Percona build of MySQL. The have some nice patches (some contributed by Google) that make it perform better, scale better and easier to measure. And like JT said, these days the MySQL vs...
  • Commented on How I manage the distribution of Perl5 projects
    At $work, we have a src/ directory for every project and we check in the tar.gz files directly from CPAN into that directory. Each project has a build script which builds those modules and installs them into $project/lib dir. This...
  • Commented on Syntax highlighting for search.cpan.org
    This is awesome, thank you! But I would argue that syntax highlighting should be the default. Lots of casual Perl users and Perl curious people will see these docs and totally miss out. It shouldn't be a feature just for...
  • Commented on What should be core in Perl 5.16?
    (voting for what others have said) Inline JSON List::MoreUtils DBI and DBD for mysql, sqlite and postgres LWP (or at least HTTP::Tiny) Try::Tiny local::lib perlbrew Moose (I'd love to see it in core, but I understand those that have concerns...
  • Commented on App::scrape - Simple HTML scraping from the command line
    If you can add CSS style queries that would be wonderful. They are usually shorter than XPath and are familiar to more people as CSS invades everything. Obviously XPath can do more, so having both as an option seems like...
  • Commented on Easy DOM parsing with Mojo::DOM
    pQuery has been around for a while and so has HTML::Query and they both allow you to use CSS selectors to manipulate HTML. And they can both be used outside of Mojolicious....
  • Commented on Dist::Zilla::Plugin::MetaResourcesFromGit
    Shouldn’t that be Dist::Zilla::Plugin::MetaResourcesFromGitHub ? There are lots of other Git hosting services besides GitHub and some people use their own Git repos/servers....
  • Commented on Test::Tiny and/or TAP::Tiny?
    While I agree that this is fertile ground for a ::Tiny module, I'd urge some caution. There are good reasons that these modules are as complicated as they are. The TAP spec seems simple (and it is compared to things...
  • Commented on Currying
    You curry by hand in Perl if you’d like, or you can use something like Data::Util::Curry to make it easier....
  • Commented on "Pretty" SQL output on test failure
    I think youre missing a use Term::ANSIColor ':constants'; somewhere in there. But other than that, this is a neat trick and I'm already using it, thanks!...
  • Commented on Fundraising idea for YAPC?
    I could get behind this. We've had informal poker BOFs before at YAPCs and they are always a lot of fun....
  • Commented on Your Test Suite is Broken
    I just can't see #3 as so black and white. Yes at my $job we have a large test suite that tests some things that take a long time to run (they even take a long time to run in...
  • Commented on When rand isn't random
    Am I missing something or should that instead be: PerlChildInitHandler "sub { srand }" Notice the "srand" instead of "rand" call. Otherwise if some library you're using during startup (or preload) makes a call to rand() then you're still sharing...
  • Commented on Read (the perldoc) carefully
    In general you should really try to avoid using CGI.pm to generate HTML. Not only does it have little gotcha's like the override thing (that will bite you over and over again) but it's ties your application down in how...
  • Commented on ffi_call( 'Wolf!' )
    When you create Alien::libffi I would suggest that you bundle the actual library as part of it, but only install that library if it's already not installed. You can use something like Devel::CheckLib to do the actual check....
  • Commented on Distributing applications via CPAN
    Smolder tries to be an application that can be installed from CPAN. But it's definitely painful and has been hard to get right (not that's its right yet either...). Shared files aren't too bad with File::ShareDir, but other things like...
Subscribe to feed Recent Actions from mpeters.myopenid.com

  • Roland Lammel commented on On Perl Names And Numbers

    A change of version number shall reflect an advance, not solely be a marketing instrument.

    We have quite some chances to do that now.
    The different works on creating a usable MOP would be a real reason to do that. Modern perl has it's own hype in the perl camp and the syntax seems quite settled (think Moose or Moo). Having finally a single sane implementation in core would be a very good reason for a major version (even if it's named 5.20, I don't really care) and with some buzz around it.

    Even having a roadmap would be considered a reason IMHO ;-)

  • Timm Murray commented on SQLite and Writes

    Whatever you want to call it, I still don't think it's a good way to do things.

  • tommolesworth.myopenid.com commented on SQLite and Writes

    Useful information, thanks for that.

    Is there any particular reason for the manual error checks on each step rather than setting the RaiseError flag? (this modified version of 02_busy.t seems to indicate that it throws an error as expected, on first read of your post I thought you were talking about an "invisible" data loss situation)

    Also, switching to mysql (or other DBs) won't help much here, there's still the chance of deadlocks - see ="http://stackoverflow.com/questions/2596005/working-around-mysql-error-deadlock-found…

  • cbt commented on SQLite and Writes

    This is why, when I have an app that uses sqlite, I jump through hoops to avoid opening it more than once. I put blocking 'flock' calls in the 'open' method of my database class. And I have it print a big fat warning message if it blocked. If I have a brain fart and try to open more than once, I get a loud early warning. Before I've caused any failed database updates.

  • Jesse Thompson commented on When rand isn't random

    Ack, bit by this in mod_perl 2.0.8! The PerlChildInitHandler workaround seems to solve my problem.

Subscribe to feed Responses to Comments from mpeters.myopenid.com

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.