fireartist's Journal fireartist's use Perl Journal en-us use Perl; is Copyright 1998-2006, Chris Nandor. Stories, comments, journals, and other submissions posted on use Perl; are Copyright their respective owners. 2012-01-25T02:34:26+00:00 pudge Technology hourly 1 1970-01-01T00:00+00:00 fireartist's Journal Strawberry Perl and the joy of installing Padre ;) <p>I haven't used MS Windows as my main OS in around 3 years - not long after I created Vanilla Perl for Alias' "vertical metre of beer" contest, in fact.</p><p>For various reasons, I decided this Monday to switch from using Fedora and running Windows inside a virtual machine when necessary - to running Windows 7 as my main OS, and running Fedora inside a virtual machine when necessary.</p><p>After installation, I grabbed the latest Strawberry Perl installer and ran it - nice and quick, with no unnecessary questions.<br>Fired up a console - yup, perl.exe is in my path - nice.</p><p>Then I fired up the CPAN shortcut from the programs menu - `install HTML::FormFu` - completed with no errors - nice.<br>Same for Catalyst, DBIx::Class, HTML::FormFu::Model::DBIC,<nobr> <wbr></nobr>...</p><p>Catalyst::Controller::HTML::FormFu failed with errors from WWW::Mechanize - but then that normally happens for me under linux too. If memory serves, I force installed WWW::Mechanize, installed Test::WWW::Mechanize, force installed Catalyst::Test::WWW::Mechanize, and then installed Catalyst::Controller::HTML::FormFu with all tests passing.</p><p>Tried installing DBD::mysql and after spending far too long battling with its Makefile.PL and then compilation errors, I thought "does Strawberry ship with a working PPM nowadays?" - and yes - it does!<br>Start a new console; ppm; install DBD::mysql.<br>very nice!</p><p>Yes, then I installed Padre with no errors<nobr> <wbr></nobr>:)<br>which isn't something I had managed to do under Fedora - after building a threading perl, I still couldn't get Wx to install.</p><p>I'm not complaining about the installation errors I did encounter - I consider having to work around occasional cpan errors as a small price to pay for the benefits that cpan modules give me - heck, my own modules aren't immune from installation errors occasionally.</p><p>What amazes me is - first, how far the Strawberry Perl community have taken the original Vanilla Perl hack and made it into an unrecognisably slick and usable product - and secondly, how their testing and feedback efforts have made Perl on Windows so much more viable and enjoyable.</p><p>Looking at and the wiki, I can't even figure out who is currently working on the project - so thanks, whoever you are!<nobr> <wbr></nobr>;)</p> fireartist 2009-10-29T11:28:37+00:00 journal Thank you, Test::Aggregate authors! <p>HTML-FormFu test suite: 326 files, 1781 tests.</p><p>As of svn revision 1205, the runtime has dropped from 50 seconds to 8 seconds.</p><p>In a word, "thankyou"<nobr> <wbr></nobr>:)</p> fireartist 2008-09-16T11:38:23+00:00 journal YAPC::EU auction booty - komodo IDE <p>I've been using the free komodo editor for the past few months - since I finally got too frustrated with the slow memory-hog that is Eclipse/EPIC (and this is<nobr> <wbr></nobr>/after/ recently upgrading to a new 2.2GHz dual-core 2GB ram machine).</p><p>I managed to buy one of the perl Dev-Kits that were auctioned off in Copenhagen last week.</p><p>There must have been a bit of confusion, as it was advertised as "including komodo", which it wasn't - but ActiveState were good enough to let me have a license for the Komodo IDE instead of the Dev-Kit, as that was what I was really interested in.</p><p>Within about ten seconds of loading the IDE up, I was grinning, and very happy with my purchase.<br>The subroutine select-menu, the code browser, svn integration, DOM browser - this is what eclipse/EPIC tries to be - but this fast!</p><p>Granted, I only paid 300 DKK, not the usual 295 USD - but now that I've seen the product and started working with it - I'll certainly be getting my $work to buy any upgrades that come out.</p> fireartist 2008-08-20T08:18:51+00:00 journal buggy firefox / trackpad <p>After weeks of frustration with firefox randomly scrolling back through the page history when I tried to use the trackpad on this Dell laptop - I've discovered the magic incantation to fix it.</p><p>about:config</p><p>mousewheel.horizscroll.withnokey.action = 0</p> fireartist 2007-04-06T06:52:00+00:00 journal problem solved: fedora 5, vsftpd, cannot change directory <p> <code> "500 oops: cannot change directory" </code> </p><p>Trying to ftp in to a Fedora Core 5 box using a local username. Password is accepted, but the connection is then closed with this error message.</p><p>This is because of SELinux's policies. To fix it, issue (as root):</p><p> <code> setsebool -P ftp_home_dir=1 </code> </p><p>The -P flag ensures the value is saved after reboot.</p><p> <small> <b>keywords:</b> Fedora Core 5 linux, vsftpd, SELinux, connection failure</small> </p> fireartist 2006-06-28T15:27:20+00:00 journal Been shopping at "Club 24 Honours"? <p>If you find a transaction in your bank statement from a company called "Club 24 Honours LEEDS. GB" and you think you've never done business with a Club 24, never mind been to Leeds; don't waste money getting your bank to dispute the transaction, it's actually from "Honours Student Loans".</p><p>Of course.</p><p>Hopefully google will now lead others to the truth!</p> fireartist 2006-05-03T13:00:39+00:00 journal problem solved: par, mingw win32, compilation failure <p> Compilation of PAR 0.89 fails with this error message: </p><blockquote><div><p> <tt>&gt;dmake<br>gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_<br>SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX&nbsp; -I"C:\usr\local\perl\lib\CORE" s<br>tatic.c<br>In file included from c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/<br>fcntl.h:20,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from mktmpdir.h:3,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from mktmpdir.c:1,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from static.c:8:<br>c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/io.h:162<nobr>:<wbr></nobr> 39: macro "mk<br>dir" requires 2 arguments, but only 1 given<br>dmake:&nbsp; Error code 129, while making 'static.o'<br>dmake:&nbsp; Error code 255, while making 'subdirs'</tt></p></div> </blockquote><p> Solution: Near the top of the PAR file "myldr/static.c" change this: </p><blockquote><div><p> <tt>#ifdef WIN32<br># include &lt;process.h&gt;<br># define mkdir(file, mode) _mkdir(file)<br>#endif</tt></p></div> </blockquote><p> to this (just add the io.h line): </p><blockquote><div><p> <tt>#ifdef WIN32<br># include &lt;io.h&gt;<br># include &lt;process.h&gt;<br># define mkdir(file, mode) _mkdir(file)<br>#endif</tt></p></div> </blockquote><p> <small> <b>keywords:</b> PAR, mingw, perl, windows, win32, mkdir, compilation failure </small> </p><p> <small> <b>Reference:</b> <a href=""></a> </small> </p> fireartist 2005-10-17T09:23:15+00:00 journal problem solved: PAR, pp, Wx, window immediately closes <p>This is because PAR seems to fork a new child process, then immediately close. This causes the <code>unless (caller)</code> condition in the file to always be false.</p><p>in the main file, change:</p><blockquote><div><p> <tt>unless(caller){<br>&nbsp; &nbsp; my $app = myApp-&gt;new();<br>&nbsp; &nbsp; $app-&gt;MainLoop();<br>}</tt></p></div> </blockquote><p>to this:</p><blockquote><div><p> <tt>my $app = myApp-&gt;new();<br>$app-&gt;MainLoop();</tt></p></div> </blockquote><p> <small> <b>keywords:</b> PAR, pp, WxGlade, Wx, wxperl, perl, windows, win32</small> </p> fireartist 2005-08-19T18:56:48+00:00 journal problem solved: PAR, pp, Wx, "Unable To locate Component" <blockquote><div><p> <tt>This application has failed to start because wxbase26u_gcc_custom.dll was not found. Re-installing the application may fix this problem.</tt></p></div> </blockquote><p>Add the<nobr> <wbr></nobr>.dll using the -l argument to pp. Specify the full path to the<nobr> <wbr></nobr>.dll, build the<nobr> <wbr></nobr>.exe again and repeat.</p><p>I had to add:</p><blockquote><div><p> <tt>-l c:\\Perl\\site\\lib\\auto\\Wx\\wxbase26u_gcc_custom.dll<br>-l c:\\Perl\\site\\lib\\auto\\Wx\\wxmsw26u_adv_gcc_custom.dll<br>-l c:\\Perl\\site\\lib\\auto\\Wx\\wxmsw26u_core_gcc_custom.dll</tt></p></div> </blockquote><p> <small> <b>keywords:</b> PAR, pp, Wx, wxperl, activestate, perl, windows, win32</small> </p> fireartist 2005-08-19T18:54:37+00:00 journal problem solved: PAR, pp, Wx, window immediately closes <p>Run the<nobr> <wbr></nobr>.exe from a command prompt, so that you can see the error messages. If it's not finding modules, add them to your pp argument list using the -M flag. Build the<nobr> <wbr></nobr>.exe again and repeat.</p><p>I had to add:</p><blockquote><div><p> <tt>-M Wx::DND<br>-M Wx::DocView<br>-M Wx::FS<br>-M Wx::Grid<br>-M Wx::Help<br>-M Wx::Html<br>-M Wx::MDI<br>-M Wx::Print<br>-M utf8</tt></p></div> </blockquote><p> <small> <b>keywords:</b> PAR, pp, Wx, wxperl, perlapp, activestate, perl, windows, win32</small> </p> fireartist 2005-08-19T18:52:25+00:00 journal problem solved: perlapp, Wx, window immediately closes <p>Run the<nobr> <wbr></nobr>.exe from a command prompt, so that you can see the error messages. If it's not finding modules, manually add them to the "Added Modules" list in perlapp.</p><p>I had to add:</p><blockquote><div><p> <tt>Wx::DND<br>Wx::DocView<br>Wx::FS<br>Wx::Grid<br>Wx::Help<br>Wx::Html<br>Wx::MDI<br>Wx::Print <br> utf8</tt></p></div> </blockquote><p> <small> <b>keywords:</b> perlapp, Wx, wxperl, activestate, perl, windows, win32</small> </p> fireartist 2005-08-19T18:40:00+00:00 journal problem solved: GetOverlappedResult, Fast::CGI, apache error <blockquote><div><p> <tt>(OS 109)The pipe has been ended.<br>:FastCGI: comm with server "D:/cgi-bin/fcgi/test.cgi"<br>aborted: GetOverlappedResult() failed</tt></p></div> </blockquote><p>Ignore the GetOverlappedResult() in the apache error_log, just do <code>&gt;perl test.cgi</code> to find out the <i>real</i> error.</p><p> <small> <b>keywords:</b> GetOverlappedResult(), FAST::CGI, fast-cgi, perl, apache, windows, win32</small> </p> fireartist 2005-08-19T18:38:17+00:00 journal