Michał Wojciechowski
- Website: odyniec.net/
Recent Actions
-
Posted Brutally Solving a Logic Puzzle with Perl 6 to Michał Wojciechowski
Every now and then, I enjoy solving logic puzzles (or attempting to). Recently I came across this one:
+----+----+----+ | | 3 | 17 | +----+----+----+ | 5 | | | +----+----+----+ | 13 | | 7 | +----+----+----+
There are five prime n…
-
Commented on POD Web View
@Ben: The URL feature first downloads the file to your browser, and is thus limited to sites that allow CORS. For instance, this URL should work: http://api.metacpan.org/source/YANICK/Dancer-1.3118/lib/Dancer/Introduction.pod Anyway, I might change it so that the URL is passed to the...
-
Commented on POD Web View
@nickl: Yeah, I was thinking about that, will look into it. Currently you can use the "expanded view" button (above the preview) to display the HTML in a larger modal window....
-
Commented on POD Web View
@Boris: The styles should not look the same, and code should look like code :) However, syntax highlighting currently only works with the MetaCPAN style. I'm wondering if it might not be displaying properly for you, for some reason --...
-
Posted POD Web View to Michał Wojciechowski
When developing a Perl module, I often want to get a quick preview of the documentation that I'm writing, just to see if everything is in order and how it turns out. I used to do this the old fashioned way, by generating an HTML file with
-
Commented on HTTP::Tiny::SPDY - A Subclass of HTTP::Tiny with SPDY Support
@xdg: Sure, I will send you a pull request on GitHub. I assume HTTP::Tiny::UA::SPDY would be appropriate?...
-
Posted HTTP::Tiny::SPDY - A Subclass of HTTP::Tiny with SPDY Support to Michał Wojciechowski
I have recently returned to working on Arriba, the PSGI-compliant web server with support for the SPDY protocol, modeled on Starman.
I sort of released it (="https://github.com/odyniec/A…
- Posted Arriba - PSGI Web Server with SPDY Support to Michał Wojciechowski
-
Commented on Happy Birthday Perl
@jrw32982: Your terminal needs to support UTF-8....
-
Commented on Happy Birthday Perl
@:m): Ok, here it goes: The "MK__^..." string is the uuencoded bitmap. The second call to unpack uudecodes it, returning a string of bytes, each representing 8 "pixels" of the image. The =~/./g part turns it into a list of...
-
Posted Happy Birthday Perl to Michał Wojciechowski
Happy 25th Birthday, Perl! I made you a card:
perl -C -e'print map+(v9635 x8^unpack B8).(v10)[++$n%9],(unpack u,"MK__^=^WW_S_WK)FNO\$3F5U\$7BJJ.=>U51S-WK)GNM>UF=W%[K[N>?___SW__")=~/./g'
-
Commented on [FB]izzBuzz in Perl
I'm late to the party, but here's my version, using a slightly different approach: say+(Fizz)[++$_%3].Buzz x/.?[50]$/||$_ until$`...
-
Posted Building a Search Web App with Dancer and Sphinx to Michał Wojciechowski
In this article, we'll develop a basic search application using Dancer and that's fairly easy to use, but powerful enough to be deployed in high-traffic sites, such as Craigslist and Dailymotion.
In keepin…
-
Commented on Let Paths Be Paths Again
@Leon Timmermans: That's correct, this module doesn't touch any of that and is mostly useful for constructing relative paths. It wasn't my intention to replace File::Spec entirely, just to provide an alternative, simpler solution for a common use case. As...
-
Commented on Let Paths Be Paths Again
@educated_foo: It is true that most of the time you can get away with just using Unix paths. However, I don't think it's actually guaranteed to work in every situation -- that's why using File::Spec or Path::Class is still recommended....
-
Commented on Let Paths Be Paths Again
@targ: It's definitely a personal thing, and I'm sure many people are just fine with constructing paths with File::Spec or Path::Class, like you are. But for me, it is slightly less readable -- when I look at a path written...
-
Posted Let Paths Be Paths Again to Michał Wojciechowski
The de facto standard way of constructing portable filesystem paths in Perl is through the use of File::Spec's catfile and
-
Posted Perldoc and I Would Like to Wish You a... to Michał Wojciechowski
perldoc perlsyn | perl -ne 's/^.*?"|\\.*$//g,print if/1\.\.15/'
-
Commented on Alternative Dancer Templating Engines
Haml looks more like a DOM tree than a traditional template, and for this reason I find it more readable for things like basic page layout (headers/footers, content placeholders, etc.) -- it gives a clear view of the whole structure...
-
Posted Alternative Dancer Templating Engines to Michał Wojciechowski
Dancer uses a simple model of interfacing with templating engines (based on engines. Thanks to this, if you're not happy with the default
="p…
-
Posted Serving Files with Dancer::Plugin::DirectoryView and Dancer::Plugin::Auth::Htpasswd to Michał Wojciechowski
A while ago I was converting a simple PHP website to Dancer, There wasn't a lot of code, so rewriting went quickly -- but, the site used a few specific features of Apache, namely directory indexes (courtesy of ="http://search.cpan.org/…
-
Commented on GitHub-friendly README files with ExtUtils::MakeMaker and Module::Build
@sshaw: I know that gist of yours, as I found it when I was first looking for a method to generate a README.pod file with MakeMaker -- so thanks for the inspiration :) As for tee, it's there to make...
-
Commented on GitHub-friendly README files with ExtUtils::MakeMaker and Module::Build
Thanks for your comments. I've heard a lot of praise about Dist::Zilla, but haven't used it yet -- now that I know that it does such a good job of handling READMEs, I'm even more inclined to try it. Anyway,...
-
Posted GitHub-friendly README files with ExtUtils::MakeMaker and Module::Build to Michał Wojciechowski
GitHub is a great place to host open-source projects and expose them to a wide community of developers, so it's not surprising that more and more Perl modules are making it their home.
One of the features of GitHub is that it checks if a repository has a …
Comment Threads
-
educated_foo commented on
Let Paths Be Paths Again
I ask because my main reasons for using Path::Class or File::Spec would be fear, uncertainty, and doubt. Where, and how often, will blindly using a Unix path cause trouble?
BTW, I'm not too worried about showing paths to users, since if they're not on Unix, they probably won't understand them. I have never, while using a Mac, had to deal with the colon-separated native paths.
-
ligne commented on
Let Paths Be Paths Again
"Where, and how often, will blindly using a Unix path cause trouble?"
Windows. it works *most* of the time. except sometimes it doesn't. and it probably won't be clear why.
(i speak from horrible experience here, having lost a couple of hours last month debugging a problem where some paths in a configuration file were Unix-style and worked just fine, and others were Unix-style and failed far down the line with obtuse error messages. comedy!)
-
Joel Berger commented on
Happy Birthday Perl
Very cool, thanks!
-
:m) commented on
Happy Birthday Perl
Thanks for the explanation. :-)
cool tricks! -
Steven Haryanto commented on
POD Web View
Cool x 3! Although preview is not as instant as Markdown (like we see on sites like SO), it's very helpful and convnenient to see live preview of POD.
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.