Camelia, the Perl 6 bug

IRC log for #mojo, 2010-09-29

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

All times shown according to UTC.

Time Nick Message
00:08 ash_ joined #mojo
00:09 ash_ left #mojo
00:16 stereonaut left #mojo
00:17 stereonaut joined #mojo
00:17 stereonaut left #mojo
00:36 tempire joined #mojo
02:07 jawnsy left #mojo
02:13 jawnsy joined #mojo
02:16 MojoGuest943 joined #mojo
02:16 MojoGuest943 From: http://www.google.com.pe/search?hl=e​s&q=extjs+websockets&aq=f&am​p;aqi=&aql=&oq=&gs_rfai= (1 hits)
02:17 MojoGuest943 hg
02:20 Alias_ left #mojo
02:20 ana joined #mojo
02:20 MojoGuest936 joined #mojo
02:20 MojoGuest936 From: http://www.networkedblogs.com/33Knp (2 hits)
02:24 ana left #mojo
02:29 alnewkirk joined #mojo
02:30 polvo joined #mojo
02:35 janus left #mojo
02:37 alnewkirk left #mojo
02:39 esskar_ left #mojo
02:39 alnewkirk joined #mojo
03:04 alnewkirk left #mojo
03:07 alnewkirk joined #mojo
03:15 alnewkirk left #mojo
03:15 alnewkirk joined #mojo
03:28 Foxcool joined #mojo
03:31 janus joined #mojo
03:37 alnewkirk|com joined #mojo
03:37 alnewkirk left #mojo
03:43 MojoGuest936 left #mojo
03:43 MojoGuest943 left #mojo
04:04 tholen42 joined #mojo
04:06 tl left #mojo
05:02 yakudza joined #mojo
05:04 ash_ joined #mojo
05:33 koban joined #mojo
05:58 koban left #mojo
06:22 ltriant left #mojo
06:23 ltriant joined #mojo
07:00 koban joined #mojo
07:13 su-bzero How to set default layout for all templates? Not default.html.ep, but appname-layout.html.ep?
07:13 su-bzero *for all routes
07:28 ltriant left #mojo
07:33 marcus_ moin
07:33 marcus_ hmm
07:34 marcus_ wondering how you can test a Mojolicious::Lite app
07:42 su-bzero_ joined #mojo
07:46 su-bzero left #mojo
07:58 yakudza left #mojo
08:07 marcus_ ooh, it's documented.
08:20 jest joined #mojo
09:08 spleenjack joined #mojo
09:34 fod left #mojo
09:43 su-bzero_ What?
09:43 su-bzero_ $self->layout('default')?
09:43 su-bzero_ Doesn't work. ;)
09:44 omega su-bzero_: marcus was answering his own question you where ping timeouting
09:45 su-bzero_ O, sorry. ;)
09:53 doubi joined #mojo
10:04 ysyrota joined #mojo
10:18 sri moin
10:19 sri su-bzero_: app->defaults(layout => 'default')
10:29 marcus_ that makes sense
10:55 spleenjack left #mojo
10:58 GitHub6 joined #mojo
10:58 GitHub6 mojo: master Sebastian Riedel * 9462bc9 (3 files in 3 dirs): added attribute substring selector to Mojo::DOM - http://bit.ly/bwRdfw
10:58 GitHub6 left #mojo
11:02 GitHub125 joined #mojo
11:02 GitHub125 mojo: master Sebastian Riedel * e02ba3b (1 files in 1 dirs): pod cleanup - http://bit.ly/9D2JYi
11:02 GitHub125 left #mojo
11:05 GitHub128 joined #mojo
11:05 GitHub128 mojo: master Sebastian Riedel * c33bfc0 (1 files in 1 dirs): pod cleanup - http://bit.ly/bbGq7o
11:05 GitHub128 left #mojo
12:09 GabrielVieira joined #mojo
12:12 su-bzero joined #mojo
12:14 GabrielVieira2 left #mojo
12:16 su-bzero_ left #mojo
12:40 GitHub6 joined #mojo
12:40 GitHub6 mojo: master Sebastian Riedel * 7236b21 (3 files in 3 dirs): added another attribute selector to Mojo::DOM - http://bit.ly/bRmaZa
12:40 GitHub6 left #mojo
12:45 doubi left #mojo
13:02 GitHub170 joined #mojo
13:02 GitHub170 mojo: master Sebastian Riedel * 9e6cffe (1 files in 1 dirs): cleanup - http://bit.ly/9W9NM1
13:02 GitHub170 left #mojo
13:03 jest left #mojo
13:05 spleenjack joined #mojo
13:13 memememomo_ is now known as memememomo
13:14 memememomo is now known as memememomo_
13:27 und3f[A] is now known as und3f
13:28 perlrocks Twitter: "Just watched http://is.gd/fzQr6 on #Perl's #Catalyst framework by @shadowcat_mst. Some interesting points of difference to #mojolicious." --doubious_code http://twitter.com/doubiou​s_code/status/25879171721
13:31 spleenjack left #mojo
13:37 marcus_ hmm
13:38 marcus_ lol
13:38 marcus_ Catalyst framework by @shadowcat_mst
13:38 sri lol
13:40 marcus_ London Perl Workshop is being held 4. december this year.
13:40 marcus_ I happen to be in London that day with my wife to see a musical
13:40 marcus_ anyone submitted a mojolicious talk?
13:40 sri maybe you can sneak out? :)
13:40 marcus_ maybe
13:41 marcus_ the musical is in the evening
13:43 marcus_ http://twitter.com/doubiou​s_code/status/24754815237
13:47 alnewkirk|com sri, what should I do with Mojolicious::Command::Package? git/cpan or add to mojo fork and send a pull request
13:47 sri alnewkirk|com: git/cpan
13:48 alnewkirk|com okay thanks
13:51 spleenjack joined #mojo
14:00 GitHub115 joined #mojo
14:00 GitHub115 mojo: master Sebastian Riedel * d3d0c6c (3 files in 3 dirs): added more pseudo classes to Mojo::DOM - http://bit.ly/a3SwGA
14:00 GitHub115 left #mojo
14:00 sri those should be very useful for tests
14:00 sri :checked and :empty
14:01 alnewkirk|com left #mojo
14:05 sri also hope it encourages people to send more pseudo class patches ;)
14:05 perlrocks Twitter: "@doubious_code You know @kraih was the creator of both Catalyst and Mojolicious, right?" --marcusramberg http://twitter.com/marcusr​amberg/status/25883441138
14:20 sri the whole :nth-child stuff should be a little tricky
14:21 sri would be a fun weekend project for someone who wants to dive into Mojo::DOM i guess
14:31 marcus_ Mojo::DOM scares me
14:32 sri it just wants to play
14:36 kvorg joined #mojo
14:37 kvorg hi all
14:37 * sri waves
14:37 kvorg i have been reviewing irc logs for august, which i spent in hibernation
14:37 stereonaut joined #mojo
14:38 kvorg what was the deal with ENV variables? what is wrong with marcus? ENV is the accepted way to set stuff for daemons _and_ user program.s
14:38 kvorg and now i can finally do this ...
14:38 sri :)
14:38 * kvorg bows to the hypnotoad.
14:38 sri marcus_: WHAT IS WRONG WITH YOU?!
14:39 kvorg ;-)
14:39 * kvorg hands the whip to sri.
14:40 * sri cracks the whip
14:40 marcus_ kvorg: you have way too much spare time
14:40 perlrocks left #mojo
14:40 perlrocks joined #mojo
14:41 kvorg marcus_: just avoiding work, see?
14:41 kvorg also, I am collecting bits of wisdom for the Handbook/FAQ/etc
14:42 kvorg this conversation is being logged, everything you say can and will be used against you.
14:44 marcus_ kvorg: I wasn't opposed to ALL of the ENV settings, just some of them.
14:45 kvorg marcus_: just don't give excuses to sri to avoid giving us fine-grained control :-)
14:46 kvorg we have feet, we need to shoot ourselves in them feet.
14:46 sri there you have it...no more fine grained control for you!
14:47 sri but i think marcus changed his mind at the end of the discussion
14:47 marcus_ sri: you actually did change something, iirc.
14:48 sri i added a few command line arguments, but didn't remove a single env var
14:48 esskar :x
14:49 kvorg sri: lol
14:50 sri imo it is fine to have lots of knobs as long as they all have sensible default settings
14:51 * esskar agrees
14:51 ash_ left #mojo
14:51 perlrocks Twitter: "Added more attribute selectors and pseudo classes to Mojo::DOM today, will be nice for testing. :) http://bit.ly/cVVWGK #perl #mojolicious" --kraih http://twitter.com/kraih/status/25888708496
14:52 sri twitter is slow today
15:19 koban left #mojo
15:41 kvorg i am locked in with emacs
15:41 kvorg has onyone found a way to get ep syntax highligting work with cperl-mode_
15:41 kvorg ?
16:09 vti a
16:20 ysyrota left #mojo
16:28 sri kvorg: don't think so, but we have vim and textmate
16:48 perlrocks left #mojo
16:55 kimoto left #mojo
17:08 perlrocks joined #mojo
17:09 spleenjack left #mojo
17:11 Foxcool left #mojo
17:21 kvorg sri: can i have those? perhaps I can mix and adapt (i will just try to wrap everything in parentheses, really)
17:22 sri kvorg: one is on vim.org the other on my github account :)
17:23 sri the tmbundle is likely the most complete, but hard to read in serialized xml form
17:24 sri http://pastie.org/1189404 # mojolicious
17:25 * kvorg bows to sri
17:25 sri http://pastie.org/1189406 # epl
17:25 sri but you have to promise to release it once you're done :)
17:27 sri it includes __DATA__ template support
17:27 kvorg hmm, i wonder if i am able to wrap my head about emacs' idea of syntax higlighting ... i seem to remember it was pretty convulted, and those regexpses are strange
17:27 sri thats what the first part is for
17:27 kvorg yeah, that is the nifty bit i want, of course
17:27 sri highlighting for epl is totally worth it
17:28 * kvorg is on the move (offline)
17:34 kvorg left #mojo
17:34 kvorg joined #mojo
17:35 kvorg Ah, commuting, what a pain.
17:36 * kvorg is now home.
17:48 kvorg vim is more properly at http://github.com/yko/Vim-Mojo-Data-syntax, no?
17:54 perlrocks left #mojo
17:56 Drossel is now known as Kulag
18:07 alnewkirk joined #mojo
18:33 sri should be the same
18:35 vti pizza time
18:41 su-bzero_ joined #mojo
18:45 su-bzero left #mojo
18:46 kvorg uhoh. cperl-mode.el: 8900 lines
18:49 kvorg the whole of Mojolicious distro is 32145 lines ... roughly 3.2 times the size of a fcuking emacs mode for perl editing. hmmm.
18:50 sri wtf
18:50 sri wow
18:50 kvorg there must be a lot of parentheses in there B-)
18:51 sri actual code is just 19794 lines
18:51 sri and 9000 of those are tests
18:51 kvorg lol
18:52 sri getting closer to 50:50 :)
18:52 kvorg ok, the ratio is more like 3.6 x, but I included their comments too (but no tests)
18:53 kvorg hmmm, u have almost as many tests :-)
18:53 kvorg btw, it compiles down to "just! 216K
18:53 kvorg i think i will rather hack something in mojolicious and suffer without ep higlighting a bit more :-(
18:55 stereonaut left #mojo
18:56 sri http://twitpic.com/29y9v5/full # sweet sweet highlighting
18:56 esskar_ joined #mojo
18:57 sri really love that textmate allows embedded languages to have a different background
19:13 DaTa left vim again? :)
19:18 sri after 4 days
19:19 sri too much missing
19:26 MojoGuest793 joined #mojo
19:26 MojoGuest793 left #mojo
19:30 Rhaen hej!
19:31 * sri waves
19:32 Rhaen hej hej - guess what I'll write an article for freeX about Moho
19:32 Rhaen hm, yes. something like that.
19:32 Rhaen Is this the moho channel?
19:32 Rhaen can't hardly type anymore.
19:32 Rhaen mojo mojo mojo
19:33 sri \o/
19:33 sri BLACKJACK AND HOOKERS!
19:42 Rhaen_ joined #mojo
19:42 janus Rhaen: nice
19:42 janus one of the very few good magazines out there
19:44 janus no ads, high quality articles... always worth the money :)
19:46 Rhaen left #mojo
19:46 Rhaen_ is now known as Rhaen
20:27 stephen left #mojo
20:30 stereonaut joined #mojo
20:39 stereonaut left #mojo
20:44 stereonaut joined #mojo
20:49 tempire_ joined #mojo
20:49 tempire_ Is the previous tx req/res accessible from Test::Mojo?
20:49 sri $t->tx
20:50 tempire_ doh
20:54 esskar_ may somebody run http://github.com/esskar/mojox-cou​chdb/blob/master/t/non-blocking.t
20:55 esskar_ and explain me, the order of the test results?
20:55 esskar_ i know is asynchron
20:55 esskar_ but i'm suprised, that they all pass
20:55 esskar_ tempire_: dont slap ;)
21:04 stephen joined #mojo
21:08 tempire_ Accepting Mojo::DOM form elements for Mojo::Parameters->append() would be...neat.
21:08 stephen Hello all
21:09 stephen Question: I'm trying to create a Mojolicious drop-in replacement for an existing CGI script.
21:10 stephen The CGI script has a long query string. One of the params dictates the action, and I want the rest put into stash, but the argument order isn't guaranteed.
21:10 stephen What's the proper way to do the routing?
21:11 sri query parameters have nothing to do with mojolicious routing
21:11 sri just the path
21:11 stephen I know
21:11 sri you mentioned argument order
21:11 sri which doesn't matter otherwise
21:11 stephen Also true. ;)
21:12 stephen So it isn't possible to have something that does routing based on query parameters?
21:12 sri dispatching on query params is not supported at all, what you could do is rewrite the request url
21:12 sri like in a before_dispatch plugin hook
21:13 stephen OK
21:13 stephen Thanks, that clarifies my thinking.
21:25 spleenjack joined #mojo
21:33 fod joined #mojo
21:44 meraxes left #mojo
21:47 sri oh my, trent reznor did the soundtrack for the social network :o
21:56 stereonaut left #mojo
21:59 tempire_ sri: what do you think about having text_like and text_is use find instead of at?
21:59 sri how?
21:59 tempire_ loop through all elements found, and return true if any of them match
22:00 sri sounds a little unpredictable
22:01 ltriant joined #mojo
22:02 sri like ->text_is('*' => 'foo') # some element will surely contain "foo"
22:02 sri dunno
22:02 tempire_ maybe a different method?  text_exists?  The use case is, say, 30 font tags within TDs with no classes or IDs.
22:03 sri dunno
22:03 tempire_ I guess content_like works well enough
22:03 sri i've been looking for a good solution for months now
22:04 sri your example might be better solved by adding a css pseudo class
22:05 sri ->text_is('font:nth-child(23)' => 'foo')
22:07 GabrielVieira2 joined #mojo
22:12 GabrielVieira left #mojo
22:13 sri hmm, or maybe just using find makes sense
22:14 und3f how to get port on witch Mojolicious::lite listens?
22:14 und3f *wich
22:15 sri ?
22:15 tempire_ und3f check out the lite_app.t file
22:15 sri in case he means in a test
22:15 und3f yeah, in test
22:15 sri then what he said
22:16 und3f thanks
22:16 sri ->test_server or so
22:18 und3f but i need to test my http client
22:18 und3f not server
22:18 und3f so i used Mojolicious::Lite like in client.t
22:18 sri tempire_: i guess if you find a clean implementation and write enough tests i would accept a patch
22:19 sri tempire_: one could always make the selector more specific to narrow it down
22:19 sri und3f: the client starts the server
22:20 sri und3f: what is "your http client"?
22:21 und3f actually not my http client. It is module that uses Mojo::Client
22:21 sri then you can just use Test::Mojo to start the server for you
22:21 sri and reuse the ioloop from $t->client->ioloop
22:22 sri t/mojo/client.t does it i think
22:22 meraxes joined #mojo
22:23 und3f sri, client.t don't use Test::Mojo
22:23 und3f sri, it uses Mojolicious::Lite
22:23 sri it is very similar
22:24 sri right
22:24 sri you don'g even need Test::Mojo
22:24 sri *don't
22:24 sri i'm stupid
22:25 sri my $client = Mojo::Client->singleton->app(app);
22:25 sri thats all you need
22:25 sri all relative URLs will be automatically updated for the test server
22:25 und3f and use url like "/" ?
22:25 sri ye
22:25 und3f oh, thanks
22:26 sri $client->app(app) is all yea
22:26 tempire_ everything in mojolicious is all yea
22:28 und3f everything in perl is mojolicious :P
22:30 tempire_ the owner of podilicio.us wants $500 for the domain.
22:48 tempire_ left #mojo
23:04 kvorg i tend to loose myself if I look into the template code
23:04 kvorg (it is not the code, my mind just gets confused there)
23:06 kvorg so can anyone explain me, what happens regarding the order of definition/execution, when i have a layout, a template and a block? if i set a value on the stash inside a block in the template that calls a layout, will the layout see it or not? and, better, will the layout see the block if I put it on the stash?
23:06 * kvorg realises it is polluting the channel and goes away to test this.
23:09 kvorg left #mojo
23:17 kimoto joined #mojo
23:18 esskar_ left #mojo
23:30 spleenjack left #mojo

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