Camelia, the Perl 6 bug

IRC log for #mojo, 2011-03-19

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:31 xris left #mojo
00:40 metaperl left #mojo
00:42 metaperl joined #mojo
02:03 Debolaz sri: What inspired mojos routing api?
02:28 sri Debolaz: a lot
02:30 sri rails, merb, catalyst... and a gazillion more frameworks
02:32 sri i've prolly played with every web framework in existence ;)
02:33 sri Debolaz: why are you asking?
04:01 ispy_ joined #mojo
04:04 ispy__ left #mojo
04:05 minimalist How do I add files or dirs to $app->static ?
04:45 Alias joined #mojo
04:48 Alias__ left #mojo
05:25 minimalist I guess what I'm trying to ask is, how do I prevent my image files from going through the dispatcher.
06:55 perlrocks Twitter: ""Mojolicious API Reference," the Japanese translation has been completed - with Sample Code Getting Started with Perl http://bit.ly/eB7s2t" (ja) --wPerlnews http://twitter.com/wPerlnew​s/status/49000997317648384
07:07 abra joined #mojo
07:19 sherr left #mojo
07:22 abra left #mojo
08:27 baton8 joined #mojo
10:16 * sri yawns
11:37 GitHub66 joined #mojo
11:37 GitHub66 mojo: master Sebastian Riedel * a66add4 (3 files in 3 dirs): added recipe to lite tutorial - http://bit.ly/fHtyCt
11:37 GitHub66 left #mojo
12:02 metaperl sri: have you played with web2py?  -- http://www.web2py.com
12:04 sri metaperl: not much
12:04 purl same here, dude
12:09 metaperl sri:  the [comparison document](http://www.web2py.com/examples​/static/web2py_vs_others.pdf) is what got me interested. That and the demonstration of modularity - http://vimeo.com/21185623
12:09 metaperl the database abstraction layer is quite nice. it reminds me of what Mark Lawrence did for CPAN
12:12 sri the comparison seems rather outdated though
13:23 abra joined #mojo
13:44 crab oh, <%= is rails-like syntax?
13:44 crab i didn't realise
13:45 crab or maybe i'd just forgotten.
13:46 sri it is ERB
13:46 sri http://www.ruby-doc.org/stdlib/l​ibdoc/erb/rdoc/classes/ERB.html
13:47 sri ruby core module like forever
13:48 sri http://www.kuwata-lab.com/erubis/ # everybody uses this one now though
14:31 Bender2 joined #mojo
14:33 perlrocks left #mojo
14:33 perlrocks joined #mojo
14:33 perlrocks left #mojo
14:33 perlrocks joined #mojo
14:34 sri anyone know how Bender2 works?
14:35 sri Bender2: how do you work?
14:35 sri :/
14:37 sri Bender2: trust perlrocks
14:37 Bender2 But I don't trust you in #mojo, sri
14:37 sri :o
14:37 sri was kicked by sri: sri
14:37 sri joined #mojo
14:38 sri Bender2: trust perlrocks
14:38 Bender2 But I don't trust you in #mojo, sri
14:38 sri :(
14:38 ispy_ left #mojo
15:30 sherr joined #mojo
15:41 memowe joined #mojo
15:42 memowe left #mojo
15:42 memowe joined #mojo
15:43 perlrocks Twitter: "Perl is a new framework looks interesting mojolicious (· ∀ ·)" (ja) --brain_apple http://twitter.com/brain_app​le/status/49133800495648769
15:52 crab perl is a new framework
16:45 crab Sat Mar 19 22:06:49 2011 debug Mojolicious:252 [8602]: Helper "config" already exists, replacing.
16:45 crab i get a lot of those warnings. how come only for config?
16:46 crab ah, it's a conflict. i see.
16:46 crab my fault.
16:47 crab oh, no.
16:50 sri harmless
16:50 purl hmmm... harmless is good enough :)
16:55 marcus left #mojo
17:00 perlrocks Twitter: "Mojolicious API Reference - GitHub Mojolicious Japanese translation Mojolicious API Reference Guide Mojo - The Box Mojo:: Asset - resource base class Mojo:: A. .. http://bit.ly/e7VsP5" (ja) --webdesignStatio http://twitter.com/webdesignSt​atio/status/49153271515983872
17:06 Debolaz sri: The reason that I asked where you got the inspiration from your router is that I will probably copy many ideas for it in my own router.
17:06 sri lol, yet another one
17:07 sri it has been cloned 3 or 4 times now i think
17:08 Debolaz Hehe, my problem with the existing ones on CPAN is that they all try to be too clever to really be useful.
17:10 sri routers are the new template engines i guess, at some point everybody will write one
17:11 sri what bothers me is that there's so little innovation, i'd like to see actually new features
17:12 abra left #mojo
17:17 Debolaz I'm writing my own web framework as a research project (Been doing it for a long time actually, on and off), and I've never been happy with any of the dispatchers I've tried.
17:22 sri don't think i'll ever be happy with any dispatcher :)
17:28 Debolaz Let me rephrase then: I've never found a useful one that is independant of a framework.
17:37 crab a friend and i wrote a rather innovative router and page construction thing for a web app... in C++
17:37 crab worked damn well, too.
17:54 dku joined #mojo
18:17 abra joined #mojo
18:31 perlrocks Twitter: "Just coded the entire initial #phenona RESTful API in around 20 minutes with #mojolicious. That thing is magic. :) #perl" --phenona http://twitter.com/phenona​/status/49176229512871936
18:38 abra left #mojo
19:10 moritz with latest development version, when I die in a controller I get
19:10 moritz Sat Mar 19 20:09:53 2011 error Mojolicious::Controller:318 [14724]: Can't use string ("") as a subroutine ref while "strict refs" in use at /home/moritz/perl5//perls/perl-5.12.2/lib/site​_perl/5.12.2/Mojolicious/Plugin/TagHelpers.pm line 200
19:17 sri moritz: can't replicate
19:19 moritz sri: happens only when run with  daemon --reload
19:22 moritz sri: can you replicate wtih --reload?
19:22 sri moritz: nope
19:23 sri and i'm glad i can't, reload bugs are a pita ;p
19:24 moritz sri: https://gist.github.com/877731
19:25 moritz that's latest HEAD
19:25 sri no idea, the error is very very strange
19:26 sri how is $old not a coderef
19:27 moritz very strange indeed
19:28 sri maybe it has something to do with the delayed execution (because of the new callback)
19:28 moritz goes away when I add -MCarp::Always :/
19:28 sri Oo
19:28 moritz maybe a perl bug
19:28 sri perl version?
19:28 purl rumour has it perl version is v5.10.1
19:28 sri purl: forget perl version
19:28 purl sri: I forgot perl version
19:29 moritz sri: 5.12.2 (no threads) on debian stable
19:29 moritz amd64
19:29 sri 5.12.3 here
19:36 * moritz wonders if it made sense to implement --reload as   exec($^X, $0, @ARGV) if $modified;
19:39 sri that would kill everything
19:40 sri very slow and kills all existing connections
19:41 * moritz just implemented authorization in his app. under() is very nice mechanism :-)
19:49 sri :)
19:49 sri btw. you would also need a background process to watch for file changes with the exec approach
19:50 sri don't think exec works at all, you would usually kill the server and restart everything
19:51 sri the hypnotoad approach is pretty cool and 100% reliable, but only works on unix :/
20:03 crab i wonder why anyone would want to use mojo on windows
20:04 sri still common in big companies to torture developers with windows workstartions
20:06 moritz how do I include post data in post_ok (Test::Mojo)?
20:07 sri takes the same arguments as the Mojo::UserAgent equivalent
20:08 moritz the documentation for Mojo::UserAgent isn't very helpful either
20:08 moritz my $tx = $ua->post('http://kraih.com' => {Connection => 'close'});
20:08 moritz is that Connection => 'close' POST data? or header?
20:09 sri header of course
20:09 sri you might be indeed misunderstanding something
20:09 sri post doesn't take key/value pairs
20:09 moritz hm
20:09 sri just a readily prepared content string
20:10 sri you might want post_form
20:10 moritz ah
20:10 moritz that's it
20:10 moritz thanks
20:11 moritz \o/ login + authorization tests work now
20:12 sri \o/
21:00 tempire I run a windows workstation
21:00 tempire But that's what vmware is for
21:02 tempire I think I've eliminated the need for an esb at an enterprise level.
21:03 tempire Using mojolicious, and mojo routes in multiple ways
21:04 * tempire returns to his cave
21:11 * sri needs a supervillain cave too
22:27 dku left #mojo
22:28 baton8 left #mojo
22:30 dku joined #mojo
22:32 Debolaz sri: I've got a syntax like this on my router now: $dispatcher->path('/foo')->to (sub {});
22:38 ok22__ left #mojo
22:51 Akron joined #mojo
22:51 ok22 joined #mojo
23:00 kaare left #mojo
23:30 jpablobr joined #mojo
23:51 ok22 left #mojo
23:56 jpablobr left #mojo

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary