Camelia, the Perl 6 bug

IRC log for #mojo, 2011-07-02

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

All times shown according to UTC.

Time Nick Message
00:05 eugen left #mojo
00:07 * sri pokes xantus[]
00:07 sri you promised me a pony!
00:08 sri i will keep poking until we have an ev backend for iowatcher ;p
00:14 perlrocks Twitter: "Wonder if there's a way to do this in #perl without using goto or recursion. http://t.co/Kf1DzgZ #mojolicious" --kraih http://twitter.com/kraih/status/86950876035563520
00:15 arpadszasz left #mojo
00:37 GitHub130 joined #mojo
00:37 GitHub130 [mojo] kraih pushed 1 new commit to master: http://bit.ly/kdT8N3
00:37 GitHub130 [mojo/master] improved include helper argument localization - Sebastian Riedel
00:37 GitHub130 left #mojo
00:38 sri i had no idea that was possible
00:39 sri that's damn neat
00:49 alnewkirk joined #mojo
00:50 alnewkirk is now known as anaio
01:18 GitHub170 joined #mojo
01:18 GitHub170 [mojo] kraih pushed 1 new commit to master: http://bit.ly/moQbZd
01:18 GitHub170 [mojo/master] cleanup - Sebastian Riedel
01:18 GitHub170 left #mojo
01:22 anaio left #mojo
01:23 ispy_ left #mojo
01:38 anaio joined #mojo
01:56 Drossel joined #mojo
01:58 Kulag left #mojo
01:59 GitHub72 joined #mojo
01:59 GitHub72 [mojo] kraih pushed 1 new commit to master: http://bit.ly/kjJTov
01:59 GitHub72 [mojo/master] cleaned up user agent - Sebastian Riedel
01:59 GitHub72 left #mojo
02:19 Drossel left #mojo
02:19 Kulag joined #mojo
02:44 Kulag left #mojo
02:50 Kulag joined #mojo
03:50 kaare joined #mojo
04:20 abra left #mojo
04:23 amf joined #mojo
04:25 amf is there a way to set a if no other routes are appropriate use this fallback route?
04:30 abra joined #mojo
04:57 crab set a what?
04:57 purl set a is disjoint ____ set B.  from?  to?  with?
04:58 crab no, purl, set a is <reply>
04:58 purl okay, crab.
04:58 crab amf: $r->route('/(*anything)')->to(sub { shift->render_text("generic greetings") }) or so?
04:59 amf wont that always run?
04:59 crab if you make that your last route, then if nothing else matches, it always will.
04:59 amf ahh.. so placing last
05:11 crab yes.
05:15 Foxcool joined #mojo
05:18 amf left #mojo
05:19 anaio left #mojo
05:49 Kulag left #mojo
05:50 Kulag joined #mojo
06:38 sh9 joined #mojo
06:55 D4RK-PH0ENiX left #mojo
06:58 d4rkie joined #mojo
07:12 mohan left #mojo
07:26 D4RK-PH0ENiX joined #mojo
07:28 d4rkie left #mojo
07:30 Kulag left #mojo
07:32 Kulag joined #mojo
07:37 tabbi joined #mojo
07:39 tabbi left #mojo
07:41 Kulag left #mojo
07:41 Kulag joined #mojo
07:45 Kulag left #mojo
07:45 Kulag joined #mojo
07:46 sugar joined #mojo
07:52 Kulag left #mojo
07:52 Kulag joined #mojo
08:08 Kulag left #mojo
08:08 Drossel joined #mojo
08:17 Drossel left #mojo
08:18 Kulag joined #mojo
08:24 Kulag left #mojo
08:25 Kulag joined #mojo
08:27 Foxcool left #mojo
08:27 Foxcool joined #mojo
08:39 eugen joined #mojo
08:42 eugen left #mojo
09:09 crab i wish i could change the logfile format a little.
09:10 crab i guess the thing to do is to create a log object and use $app->log()
09:22 eugen joined #mojo
09:32 eugen left #mojo
10:33 eugen joined #mojo
10:54 sri crab: how would you change it?
10:59 crab sri: iso8601 timestamp is the only worthwhile one, beyond that it's all accommodations for stupid "the log is too complicated" demands from clients
11:03 metaperl joined #mojo
11:03 sri i've been thinking about simplifying the format actually
11:04 metaperl Where can I find Florian Ragwitz on irc.perl.org? other than #moose
11:04 sri source and pid seem rather useless most of the time
11:07 sri also, maybe epoch timestamp would be better
11:08 sri metaperl: #perlde
11:13 sri crab: log level is useful too
11:24 GitHub38 joined #mojo
11:24 GitHub38 [mojo] kraih pushed 1 new commit to master: http://bit.ly/kUrz3R
11:24 GitHub38 [mojo/master] added EXPERIMENTAL format method to Mojo::Log and simplified the default log format - Sebastian Riedel
11:24 GitHub38 left #mojo
11:24 sri crab: how about that?
11:24 purl that is what I'm trying to figure out.  The session that is listening on the port.
11:27 sri http://pastie.org/2154130
11:27 sri sensible default?
11:38 GitHub170 joined #mojo
11:38 GitHub170 [mojo] kraih pushed 1 new commit to master: http://bit.ly/kAqHFT
11:38 GitHub170 [mojo/master] fixed typo - Sebastian Riedel
11:38 GitHub170 left #mojo
11:45 GitHub153 joined #mojo
11:45 GitHub153 [mojo] kraih pushed 1 new commit to master: http://bit.ly/jpQ1If
11:45 GitHub153 [mojo/master] release preparation - Sebastian Riedel
11:45 GitHub153 left #mojo
11:46 sri btw. it really looks like all those random test falures on cpantersters were caused by the idle event :o
11:49 perlrocks Twitter: "Mojolicious 1:53 by SRI - http://metacpan.org/release/SRI/Mojolicious-1.53/" (ms) --cpan_new http://twitter.com/cpan_ne​w/status/87125844144828416
11:58 * crab pulls
11:59 crab sri: so now i can inherit and override this? that suits me perfectly.
11:59 sri yes, and the default makes very little noise
12:05 crab man, you're releasing new versions at such a rate that i'm feeling increasingly guilty for running 1.34 in production ;-)
12:05 sri haha
12:05 sri that was exactly what i'm aiming for!
12:07 sri well, i just wanted to see how people react to really quick releases
12:07 crab it seems to me that the new ioloop changes are stable enough to use in production
12:08 sri i would be surprised if they didn't make ioloop more stable
12:08 sri all the freak timing issues seem to be gone
12:09 sri but i would wait for cpantesters
12:09 sri http://www.cpantesters.org​/distro/M/Mojolicious.html
12:09 sri looks really good so far though
12:31 crab [Sat Jul  2 18:01:33 2011] [info] Server listening (http://127.0.0.1:3000)
12:39 crab nothing blew up, at least. :-)
12:45 crab looks like it's working ok. i'll keep an eye on it for a while, but everything looks good.
12:45 crab in the meantime, i installed IO::Epoll, so the next time i USR2 hypnotoad, it should use that.
12:45 crab that last part was bad of me. i have no evidence that IO::Epoll will help me at all. but oh well.
12:48 sri i have no experience with epoll i'm afraid
12:48 sri kqueue rocks on os x though
12:52 crab i suspect it won't make any measurable difference, i may have about a dozen concurrent clients, _if_ that
12:52 crab anyway. i've assuaged my guilt ;-)
12:53 sri hehe, then you won't notice anything
12:54 marcus feed your guilt!
13:15 * sri is now hungry
13:22 * marcus just had the rest of yesterdays lasagne for lunch
13:30 perlrocks Twitter: "Having #Fun with #jQuery and @kraih's #Mojolicious. On my TODO/Wish list - a helper for auto-generation of HTML forms from Perl hashes." --dginev http://twitter.com/dginev/status/87151102683910145
13:30 anaio joined #mojo
14:22 plu joined #mojo
14:27 kom left #mojo
14:49 sri tempire: you do realize i'm going to poke you every single day now until $secret_project is finished right? :)
15:04 marcus Sri: does that help? Consider yourself poked about mongodb then.
15:08 sri -.-
15:15 * sri counterpokes marcus
15:16 * marcus hides
15:16 sh9 left #mojo
15:24 yko yeah! what about mongodb?
15:25 crab yeah, i heard sri was rewriting mongodb in perl!
15:25 * sri hides
15:37 tempire who pokes the counterpoker?
15:38 marcus yko and crab, apparently
15:38 marcus damn, my roomba is trying to eat the mac PSU
15:38 sri nom nom nom
15:38 purl I eat your head!
15:40 tempire is the usage of map too advanced for n00bs?
15:41 tempire particularly, for tutorials?
15:41 sri depends on the target audience i'd say
15:42 sri but if they know basic perl they know map
15:44 tempire I know darkpanners that doing business programming for 7+ years and map is magic to them.
15:44 tempire not sure if that's common or not
15:44 marcus $lol=[sort {  } map { ... } grep { ... }  @{$foo->{bar}} ];
15:45 sri witch!
15:45 crab if it's a tutorial about something unrelated to basic perl programming, then i would use straightfoward maps and not worry about it.
15:47 tempire I think I just like using lists
15:47 tempire even when there's no particular reason
15:47 tempire <3 perl
15:48 crab complicated map/sort/grep/whatever pipelines are usually harder to maintain than the equivalent loops.
15:48 * tempire maps crab
15:48 * crab unmaintains tempire
15:49 * tempire is legacy, and remains forever. and ever.
15:50 sri AN INFINITE LOOP? I DON'T HAVE TIME FOR THAT!
15:51 sri <3 perl
15:51 sri even after years of using it you still learn new things all the time
15:53 sri local @{$self->stash}{@keys} = @{$args}{@keys};
15:53 sri who knew the localizing problem could be solved so easy
15:55 sri https://github.com/kraih/mojo/commit/cb26b​98870964d82f67673a7b2d062775ea2d378#L1R64
15:55 tempire the rapid release has made googling for mojo cpan perldocs nearly useless
15:56 sri oh noes
15:56 tempire there has to be a way of getting mojolicio.us docs to come up first
15:56 tempire some seo of some sort
15:56 sri unlikely
15:57 sri old domains like perl.org are pretty much unbeatable
15:57 tempire what if you include a robots.txt in the lib?
15:57 tempire that would be an interesting experiment
15:58 sri it only look in the root dir i think
15:58 tempire hmm.  apparently so.
16:34 mattastrophe left #mojo
16:49 marcus o/' you gotta move on, you better believe it o/'
16:55 crab sri: what is the "safe" way to replace my app's log object?
16:55 sri what is the unsafe way?
16:56 crab even if i do it the first thing in startup, $mode_mode has already run and set ->path on the existing (Mojo::Log) log, and my object loses that.
16:56 sri you better steal it
16:57 sri initializing the new object is your responsibility
16:57 crab steal handle, level, and path?
16:57 * sri nods
17:26 sri https://github.com/ChrisKempson/Tomorrow-Theme # interesting theme
17:27 tempire Now that's the way to do it
17:27 tempire textmate, eclipse, and vim
17:28 tempire although I think sublime text 2 is going to take over the world
17:28 sri sublime 2 is tempting, but i think it fails at usability
17:29 tempire the new shift+command+p thing is nice
17:29 sri it's nice that i can use textmate bundles with it, but how would i maintain them?
17:29 sri edit the raw xml?
17:45 abra left #mojo
17:45 Foxcool left #mojo
17:55 sri that's the big problem i see, sublime is great for people that just consume
17:55 abra joined #mojo
17:56 sri but if you want to contribute new bundles you're pretty much screwed
18:04 Foxcool joined #mojo
18:16 arpadszasz joined #mojo
19:16 Foxcool left #mojo
19:25 kaare left #mojo
19:27 Foxcool joined #mojo
19:37 GabrielVieira joined #mojo
19:41 mattastrophe joined #mojo
19:50 preflex left #mojo
19:53 preflex joined #mojo
20:05 tabbi joined #mojo
20:14 tabbi left #mojo
20:31 sh9 joined #mojo
20:42 sugar left #mojo
20:46 Foxcool left #mojo
20:55 tempire I presume $self->stash->{'mojo.captures'} is intended to be hidden, and never used directly.
20:56 * sri nods
20:57 tempire what's the proper way to access all the captured url parts?
20:57 sri what for?
20:57 purl for fun.
20:58 tempire dernit.  I knew that was coming.
20:58 anaio left #mojo
20:58 sri :)
20:58 sri individually you would use ->param
20:59 tempire tempire: I want a list of just the captured url parts, not the get/post params
20:59 tempire sri: what's the use case?
20:59 sri :D
20:59 tempire tempire: because I want to make this thing pretty
20:59 tempire sri: give me a valid use case and I'll make it available
20:59 tempire tempire: grumbles
20:59 sri \o/
21:00 sri now shut up and let me get back to collecting ponycorns!
21:00 tempire I'm going to make a plugin that exposes all the private hash key/values as accessors
21:00 sri PONYCORNS!
21:00 sri oh i see
21:01 sri hmm
21:01 sri $self->match->captures possibly
21:02 sri but when exactly would you create them?
21:03 sri actually
21:03 sh9 left #mojo
21:03 sri i think you're looking at it from the wrong angle
21:03 Foxcool joined #mojo
21:03 sri tempire: why not do it at startup time
21:04 sri once you are done with your routes you could just load the plugin
21:04 sri ->plugin('accessorify_captures');
21:04 tempire I was just being a goober, I don't really need that plugin.
21:05 sri you could walk the route tree and make a list of possible placeholders
21:05 sri each route has a pattern object with a list of placeholders
21:06 sri that way there would be per request overhead
21:06 sri *+no
21:08 sri http://mojolicio.us/perldoc/Moj​olicious/Routes/Pattern#symbols
21:13 perlrocks Twitter: "drafts added a directory to preview articles before publishing. # # Bootylite mojolicious" (de) --memowe http://twitter.com/memowe/status/87267743522492416
21:15 sri tempire: now i want that plugin!
21:15 tempire lulz
21:16 tempire patches welcome
21:16 purl i heard patches welcome was always true or unless for search.cpan.org or swahili for "Put up or shut up."
21:17 tempire that does sound pretty useful, actually.  would be great for showing off simplicity.
21:18 sri ok, how come my fake ssl certificate works with chrome but i can't open pause.perl.org?
21:18 tempire I can open pause.perl.org in chrome
21:18 sri try login
21:19 tempire oh right.  I remember that problem.
21:19 Foxcool left #mojo
21:19 tempire canary works
21:20 sri wonder if i should just make canary my default browser
21:20 tempire I was wondering the same thing.
21:21 tempire I stick with chrome because I like the multicolored icon better
21:22 tempire opinion: http://pastie.org/2155934
21:23 sri first one looks cleaner
21:27 sri guess i'll try canary for a bit
21:27 sri i like the new buttons better anyway
21:27 perlite left #mojo
21:29 perlite joined #mojo
21:42 abra left #mojo
22:13 eugen left #mojo
23:57 arpadszasz left #mojo

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