Camelia, the Perl 6 bug

IRC log for #mojo, 2012-03-26

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

All times shown according to UTC.

Time Nick Message
00:01 chansen joined #mojo
00:06 phillipadsmith joined #mojo
00:27 MichaelRpdx joined #mojo
00:40 d4rkie joined #mojo
00:43 GitHub32 joined #mojo
00:43 GitHub32 [mojo] kraih pushed 1 new commit to master: http://git.io/8ubHwA
00:43 GitHub32 [mojo/master] improved ojo to detect proxy servers automatically (closes #304) - Sebastian Riedel
00:43 GitHub32 left #mojo
01:05 chansen sri: when do you sleep? Never?
01:05 SmokeMachine joined #mojo
01:09 bird joined #mojo
01:16 michale joined #mojo
01:19 scott joined #mojo
01:42 brambles joined #mojo
01:59 tempire joined #mojo
01:59 tempire my server seems to have dissipated into the aether.
01:59 tempire apparently heroku lets you set up one custom domain for free.
02:00 tempire so I'm moving mojocasts.com to heroku to see what's what.
02:00 * tempire waits for dns propagation
02:15 garu https://twitter.com/#!/briandfoy​_perl/status/184099970641690624
02:25 tempire and mojocasts.com is up, live on heroku
02:28 tempire hmm
02:28 * tempire thinks about using parse as a backend
02:55 garu how come I don't see the debug messages anymore with morbo?
02:55 tempire do you have a log directory?
02:55 garu i.e. request, response, template error
02:55 garu hmm
02:56 garu sigh, it's going there instead of to STDOUT/STDERR, right?
02:56 garu sorry :)
02:56 tempire yes.  if you remove the log dir, you'll get it in the console again.
02:57 garu I'll add a patch to "Growing.pm" that documents this
02:57 garu sounds good?
02:58 garu ok, now I see the error, cool
02:59 garu tempire: respond_to requires the template to have a full path, right?
02:59 garu as in
02:59 garu $self->respond_to( html => { template => 'foo/bar' } )
03:00 garu and not just 'bar', even if it's in Foo.pm
03:00 tempire I haven't used it in a long time.  but I would be it's the path from template/
03:11 tempire arg.
03:12 tempire I really despise the modules that use lwp.
03:12 tempire I also don't like arbitrary reference usage.
03:12 tempire but I do like the pusheen cat.
03:13 tempire who, coincidentally, prefers lists over arrayrefs.
03:18 garu tempire: out of curiosity, why haven't you used it in a long time? :)
03:19 tempire Haven't had a need to support multiple formats out of one request.
03:19 garu ah, ok
03:19 garu for a moment I thought I was doing something wrong :)
03:41 garu sigh
03:41 garu I must be really rusty
03:42 garu %= $foo is turning (") into (â)
03:43 tempire double encoding somewhere?
03:43 tempire try %== $foo
03:43 garu same
03:44 garu Data::Printer shows me the quotes are being fetched ok from sqlite into perl
03:45 tempire what's the encoding in sqlite?
03:45 garu and I use standard mojolicious %= layout 'default'
03:45 garu hmm... you're thinking it's iso or something other than utf8, right?
03:45 tempire yep.
03:47 garu firefox tells me the site itself is utf8
03:47 garu sqlite> PRAGMA encoding;
03:47 garu UTF-8
03:48 garu :(
03:55 garu tempire: if I force iso-8859-1 on the browser, I get even worse junk on the screen
03:56 tempire I'm afraid I won't be of much help.  The encoding problems I've had have all been solved by making sure it's utf8 from start to finish.
03:56 garu yeah, that's exactly what I'm aiming for
03:56 garu for some reason, it's not doing its thing
03:56 garu =(
03:57 garu I'll try to force some things manually with ByteStream
03:57 garu tempire: thanks anyway :)
04:04 asarch joined #mojo
04:07 * tempire likes the github api
04:08 tempire I spent more time trying to get net::github and pithub working than just using mojo::useragent to get the json directly.
04:08 * tempire learns his lesson
04:20 SmokeMachine joined #mojo
04:29 asarch joined #mojo
04:52 asarch joined #mojo
05:07 arpadszasz joined #mojo
05:10 asarch joined #mojo
05:16 tempire joined #mojo
06:53 spleenjack joined #mojo
07:25 tempire joined #mojo
07:27 AmeliePoulain joined #mojo
08:05 hugh joined #mojo
08:25 cosmincx joined #mojo
08:37 batman joined #mojo
08:40 judofyr joined #mojo
08:47 ppant joined #mojo
09:13 tabbi joined #mojo
09:16 tabbi left #mojo
09:23 daxim joined #mojo
10:21 taryk joined #mojo
11:00 SmokeMachine joined #mojo
11:45 baton8 joined #mojo
12:15 athenot joined #mojo
12:27 abra joined #mojo
12:34 abra joined #mojo
12:34 * sri yawns
12:39 mire_ joined #mojo
12:53 CromeDome joined #mojo
12:58 spleenjack joined #mojo
13:44 Akron joined #mojo
13:52 inokenty joined #mojo
13:56 Akron Wasn't here for quite a while, so here's some feedback: a) It's great, that so many classes are now considered stable, b) I never used bonjour.
13:59 Akron Since ->classes is now an array ref in renderer, is there a way to override the array with a definite template_class in render methods? I see a problem with lot's of plugins populating $renderer->classes ...
14:00 sri nope, it's still to new to know if we need it
14:00 sri it's also the same with paths
14:01 sri plugins can just add paths as shown in the rendering guide
14:01 Akron Okay. Are all data sections parsed in advanced and all names are in one template hash or is there one hash for each class, so the renderer iterates through all classes till he finds a matching template?
14:02 sri i'm hoping plugin authors are disciplined about choosing template names with prefix
14:02 sri it's all mixed up right now
14:02 sri $map->{$template_name} = $class;
14:03 sri first class wins though
14:03 sri so your app class should have precedence
14:03 Akron That's a good choice.
14:04 Akron I am thinking of bundling assets - or inline templates instead of data section templates in plugins ... Yeah. seems to be better.
14:05 sri or actually
14:05 sri i'm not sure it's tested yet
14:05 sri hmm
14:05 sri damn, atm the last one wins
14:06 stephan48 hi Akron
14:06 phillipadsmith joined #mojo
14:06 Akron Last one is not so good ...
14:07 sri behavior is currently unspecified according to tests
14:07 Akron Hi stephan48! Your question regarding hosts reminds me of a plugin I use - which may be somehow bloated for your needs: https://github.com/Akron/Sojolicious/blob/ma​ster/lib/Mojolicious/Plugin/Util/Endpoint.pm
14:08 Akron I vote for the "first wins" behaviour!
14:09 Akron stephan48: One of the ugliest plugins I did, I think ... not very elegant.
14:09 stephan48 will look at it :)
14:13 sri Akron: it's not a vote
14:14 sri first solution to have a test case wins
14:14 atrodo Question, is there a blog written with mojo yet?
14:15 stephan48 atrodo: Bootylite!
14:16 chansen joined #mojo
14:16 atrodo stephan48> Nice! Thanks.
14:16 stephan48 thank memowe!
14:25 ki0 joined #mojo
14:26 sri ok, paths also had the wrong precedence
14:26 sri much easier to test though
14:59 GitHub193 joined #mojo
14:59 GitHub193 [mojo] kraih pushed 1 new commit to master: http://git.io/XH37uA
14:59 GitHub193 [mojo/master] fixed a bug where paths and classes in Mojolicious::Static and Mojolicious::Renderer would have the wrong precedence - Sebastian Riedel
14:59 GitHub193 left #mojo
14:59 sri and fixed
14:59 sri we should consider a soonish release, if people start experimenting with this the wrong order could cause really bad bugs
15:17 Mrono Anyone want to write in realm based authentication to UA
15:33 Mrono Where can I put in feature requests?
15:44 sri if it's about digest authentication in core, it will be rejected
15:44 sri you can open github issues for feature requests
15:46 * inokenty wonders when Mojolicious will be in the Perl core instead of CGI.pm and LPW::UserAgent.pm
15:46 Psyche^ joined #mojo
15:47 sri core is where modules go to die
15:47 inokenty Oh
15:49 sri it's a saying stevan coined i think, when asked about moose in core
15:54 Mrono it's about in useragent in general
15:56 daxim LWP::UserAgent is, unsurprisingly, in the distro libwww-perl  - not in core
15:57 Mrono daxim: mojo UA, for async calls
15:58 Mrono Anyone know if it's possible to do async waitpid()?
16:02 dolmen joined #mojo
16:12 sri Mrono: it will stay open for a few days so other core devs can vote too if they disagree with me
16:12 sri but judging by past discussions, the suggestion doesn't have much of a chance
16:15 Mrono sri: where should I put it then
16:16 sri Mrono: what do you mean?
16:17 Mrono sri: where do I put in a feature request for it then if it's just going to get shot down there
16:18 sri not all feature requests get accepted
16:18 sri in fact, most get rejected
16:18 sri you can always make your own module and release it to cpan
16:19 sri here's the relevant FAQ answer http://mojolicio.us/perldoc/Mojolicious/Guides/FAQ​#Can_you_add_feature_XY_to_the_core_distribution3F
16:24 Mrono how come you don't try to make the UA client have the same basic features as the LWP one
16:24 Mrono considering that if I want to do async requests in mojo i HAVE to use the mojo UA
16:24 sri because then we could just use LWP
16:25 sri we have different priorities
16:25 sri and no, there are many many many more ways to do async requests in mojolicious, due to pluggable event loop backends
16:26 Mrono you can do non-blocking http calls without using the mojo UA?
16:27 sri http://mojolicio.us/perldoc/Mojoli​cious/Guides/Cookbook#Event_loops
16:27 sri everything is possible in some way or another
16:32 Mrono hmm, do you know how to do multiple non-blocking LWP::UserAgent calls that wait for them to finish then loop and do them again
16:32 Mrono just looking for a place to start, the event loop documentation is confusing to me
16:38 sri if i knew how to explain that stuff i would have written a guide by now ;)
16:38 Mrono fair enough, didn't know if you had a written example around
16:44 kaare joined #mojo
17:33 bgsm joined #mojo
18:24 tempire joined #mojo
18:26 tempire atrodo: http://memowe.github.com/contenticious/
18:27 tempire I don't even know what realm authentication is
18:27 stephan48 i want a plugin to provide a bridge, for doing auth checks and redirecting to a page when they fail..
18:27 stephan48 how to accomplish this the best/easiest way?
18:28 tempire stephan48: write a plugin.  include routes.  profit!
18:28 tempire See Mojolicious::Plugin::PODRenderer
18:29 tempire And Mojolicious::Plugin::BasicAuth
18:30 stephan48 i dont want to inject own rules(or not in this case)...
18:30 sri my $auth_route = plugin 'AuthRoute';
18:30 stephan48 ah just returning an corresponding route?
18:30 stephan48 should do the job
18:30 tempire it wouldn't be plugin 'AuthRoute'
18:30 sri or $authroute = $r->some_auth_condition_returning_a_route;
18:30 stephan48 okey
18:31 sri s/condition/shortcut/
18:31 tempire or declare the plugin, and then my $auth_route = $self->some_helper
18:31 sri yea
18:31 sri return value, shortcut, app helper...
18:31 sri i'm sure there are even more solutions :)
18:31 stephan48 shortcut?
18:31 purl i heard shortcut was ace
18:32 sri see routing guide
18:32 stephan48 i am on the way to thesse :)
18:32 stephan48 these
18:39 tempire good to see so many people in support of not splitting Mojolicious
18:40 tempire the revolución is in full effect
18:41 stephan48 splitting it?!"
18:41 stephan48 no thanks.
18:42 tempire atrodo: other blog-related projects too: https://github.com/kraih/mojo/wiki/Pro​jects-and-Companies-Using-Mojolicious
18:42 sri we could use a little more revolutionary spirit imo, it's a little weak since we've gone mainstream
18:42 tempire that's what every revolution says when they see results.
18:43 * sri lights a cigar
18:44 atrodo tempire> Thanks
18:46 GitHub95 joined #mojo
18:46 GitHub95 [mojo] kraih pushed 1 new commit to master: http://git.io/-iLjYQ
18:46 GitHub95 [mojo/master] link to GitHub from feature FAQ answer - Sebastian Riedel
18:46 GitHub95 left #mojo
18:48 tempire_ joined #mojo
18:48 stephan48 when i generate a shortcut for making such an auth rule, should i just create a new bridge on each request or stuff the callback/route somewhere and hand out the same route all the time?
18:49 GitHub2 joined #mojo
18:49 GitHub2 [mojo] kraih pushed 1 new commit to master: http://git.io/8VE3rQ
18:49 GitHub2 [mojo/master] fixed FAQ links - Sebastian Riedel
18:49 GitHub2 left #mojo
18:50 BlueT_ joined #mojo
18:50 rakshasa joined #mojo
18:50 jzawodn joined #mojo
18:51 tempire_ huh
18:51 tempire http://oss.oetiker.ch/remocular/ listed in mojolicious projects
18:51 tempire pretty neat
18:54 * sri is still in favor of a soonish release, to get the path/class precidence issue fixed
18:54 tempire oss.oetiker.ch has a couple of need mojolicious-based projects
18:54 tempire neat*
18:55 tempire oh, no wonder.  they also make rrdtool and mrtg
18:55 sri yes
18:57 * sri also wonders if there's a more clever way to do locking in hypnotoad
19:06 stephan48 shortcuts and lite apps?
19:13 * sri refuses to upload the next release
19:23 tempire alright mr passive aggressive
19:23 tempire you just have to speak up
19:23 * tempire speaks
19:24 tempire I'll do it in the next couple o' hours
19:28 sri \o/
19:41 Mrono sri: internet highfive!
19:41 Mrono o/
19:41 sri \o
19:42 Mrono Miss!
19:45 stephan48 is there any docu about using shortcuts with M::L?
19:49 sri no
19:50 stephan48 is it possible?
19:50 purl anything is possible in the next half hour
19:51 stephan48 oh great
19:51 sri what purl said
19:53 stephan48 my problem is that i want to be able to use my plugin in Mojolicious apps and also in Lite apps, in full apps its not problem... with Liteapps i dont know how to make a route f.e. behind a bridge/shortcut/route exposed by the plugin...
19:54 stephan48 just something like $myroute->get '/' => sub {};?
19:54 sri how could shortcuts work in lite?
19:54 stephan48 i dont know..
20:10 taryk joined #mojo
20:47 lukep joined #mojo
20:58 zivester joined #mojo
21:30 marcus Tempire++
21:30 tempire \o/
21:30 tempire what did I do?
21:39 marcus Brought back mojocasts and promised a release.
21:40 marcus Fuck yeah, prompt updated to retina. Now i can ssh with style.
21:42 tempire Ssh with style, you  mean
21:42 tempire :)
21:43 sri :D
21:54 sri hmm, the http 2.0 discussions start to get interesting
21:57 sri google wants to kill proxy servers and end-to-end tls everywhere
21:58 sri microsoft and other old school folks want an Upgrade handshake and simple session multiplexing
22:04 brambles joined #mojo
23:33 SmokeMachine joined #mojo
23:35 Gedge joined #mojo
23:35 Cyrus What's the best practice for integrating roles into Mojolicious? Is there a nifty plugin I'm missing or something?
23:35 Cyrus i.e. RBAC.
23:49 Gedge_ joined #mojo
23:49 tempire_ Cyrus: there's no pre-defined plugin to my knowledge
23:50 Cyrus Hm. I see.

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