Camelia, the Perl 6 bug

IRC log for #mojo, 2013-09-21

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

All times shown according to UTC.

Time Nick Message
00:32 dweeble ok, figuring this out on my own is not easy.
00:34 dweeble How can I return the links to this: my $delay = Mojo::IOLoop->delay(sub { my ($delay, @links) = @_; $self->render(json => \@links); }); ?
00:34 dweeble In my callback function I am pushing all links into @urls, then returning @urls,
00:44 dweeble Here's my code. No more callback function, but it should give an idea of what I am trying to do.
00:48 dweeble correction to the posted code: my $tx = $self->ua->get($url);
00:50 jnbek joined #mojo
01:04 dweeble can someone just stop me if I am trying to do something that's not possible here...
01:12 dweeble I got it!!
01:14 dweeble beautiful
01:14 dweeble Can someone add this as an example? Could be helpful to someone in my position.\
01:14 good_news_everyone joined #mojo
01:14 good_news_everyone [mojo] kraih tagged v4.40 at 5e9b655: http://git.io/Y61lfA
01:14 good_news_everyone left #mojo
01:57 sri looks like i accidentally released while a mojolicious talk was in progress at yapc::asia :D
02:09 good_news_everyone joined #mojo
02:09 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/6w-BXA
02:09 good_news_everyone mojo/master 6be09e7 Sebastian Riedel: a few more tests for text method
02:09 good_news_everyone left #mojo
02:11 sawtooth I accidentally the Mojolicious
02:35 tianon sri: it's a good object lesson for them :D  "Oh, you're not running 4.40 yet? WHAT'S WRONG WITH YOU??"
02:35 sri :)
02:37 tianon It's been out for more than an hour! :)
02:53 good_news_everyone joined #mojo
02:53 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/aSXHQA
02:53 good_news_everyone mojo/master efad127 Sebastian Riedel: more links in cookbook
02:53 good_news_everyone left #mojo
03:13 fildon_ joined #mojo
03:56 Adura joined #mojo
04:00 preflex_ joined #mojo
04:30 n0n joined #mojo
04:53 dqw4 joined #mojo
04:57 dqw5 joined #mojo
05:06 basic6_ joined #mojo
05:12 zivester joined #mojo
05:34 dotandimet joined #mojo
05:47 zivester joined #mojo
05:53 gtodd joined #mojo
06:37 yakudza joined #mojo
06:38 marcus sri: Source link looks great next the module name. Any chance we could provide syntax highlighted code with a raw link? ;)
06:39 marcus Putting wirc.pl on reasonable hardware in europe instead of bare minimum in the US made quite a difference.
06:55 Vandal joined #mojo
07:11 sugama joined #mojo
07:16 n0n joined #mojo
07:23 trone joined #mojo
07:33 hrupp joined #mojo
07:39 jamadam joined #mojo
08:10 trone joined #mojo
08:17 denisboyun joined #mojo
08:21 denisboyun joined #mojo
08:28 jamadam joined #mojo
08:48 basiliscos joined #mojo
09:44 n0n joined #mojo
10:03 basic6_ joined #mojo
10:03 Vandal joined #mojo
10:08 mire__ joined #mojo
10:10 denis_boyun joined #mojo
10:11 basic6_ joined #mojo
10:38 sh4 joined #mojo
10:53 basic6_ joined #mojo
10:55 bowtie_ joined #mojo
11:04 d4rkie joined #mojo
11:04 d4rkie joined #mojo
11:07 dqw5 joined #mojo
11:20 perlite joined #mojo
12:23 yakudza hello ppl
12:24 yakudza sri http://paste.org.ru/?ivubbc Mojolicious 4.40
12:24 yakudza debian 6 - 7
12:27 good_news_everyone joined #mojo
12:27 good_news_everyone [mojo] kraih pushed 3 new commits to master: http://git.io/NgRQ8w
12:27 good_news_everyone mojo/master 579dcfd sugama: made flatten method pass the tests on perl-5.16 or older
12:27 good_news_everyone mojo/master 04c7d0c sugama: Merge branch 'master' of git://github.com/kraih/mojo
12:27 good_news_everyone mojo/master 473699f Sebastian Riedel: Merge pull request #536 from jamadam/master...
12:27 good_news_everyone left #mojo
12:28 sri meh... screwed up pull request
12:28 denisboyun joined #mojo
12:33 good_news_everyone joined #mojo
12:33 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/c-u15g
12:33 good_news_everyone mojo/master 3aa9dc5 Sebastian Riedel: updated Changes
12:33 good_news_everyone left #mojo
12:39 dotandimet joined #mojo
12:41 marcus https://www.evernote.com/shard/s22/sh/9a3274cf​-ed1b-4086-9e56-7e0d1dbe34a2/1baaea302fd33c9b6​241d33bc997792c/deep/0/Mojolicious%E3%81%A7%E3​%81%A4%E3%81%8F%E3%82%8B%EF%BC%81%20Web%E3%82%​A2%E3%83%97%E3%83%AA%E5%85%A5%E9%96%80.png # i always though WAF was Wife Acceptance Factor
12:44 sri marcus: do you have a design for a syntax highlighted code page?
12:52 dqw5 joined #mojo
12:57 sri perhaps the source link should be removed again if the common assumption is a page with syntax highlighting
12:57 asarch joined #mojo
12:58 marcus sri: I don't think it's required, would just be above and beyond. :)
12:59 marcus sri: couldn't we just use the existing page template with the code sample syntax?
12:59 sri that looks terrible for long code blocks i'm afraid
13:00 sri you also would want line numbers with anchors for linking
13:20 mire__ joined #mojo
13:29 dvinciguerra joined #mojo
14:00 * sri wonders if the xml mime type should default to charset=UTF-8 too
14:32 dotandimet joined #mojo
14:46 denis_boyun joined #mojo
14:51 asarch joined #mojo
14:59 dotandimet joined #mojo
15:00 batman sri: any plans for supporting projections for find and find_one() in mango?
15:01 batman or do i need to use the cursor for that?
15:02 sri batman: what?
15:02 batman $collection->find_one(\%query, \%fields, sub {});
15:04 asarch joined #mojo
15:06 sri maybe
15:07 batman ok.
15:07 batman i think it's very useful for find_one() at least...
15:20 sri find_one($query, $fields, $skip, $limit) seems to be most common
15:20 rem_lex joined #mojo
15:27 sri ok, limit seems rather useless
15:27 sri not sure about skip
15:39 btyler joined #mojo
15:40 n0n joined #mojo
15:45 denis_boyun joined #mojo
15:46 sri batman: https://github.com/kraih/mango/commit/b​8948114acabd6a32ffc13b263aa924b0a72b48e
15:48 batman *commented*
15:50 sri *commented*
15:52 batman sri++ # adding stuff that makes sense
15:52 batman sri: sorry about the comment.
15:53 batman no idea why i'm so off today :(
15:53 batman everything takes twice as long to do, and shit breaks all the time...
15:54 sri ok, removing comments is not cool! now i look like a fool...
15:54 batman sorry! i didn't see your comment before i removed mine
15:54 sri grrr
15:54 batman batman--
15:55 * batman is brewing another batch of coffee
15:58 * sri removes all comments
15:59 batman makes sense
16:30 asarch joined #mojo
16:35 good_news_everyone joined #mojo
16:35 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/UCzjGA
16:35 good_news_everyone mojo/master 34b6434 Sebastian Riedel: improved documentation browser to be a little more RESTful
16:35 good_news_everyone left #mojo
16:36 sri this one is mostly for fun :)
16:37 sri http://mojolicio.us/perldoc/Mojolicious/Guides.txt
16:37 sri http://mojolicio.us/perldo​c/Mojolicious/Guides.html
16:42 btyler newb question: just discovered subroutine attributes, in particular 'lvalue'. it -seems- like using the lvalue attr on accessor methods would make for a prettier API, but Mojo::Base doesn't, so there must be some reason why sub attrs aren't as awesome as they look for accessors. what keeps lvalue attrs from being used for that? are they slow?
16:42 good_news_everyone joined #mojo
16:42 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/qIMVSQ
16:42 good_news_everyone mojo/master fc254e0 Sebastian Riedel: show how to generate absolute URLs
16:42 good_news_everyone left #mojo
16:43 batman sri: hehe
16:44 sri btyler: i don't consider "$foo->bar = 'baz';" pretty
16:44 sri i'd rather chain attributes "$foo->bar('baz')->yada('yada');"
16:44 btyler ok, right, that'll do it
16:45 batman sri: http://p.thorsen.pm/00f3a77dec45 # what do you think?
16:47 sri batman: syntax error
16:49 batman sri: http://p.thorsen.pm/0e7f6912c1fb
16:49 batman hehe
16:49 sri oh wait, missed &@
16:49 batman it was meant for reading, not running :)
16:50 sri but yea, still ;p
16:50 batman the last one is without syntax error
16:50 batman curl 'http://p.thorsen.pm/0e7f6912c1fb?raw=1' | perl -
16:51 batman i'm between "less indentation" and "super bad idea" ;)
16:52 * sri shrugs
16:52 batman :D
17:02 maxhq joined #mojo
17:11 good_news_everyone joined #mojo
17:11 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/K0FgWw
17:11 good_news_everyone mojo/master 9368fc7 Sebastian Riedel: more tests for documentation browser
17:11 good_news_everyone left #mojo
17:12 marcus sri: wow, total japan takeover in twitter Mojolicious mentions.
17:13 good_news_everyone joined #mojo
17:13 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/N2A-Nw
17:13 good_news_everyone mojo/master 3b9d574 Sebastian Riedel: negotiate content for documentation browser slightly more strict
17:13 good_news_everyone left #mojo
17:13 sri marcus: indeed
17:17 sri apparently i released a totally broken mojolicious while a mojolicious talk was in progress at yapcasia :S
17:17 marcus 1131 participants :o
17:17 marcus sri: ouch!
17:17 sri totally sucks that we can't have tavis notifications in the channel anymore... would have prevented it :(
17:24 good_news_everyone joined #mojo
17:24 good_news_everyone [mojo] kraih tagged v4.41 at 51b4e96: http://git.io/iN3x_g
17:24 good_news_everyone left #mojo
17:25 tianon sri: fyi, here's the issue where they're working on not notifying for forks: https://github.com/travis-ci/travis-ci/issues/329 (no update for 5 months now :( )
17:26 * sri also releases a new Mango
17:26 sri tianon: :S
17:27 tianon new Mango? :o  \o/
17:28 sri not much changed though ;p
17:28 sri pretty much no changes in over a month... getting closer to 1.0 i suppose
17:29 tianon maybe you should go on that ticket tell your story about 1131 people all trying to download Mojo at the same time at yapcasia, and it was broken because travis doesn't support this feature yet :P
17:29 tianon put all that on them - it's all their fault!
17:29 tianon :)
17:43 sri the most broken release yet \o/ http://www.cpantesters.org/distro​/M/Mojolicious.html#Mojolicious-4.40
18:02 wk joined #mojo
18:04 mire__ joined #mojo
18:16 maxhq joined #mojo
18:19 wk joined #mojo
18:25 maxhq1 joined #mojo
18:37 dotandimet joined #mojo
20:11 * sri wonders if Mango::Collection::find/Find_one should also accept a skip argument
20:12 sri ->find_one({foo => 'bar'}, {_id => 0}, 3);
20:12 sri to get the 4th result
20:25 tianon sri: isn't that what find()->skip() is for?  it seems kind of counter-intuitive to expect find_one to do skip (and limit is definitely really silly - find_one feels like a helper for find()->limit(1) return the first)
20:26 tianon I certainly can't think of any example where I'd want skip but not more than one document returned
20:26 tianon I guess, to super-contrive, I could imagine viewing some search result detail pages and paginating between search results directly from that page, and then skip might be useful
20:27 tianon but as the third argument just bare like that feels wrong, especially for the cause of future enhancement
20:28 tianon take for instance the built-in console's db.collection.update method - third and fourth argument used to be upsert and multiple booleans, but they changed it to the third argument being an options hash
20:28 tianon I always had to look up the order of those two arguments
20:32 sri yea
20:32 sri i'm not sure either
20:33 tianon as an optional options hash, I'd be all for it, but as a raw argument feels wrong imo
20:34 tianon and you could just say that find_one is a convenience - if you need anything complex, see find()
20:34 sri raw argument is how the other mongodb drivers support it (if they do)
20:34 tianon find()->limit(1) isn't really all that much more typing
20:34 tianon well, all the other mongodb drivers are doing it wrong :)
20:34 sri could say the same about the fields hash
20:35 sri we now do ->find_one({foo => 'bar'}, {_id => 0})
20:35 d4rkie joined #mojo
20:35 d4rkie joined #mojo
20:36 tianon that one is used very commonly, though
20:47 tianon especially if the only fields you need are part of a covered index :)
20:51 dotandimet joined #mojo
20:52 SmokeMac_ joined #mojo
21:13 * sri nods
21:41 KindOne joined #mojo
22:13 TitanOfOld joined #mojo
22:26 SmokeMachine joined #mojo
22:33 mire__ joined #mojo
22:58 KindOne joined #mojo
22:59 hrupp1 joined #mojo
23:31 asarch joined #mojo
23:37 dotan1 joined #mojo
23:41 hrupp joined #mojo
23:55 btyler joined #mojo

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