Camelia, the Perl 6 bug

IRC log for #mojo, 2012-08-01

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

All times shown according to UTC.

Time Nick Message
00:02 human39 joined #mojo
00:12 GitHub170 joined #mojo
00:12 GitHub170 [mojo] kraih pushed 1 new commit to master: http://git.io/39n5MA
00:12 GitHub170 [mojo/master] fixed two custom response bugs - Sebastian Riedel
00:12 GitHub170 left #mojo
00:17 GitHub62 joined #mojo
00:17 GitHub62 [mojo] kraih pushed 1 new commit to master: http://git.io/TirKvQ
00:17 GitHub62 [mojo/master] better response generation tests - Sebastian Riedel
00:17 GitHub62 left #mojo
00:53 human39 joined #mojo
01:00 laouji joined #mojo
01:03 scott joined #mojo
01:36 preflex_ joined #mojo
02:00 d4rkie joined #mojo
02:10 xaka joined #mojo
02:16 SmokeMachine_ joined #mojo
02:36 Psyche^ joined #mojo
02:38 amirite how can i get a mojolicious::lite app to write to development.log
02:51 xaka amirite: you need to create the directory called "log"
03:01 noganex_ joined #mojo
03:03 amirite hmm
03:03 amirite thenw hat
03:04 amirite do i need to set some env variables so it actually writes to it
03:04 amirite if i run it from the command line i see it writing to development.log
03:04 amirite however from the web nothing
03:09 amirite it's writing to lighttpd's log file
03:09 amirite hmm
03:17 amirite joined #mojo
04:03 D4RK-PH0ENiX joined #mojo
04:08 amirite how do i set a default header with mojo::useragent
04:11 amirite events? $ua->on( start => sub{} ) ?
04:54 d4rkie joined #mojo
04:57 d4rkie joined #mojo
05:00 amirite i'm getting empty mojo message response objects
05:00 amirite undefined code() undefined body() undefined everything
05:00 amirite wtf
05:00 d4rkie joined #mojo
05:11 Britzel joined #mojo
05:15 laouji joined #mojo
05:15 D4RK-PH0ENiX joined #mojo
05:18 amirite after digging through hash keys on object instances i finally figured out there was an error somewhere.
05:18 amirite stupid inane muted non-verbosity
05:18 amirite the error is IO::Socket::SSL 1.75 required for TLS support
05:18 amirite yet i just installed IO::Socket::SSL (latest = 1.76) and still get it
05:26 amirite ah, after grepping i discover it's a bug in Mojo::IOLoop::Client
05:27 amirite 93   if ($args->{tls} && !$handle->isa('IO::Socket::SSL')) {
05:27 amirite 10 use constant IPV6 => $ENV{MOJO_NO_IPV6}
05:27 amirite 11   ? 0
05:27 amirite 12   : eval 'use IO::Socket::IP 0.16 (); 1';
05:27 amirite 13
05:27 amirite 14 # TLS support requires IO::Socket::SSL
05:27 amirite 15 use constant TLS => $ENV{MOJO_NO_TLS} ? 0
05:27 amirite 16   : eval(IPV6 ? 'use IO::Socket::SSL 1.75 (); 1'
05:27 amirite 17   : 'use IO::Socket::SSL 1.75 "inet4"; 1');
05:27 amirite [ 07:23:08 ] nour@laptop:~/code/plagiarism $ perl -e 'print ( eval "use IO::Socket::SSL 1.75 \"inet4\"; 1" ) ."\n"'
05:27 amirite [ 07:23:32 ] nour@laptop:~/code/plagiarism $ perl -e 'print ( eval "use IO::Socket::SSL 1.76 \"inet4\"; 1" ) ."\n"'
05:27 amirite [ 07:23:36 ] nour@laptop:~/code/plagiarism $ perl -e 'print ( eval "use IO::Socket::SSL \"inet4\"; 1" ) ."\n"'
05:28 amirite 1
05:28 amirite io socket ssl doesn't export versions
05:28 * amirite slaps mojo
05:30 qtxl joined #mojo
05:37 qtxl joined #mojo
05:42 qtxl joined #mojo
05:47 niczero joined #mojo
05:48 niczero amirite: no multiline pasting, but I think you knew that too
06:02 Foxcool_ joined #mojo
06:04 xaka1 joined #mojo
06:05 crab i must be doing something very unusual in terms of mojo plugins
06:05 crab since this push @{$app->renderer->classes}, ... stuff makes my life miserable compared to template_class => __PACKAGE__
06:07 ovnimancer joined #mojo
06:47 d4rkie joined #mojo
06:53 crab i think the answer is to not use DATA templates
06:56 mire joined #mojo
07:05 spleenjack joined #mojo
07:09 taryk joined #mojo
07:13 nic xaka1: Do you have time to put your proxy example in the wiki?
07:15 fhelmber_ joined #mojo
07:16 d4rkie joined #mojo
07:18 xaka1 nic: i think i do, but not today, so if you want you can do that as well, i don't mind and there is no code copyrights :)
07:18 nic :)
07:18 nic thanks for sharing it
07:21 Vandal joined #mojo
08:00 pau4o joined #mojo
08:10 nferraz joined #mojo
08:22 nic xaka: https://github.com/kraih/mojo/wiki/Code-snippets
08:30 bjoernfan nic: Maybe I'm just slow, but maybe a few comments would be nice. Especially if it's supposed to be awe-inspiring for newcommers. Or just maybe a simple use case to make it easier to understand the code.
08:33 bjoernfan Nah, I'm probably in the wrong. The code is very pretty. :)
08:36 nic bjoernfan: I don't disagree, but it was a quick grab-n-paste job so we caught it before I forgot about it
08:36 nic Hopefully someone will add the extra lines to make its usage clearer
08:37 nic (I was thinking I might add a note or two once I've had time to try it out -- not today tho)
08:39 bjoernfan :)
08:41 memowe joined #mojo
08:41 kmx joined #mojo
09:15 sri nic: please don't make so ambiguous wiki pages, they only tend to get abandoned and deleted
09:16 nic k
09:16 nic shall I delete it?
09:16 sri "Code-snippets" sounds lke something people dump random garbage into nobody will understand in a few months
09:17 sri yes please
09:18 sri we've had these kind of pages before, they never work out
09:18 nic done
09:18 nic I'll move it to my own wiki
09:19 sri or make it a real article
09:29 judofyr joined #mojo
09:30 judofyr sri: if I do `$self->req->url->base->path('/prefix')`, then `$self->url_for('/foo')` includes the prefix, but `$self->req->url->to_abs` does not. expected behavior?
09:31 judofyr sri: how would I get $self->req->url with the proper prefix?
09:43 cosmincx joined #mojo
09:43 amirite joined #mojo
09:44 daxim joined #mojo
09:46 pau4o joined #mojo
10:00 cosmincx joined #mojo
10:05 judofyr_ joined #mojo
11:00 judofyr joined #mojo
11:01 judofyr_ joined #mojo
11:04 sri judofyr_: append a slash
11:31 mire joined #mojo
11:39 mjy is there a more elegant way to get a basic auth logged-in username other than $self->req->env->{REMOTE_USER} ? (I'm used to having a method for that from mod_perl etc.)
11:56 GitHub14 joined #mojo
11:56 GitHub14 [mojo] kraih pushed 1 new commit to master: http://git.io/pknK2Q
11:56 GitHub14 [mojo/master] better synopsis examples for base classes - Sebastian Riedel
11:56 GitHub14 left #mojo
12:02 fhelmber_ joined #mojo
12:30 d4rkie joined #mojo
12:33 ovnimancer joined #mojo
12:44 andrefs joined #mojo
12:59 CromeDome joined #mojo
13:09 perlite joined #mojo
13:19 gryphon joined #mojo
13:21 jnap joined #mojo
13:22 CromeDome joined #mojo
13:30 nferraz joined #mojo
13:42 marcus tempire: havin' some trouble with your hassle free deployment mechanism.
13:44 sandeepdb joined #mojo
14:01 * sri wonders if Mojo::EventEmitter->only() would be a nice alternative to Mojo::EventEmitter->unsubscribe()->on()
14:03 judofyr_ sri: how often do you need that?
14:04 sri it's not uncommon to unsubscribe default subscribers before replacing them
14:04 sri logging on Mojo::Log is a default subscriber to the message event
14:04 sri the multipart parser in Mojo::Content::MultiPart is also a default subscriber
14:05 sri same for buffering in Mojo::Content::Single
14:06 sri cookbook has two examples
14:06 sri http://mojolicio.us/perldoc/​Mojolicious/Guides/Cookbook
14:08 sri maybe it's not common enough
14:10 zhutingting joined #mojo
14:11 judofyr joined #mojo
14:14 Lucas1 joined #mojo
14:24 d4rkie joined #mojo
14:42 nic sri: Mojo::EventEmitter->resubscribe() would add some clarity
14:43 sri nic: too ugly
14:43 nic sometimes the truth is ugly
14:44 mikegrb urface is ugly
14:44 * mikegrb runs away
14:54 mjy does anyone have an example for conditional GET, i.e. all the ugliness mod_perl hides in the meets_conditions() method?
14:58 sri mjy: i would assume most people here have been lucky enough never to encounter mod_perl or are trying to forget it ever existed
14:59 mjy hah ... well how do you handle conditional GETs anyway? i.e. if-modified-since, if-unmodified-since, if-match, if-range requests
15:00 sri for static files automatically, for everything else not at all
15:02 mjy any plans on implementing something there? it's useful in some situations where slow parts of request handling can be avoided ...
15:07 Leandr joined #mojo
15:09 Leandr joined #mojo
15:10 inokenty joined #mojo
15:19 vel joined #mojo
15:27 jnap_ joined #mojo
15:27 jnap joined #mojo
15:39 xaka1 joined #mojo
15:40 Leandr joined #mojo
15:46 Britzel joined #mojo
15:48 mike_ joined #mojo
16:13 pau4o left #mojo
16:45 sri mjy: not for core, but you're welcome to release a plugin
17:12 jnap joined #mojo
17:17 mire joined #mojo
17:21 GitHub69 joined #mojo
17:21 GitHub69 [mojo] kraih pushed 1 new commit to master: http://git.io/N0oR1Q
17:21 GitHub69 [mojo/master] document aliases more consistently - Sebastian Riedel
17:21 GitHub69 left #mojo
17:30 asarch joined #mojo
17:39 vel joined #mojo
17:55 tempire marcus: just happens out of the box
18:09 rem_lex|pivo joined #mojo
18:12 tempire marcus: what's the problem?
18:19 GitHub51 joined #mojo
18:19 GitHub51 [mojo] kraih pushed 1 new commit to master: http://git.io/lobMNA
18:19 GitHub51 [mojo/master] fixed chunked transfer encoding bug in Mojo::Content - Sebastian Riedel
18:19 GitHub51 left #mojo
18:25 vel joined #mojo
18:32 GitHub77 joined #mojo
18:32 GitHub77 [mojo] kraih pushed 1 new commit to master: http://git.io/i1Tu7w
18:32 GitHub77 [mojo/master] treat all aliases the same - Sebastian Riedel
18:32 GitHub77 left #mojo
18:35 gryphon joined #mojo
18:37 andrefs joined #mojo
18:40 vel joined #mojo
19:04 GitHub147 joined #mojo
19:04 GitHub147 [mojo] kraih pushed 1 new commit to master: http://git.io/0ITPHA
19:04 GitHub147 [mojo/master] better chunked transfer encoding tests - Sebastian Riedel
19:04 GitHub147 left #mojo
19:12 GitHub123 joined #mojo
19:12 GitHub123 [mojo] kraih pushed 1 new commit to master: http://git.io/XjdhRw
19:12 GitHub123 [mojo/master] more chunked transfer encoding tests - Sebastian Riedel
19:12 GitHub123 left #mojo
19:25 vel joined #mojo
19:30 alxt joined #mojo
19:49 noganex_ joined #mojo
19:55 RickHalverson joined #mojo
20:03 fibo joined #mojo
20:06 nferraz joined #mojo
20:16 alxt joined #mojo
20:35 xaka1 joined #mojo
20:48 marcus tempire: seems it got confused when there was a Makefile there, since your thing adds everything
20:48 tempire Makefile or Makefile.PL?
20:48 marcus tempire: make clean before deploy fixed it
20:49 marcus tempire: Makefile
20:51 tempire do you still have the error output, by any chance?
20:52 tempire it shouldn't confuse the command, since all it does is generate a .PL if it doesn't exist.  Wonder if it was the build process
20:52 tempire I need to move it to cpanfile anyway, now that cpanm supports it
20:58 Netfeed i guess cpanm doesn't pull in the cpanfile module by default and it has to be installed seperatly?
20:59 fibo_ joined #mojo
21:03 fibo work only with chrome: enjoy! http://tris3d.com/
21:13 njlg fibo: needs a restart button =)
21:18 marcus tempire: cpanfile wouldn't have this problem,  I guess.
21:19 marcus tempire: I think --installdeps got the 'Makefile.PL has been changed, and need to be regenerated' error.
21:19 marcus not sure tho
21:20 tempire I could make it ignore Makefile
21:20 tempire sounds hackish
21:20 vel joined #mojo
21:21 tempire though maybe it's fine, since using the deploy command assumes you don't want a custom configuration
21:21 tempire justwork™
21:33 marcus mm
21:34 sri hmmm
21:34 sri i would like to turn Mojo::Message::_parse_start_line and Mojo::Message::_build_start_line into public methods
21:34 lukep joined #mojo
21:34 sri but can't think of names :(
21:35 sri problem is Mojo::Message::build_start_line is already taken
21:36 sri they are overloaded to handle the request/response specific parts in subclasses
22:01 sri the quality of list posts has gone down drastically as the documentation quality has gone up :S
22:02 amirite joined #mojo
22:05 stephan48 suprise?
22:06 stephan48 +r
22:09 sri nope, just the realization that mojolicious has gone mainstream
22:10 * sri likes it more when things are all new and exciting
22:12 * tempire pushes an questionable and unproven technique to master
22:13 sri \o/
22:15 sri http://mojolicio.us/perldoc/Mojo/Message#SYNOPSIS # that poor cookies method really needs some friends :(
22:21 vel joined #mojo
22:40 amirite joined #mojo
22:55 alxt joined #mojo
23:09 davido joined #mojo
23:26 tempire +1 post_json
23:26 tempire +1 slurp
23:26 tempire +1 spurt
23:45 vel joined #mojo

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