Camelia, the Perl 6 bug

IRC log for #mojo, 2012-07-31

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

All times shown according to UTC.

Time Nick Message
00:36 d4rkie joined #mojo
00:46 jb360 joined #mojo
00:48 SmokeMachine joined #mojo
00:50 laouji joined #mojo
01:04 jb360 left #mojo
01:05 scott joined #mojo
01:45 jnap joined #mojo
02:02 d4rkie joined #mojo
02:36 Psyche^ joined #mojo
02:53 crab what exactly is the question?
02:54 crab i don't think there's a problem
03:01 noganex_ joined #mojo
03:02 asarch joined #mojo
03:04 jeen joined #mojo
03:05 tempire tomato tomato
03:11 xaka joined #mojo
03:22 xaka1 joined #mojo
03:27 asarch joined #mojo
03:57 xaka joined #mojo
05:30 ovnimancer joined #mojo
05:45 Britzel joined #mojo
05:52 spleenjack joined #mojo
06:04 Foxcool joined #mojo
06:35 amirite keep getting 502 bad gateway with mojolicious lite
06:35 amirite how do i step up debug verbosity
06:39 Vandal joined #mojo
06:58 cosmincx joined #mojo
07:02 diegok amirite: where you get that?, nginx?
07:05 cosmincx joined #mojo
07:30 taryk joined #mojo
07:49 nferraz joined #mojo
07:57 fhelmber_ joined #mojo
08:07 xaka1 joined #mojo
08:07 mire joined #mojo
08:12 xaka joined #mojo
08:19 daxim joined #mojo
08:25 lukep joined #mojo
08:34 davido joined #mojo
08:52 marcus sri: what crab said
08:52 marcus tempire: when I deploy to heroku, is there a simple way to serve static assets from /public as static, not through mojo?
08:55 davido A commit from a few days ago: "we now recommend Perl 5.14"... Does anyone have any contacts at Dotcloud?  It would be good for Mojolicious and Perl if they would take note of that recommendation and move past 5.12.x.
08:56 marcus tempire: or does that just happen out of the box?
08:56 marcus davido: also, apple :p
08:56 batman joined #mojo
08:58 davido One of these days I'll have to see if there's a way to specify in the dotcloud.yml a configuration that pulls in a newer Perl.
09:00 pau4o joined #mojo
09:02 davido Anyway, since miyagawa is on board with DC, maybe we could get some traction there.
09:06 sri davido: miyagawa is not at dotcloud anymore
09:07 davido Oh.  Nevertheless, I'm going to bring it up with them.  I think they're working on expanding the flexibility in their services anyway by working toward basing everything on the "custom service."
09:07 sri crab/marcus: the question was if _options lowers the value of the affected commands as examples
09:16 jamesw joined #mojo
09:37 judofyr joined #mojo
09:44 Foxcool_ joined #mojo
10:03 jamesw joined #mojo
10:25 andrefs joined #mojo
10:40 tm joined #mojo
10:41 tm hi ;)
10:45 marcus hi tm
10:49 JiYu joined #mojo
10:53 D4RK-PH0ENiX joined #mojo
10:54 GitHub126 joined #mojo
10:54 GitHub126 [mojo] kraih pushed 1 new commit to master: http://git.io/OTNLUg
10:54 GitHub126 [mojo/master] let the renderer handle bundled templates - Sebastian Riedel
10:54 GitHub126 left #mojo
10:55 tm joined #mojo
10:56 sri this intentionally breaks Mojolicious::Plugin::DOCRenderer
10:57 sri hopefully he'll fix it now
10:58 sri do not use private apis!
11:00 sri maybe intentionally is the wrong word... i know it will break and warned him a few days ago
11:04 marcus sounds a bit like something MLEHMANN would do.
11:05 marcus I need that bumper sticker.. WHAT WOULD MLEHMANN DO?
11:05 sri :o
11:11 mjy joined #mojo
11:12 ovnimancer1 joined #mojo
11:12 mjy hi, the mojo docs claim "no requirements besides Perl 5.10.1 " and the "hello world example" breaks unless Any::Moose is use'd, I don't get it ;)
11:13 marcus mjy: huh? We don't depend at all on Any::Moose
11:13 marcus mjy: which hello world example?
11:14 mjy the one at "Getting Started" (http://mojolicio.us/) in 3 lines
11:14 mjy without Moose I get:
11:14 mjy syntax error at /usr/local/share/perl/5.10.0/Mojo/UserAgent.pm line 24, near "has ["
11:14 mjy some broken version installed here then I guess
11:14 sri that's not Perl 5.10.1
11:15 mjy This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi
11:15 sri "syntax error at /usr/local/share/perl/5.10.0..."
11:15 mjy @INC:
11:15 mjy /etc/perl
11:15 mjy /usr/local/lib/perl/5.10.1
11:15 mjy [...]
11:15 mjy /usr/local/lib/perl/5.10.0
11:15 mjy etc.
11:16 sri please don't paste into the channel
11:16 mjy ok
11:16 * marcus build 5.10.1 now
11:16 mjy it's 5.10.1, standard debian package and has the 5.10.0 paths also in @INC
11:16 sri mojolicious is 100% 5.10.1 compatible, i run the whole test suite before every release with it
11:17 judofyr ah, debian packages
11:17 mjy yep :(
11:17 sri what does "mojo version say"
11:17 sri umm... "mojo version"
11:18 mjy hm works on another box ... ok so someone installed an odd broken version of Mojo that requires Moose(?)
11:18 sri never existed
11:18 mjy weird
11:19 sri now, what does "mojo version" say?
11:19 mjy it says the above syntax error ;)
11:19 marcus seems your Mojo::Base is broken
11:20 marcus maybe you have a base class from an older Mojolicious?
11:20 marcus something bad with your @INC at any rate
11:20 mjy probably, I'll check it out, thanks... since the debian packages on a (more) pristine server works, it's obviously some old stuff lying around here
11:21 sri you installed mojolicious with a debian package?
11:21 mjy I thought I did but it preferred something old in /usr/local over what the package installed ... version 1.21 it is anyway
11:21 sri :O
11:22 mjy I take it that's old hehe
11:22 sri that's horribly horribly outdated
11:22 dbr joined #mojo
11:22 sri i would be surprised to find any line of code that was still the same
11:22 mjy some early adopters here then it seems ;)
11:23 sri it's only 4 major releases behind
11:23 * mjy does a "rm -r /usr/local/share/perl/5.10.*" while considering possible suspects
11:24 mjy well thanks for all the help
11:24 mjy 0.999926 is newer then? ;)
11:24 mjy that's what debian installed
11:25 mjy (and it works)
11:25 sri that's a lot worse
11:26 sri we are at 3.15 now
11:27 mjy http://packages.debian.org/​squeeze/libmojolicious-perl ... well that's debian
11:27 mjy ok grabbing it from cpan then, thanks
11:27 sri just don't use the one from debian, get perlbrew and install your own from cpan
11:28 sri http://perlbrew.pl
11:29 mjy I'll try to build something with cpan2deb so we can put it on all servers..
11:30 marcus should be easy enough, with the lack of dependencies.
11:32 mjy yep worked -   Mojolicious (3.15, Rainbow)
11:32 mjy thanks all
11:32 mjy (perhaps someone could nudge some debian package maintainers?)
12:11 jnap joined #mojo
12:11 d4rkie joined #mojo
12:34 espent joined #mojo
12:34 ysyrota joined #mojo
12:41 ysyrota left #mojo
12:56 ryozi joined #mojo
13:03 jnap joined #mojo
13:20 asarch joined #mojo
13:40 d4rkie joined #mojo
13:57 andrefs joined #mojo
14:10 Lance joined #mojo
14:10 jnap joined #mojo
14:14 GitHub23 joined #mojo
14:14 GitHub23 [mojo] kraih pushed 1 new commit to master: http://git.io/MTxy_g
14:14 GitHub23 [mojo/master] fixed small memory leak in Mojolicious::Plugin::TagHelpers - Sebastian Riedel
14:14 GitHub23 left #mojo
14:16 jwang joined #mojo
14:19 sri which helper plugin style is better?
14:19 sri https://github.com/kraih/mojo/blob/mast​er/lib/Mojolicious/Plugin/TagHelpers.pm
14:19 sri https://github.com/kraih/mojo/blob/79d​2731c970245c8af8903f03e30da3c587e0374/​lib/Mojolicious/Plugin/TagHelpers.pm
14:22 judofyr sri: the first one is easier to scan and see what are simple aliases and what are more complex
14:22 judofyr I like it
14:22 sri \o/
14:23 judofyr (oops, that was a weird sentence)
14:32 gryphon joined #mojo
14:52 CromeDome joined #mojo
14:53 CromeDome joined #mojo
15:12 judofyr sri: I'm getting a recursion error for every error in my app now: http://pastie.org/private/swh2qrcnhx3smif2ytvexw
15:12 judofyr which freezes the whole process
15:13 judofyr how could I debug that? :/
15:14 judofyr I'm even getting it for 404s
15:16 sri i know nothing about the tt renderer
15:17 Britzel joined #mojo
15:26 jnap_ joined #mojo
15:27 Leandr joined #mojo
15:28 asarch joined #mojo
15:32 jnap joined #mojo
15:37 vel joined #mojo
15:42 sri judofyr: but let me know if you can replicate it with the ep renderer
15:42 judofyr sri: yeah, I'll give it a try
15:43 xaka joined #mojo
16:10 diegok http://www.youtube.com/watch?v=ALmC5WC6b0Y (my mojo talk to the rails local group)
16:12 sri diegok++
16:13 diegok \o/
16:13 sri you should tweet it so i can retweet
16:15 diegok And then I gave the same talk to the barcelona.pm -> http://diegok.github.com/mojolicious-talk/#1
16:20 diegok sri: https://twitter.com/freekey​/status/230336345049010176
16:20 diegok :)
16:20 sri diegok: you forgot the link!
16:20 diegok oh hell!
16:21 * sri bonks diegok on the noggin
16:22 * diegok need caffeine or some sleep :-/
16:22 * diegok choose caffeine
16:23 diegok ok: https://twitter.com/freekey​/status/230337402001035264
16:23 sri diegok: also s/has/have/ ?
16:24 diegok oh my!, thank you: https://twitter.com/freekey​/status/230338104274325505
16:24 diegok :)
16:25 diegok (I've deleted the first two mistakes)
16:25 diegok but... you can se how my english sucks on the video :-)
16:26 sri practice more! :)
16:27 diegok yeah!, if you finish that mongodb driver I will give a perl talk on the local mongodb group! :)
16:29 sri \o/
16:29 diegok promise
16:29 diegok I really hates the 10gen perl driver :-(
16:40 pau4o left #mojo
16:41 jnap joined #mojo
17:13 mire joined #mojo
17:53 judofyr joined #mojo
18:01 asarch joined #mojo
18:09 rem_lex| joined #mojo
18:23 mattastrophe joined #mojo
18:31 fhelmber_ joined #mojo
18:37 amirite joined #mojo
18:51 GitHub60 joined #mojo
18:51 GitHub60 [mojo] kraih pushed 1 new commit to master: http://git.io/hLBHoA
18:51 GitHub60 [mojo/master] better synopsis examples - Sebastian Riedel
18:51 GitHub60 left #mojo
18:55 asarch joined #mojo
18:59 jnap joined #mojo
19:12 jnap joined #mojo
19:24 jnap joined #mojo
19:38 jnap joined #mojo
19:42 alxt joined #mojo
19:43 mire joined #mojo
19:49 rwstauner joined #mojo
19:58 jnap joined #mojo
20:03 atrodo joined #mojo
20:04 alxt hi guys, how do i access session from startup method of the main app class?
20:05 jnap joined #mojo
20:15 perlite joined #mojo
20:44 xaka joined #mojo
20:53 kbenson joined #mojo
21:05 diegok alxt: you don't
21:05 diegok startup has no request, then it has no client, then it has no session :)
21:12 alxt can i use session from the subs run by 'over' conditions?
21:17 andrefs joined #mojo
21:31 Htbaa joined #mojo
21:45 lukep joined #mojo
22:07 mire joined #mojo
22:09 jmmills joined #mojo
22:14 GitHub72 joined #mojo
22:14 GitHub72 [mojo] kraih pushed 1 new commit to master: http://git.io/Ha0UHw
22:14 GitHub72 [mojo/master] better command examples - Sebastian Riedel
22:14 GitHub72 left #mojo
22:14 jmmills joined #mojo
22:30 gryphon joined #mojo
22:40 xaka if i have Request object, what would be the best way to re-use (re-send) it in UserAgent? (that is for a proxy) any advice?
22:40 diegok alxt: yes
22:40 diegok xaka: there is a proxy plugin
22:41 xaka diegok: in the core or cpan?
22:41 diegok cpan
22:41 xaka k, thx!
22:42 xaka diegok: hm...it works only for GET requests
22:54 xaka anyway, the problem is that UserAgent doesn't have generic method to send the request so at the moment i handle get/post/put/... manualy. for an example in case of put/post i need to pass the data argument, in case of get/delete i dont need to. i'd do magic like $ua->$method($url, ...) but it's impossible
22:55 xaka what i'm looking for is code like: my $req = $self->tx->req->clone; $self->client->send($req => sub { $self->tx->res(...) }) - super simple proxy :)
22:56 xaka sri: what do you think about UserAgent::send or kind of for such purpose?
22:56 sri no
22:57 xaka so the only way is to handle each http method manualy? or may be you see it in a different way?
22:57 sri Mojo::UserAgent->start($tx)
22:57 sri it's documented all over the place
23:02 sri $self->ua->pipe('http://mojolicio.us/whatever' => $self->tx); would be fun
23:03 sri but not very efficient and rarely useful i guess
23:07 xaka yey! ua->start(...) works: https://gist.github.com/42c32258713b34f3604e (simple proxy that i want)
23:07 xaka thx!
23:12 sri that's actually not bad :)
23:14 xaka it was much worse before you sent me to ua->start(...) :) i saw it in the docs but wasn't sure how to use
23:15 sri not sure why you're not using a lite app though, it should be less code
23:37 GitHub120 joined #mojo
23:37 GitHub120 [mojo] kraih pushed 1 new commit to master: http://git.io/Taj7Iw
23:37 GitHub120 [mojo/master] better custom response tests and custom request examples - Sebastian Riedel
23:37 GitHub120 left #mojo
23:37 sri that should help in the future

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