Camelia, the Perl 6 bug

IRC log for #mojo, 2013-05-16

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

All times shown according to UTC.

Time Nick Message
00:01 suicidejack Hello, I was wondering if someone could make it clear what it the Mojolicious license means in terms of usage
00:01 Akron It's there! ++ to all core developers and contributors!
00:02 suicidejack I saw that it uses the Artistic License v2.0 which from what I understand means the company I work for can use Mojolicious without being forced to release anything we build on top of it
00:02 suicidejack is that true?
00:03 sri artistic is the perl license, so what you can do with perl you can do with mojolicious
00:06 suicidejack ok that's what I thought but I'm having issues introducing it into my company...gotta love lawyers
00:07 buu suicidejack: The license is like 5 pages long, surely they can read it?
00:07 sri don't company lawyers usually have a license whitelist?
00:07 buu suicidejack: But my reading of it says you distribute unmodified mojo all you want, and since your project is unlikely to modify it..
00:09 sri then again... we don't have the crazy software patent situation over here in europe (yet)
00:09 suicidejack I honestly don't know anything about the legal side but I will say my company is extra paranoid, you have no idea how many issues we have run into trying to opensource some of the work I and my team has done
00:10 btyler joined #mojo
00:18 sri WAT?! http://www.reddit.com/r/perl/comments/1eeohs​/mojolicious_40_released_perl_realtime_web/
00:23 jberger I think I can make a polite reply
00:26 jberger http://www.reddit.com/r/perl/comments/1eeohs/mo​jolicious_40_released_perl_realtime_web/c9zlctx
00:26 sri s/y//
00:27 sri jberger++
00:28 sri 10 days until arrested development season 4!
00:28 hotsnow joined #mojo
00:28 jberger fixed and with a link to the readme via github
00:29 jberger it would be nice if metacpan could render markdown
00:30 jberger (fixed yet again) grrr
00:42 shmuel joined #mojo
00:55 btyler joined #mojo
00:55 jberger hehe, the reddit shortened link kind works!
00:55 jberger http://redd.it/1eeohs
00:55 jberger lee ohs at our new version :-)
00:58 btyler congrats! time to ditch my j()'d websocket data :)
00:58 preflex joined #mojo
01:03 good_news_everyone joined #mojo
01:03 good_news_everyone [mojo] jberger pushed 2 new commits to master: http://git.io/-yeXrg
01:03 good_news_everyone mojo/master e25c015 David Steinbrunner: typo fixes
01:03 good_news_everyone mojo/master 13f2003 Joel Berger: Merge pull request #490 from dsteinbrunner/patch-1...
01:03 good_news_everyone left #mojo
01:03 jberger github makes typo fixes from the peanut gallery so bleeping easy
01:03 jberger I love it
01:05 sri ah, that guy again
01:05 sri he has been reporting typos like crazy, saw him on p5p as well
01:05 jberger thats awesome
01:07 sri he seems to be working on a spell checking engine for code or so
01:07 jberger ah
01:08 jberger hey, I don't care how it gets done
01:08 sri there sure is demand :)
01:08 jberger everyone always says "if you don't want to contribute code you can always contribute doc"
01:08 jberger he's doing it, good for him (whatever his reasons)
01:09 sri i'm not complaining, just thought it's interesting
01:09 jberger oh I know
01:09 jberger I was agreeing :-)
01:12 hotsnow joined #mojo
01:16 d4rkie joined #mojo
01:16 jberger dsteinbrunner++: https://github.com/dsteinbrunner?ta​b=contributions&period=monthly
01:25 jberger sri: any plans for a Mango release soon?
01:26 jberger if you do I would post my Non-blocking Mojo 4.0 WebSocket example
01:26 jberger https://gist.github.com/jberger/5573597
01:26 sri Mango release only once the new core is ready
01:27 jberger ok
01:27 sri for which i will hopefully have a little more time now :)
01:27 jberger this is connection pools right?
01:27 sri ye
01:27 jberger \m/
01:28 jberger no hurry
01:31 xaka joined #mojo
01:34 _xaka_ joined #mojo
02:05 human39 joined #mojo
02:30 human39 joined #mojo
03:24 ynonp joined #mojo
03:46 fildon__ joined #mojo
04:49 fhelmber_ joined #mojo
04:53 connor_goodwolf joined #mojo
05:01 HtbaaPi joined #mojo
05:02 basiliscos joined #mojo
05:06 Meiermann joined #mojo
05:17 hotsnow joined #mojo
05:36 Farglebargle joined #mojo
05:38 Farglebargle Hey -- good evening.   Question:   I have an app, which uses facebook for registration/login.   It works, but.... I'm sort of at a loss on how to *test* it.   I can get to what looks like a websockety dialog, but rendering it and filling it are a mystery?   Do I just punt, and setup a /login route and do it manually for testing purposes?   I'd rather not, since that gives a huge gap in coverage.
05:41 preaction i think facebook can give you a test user: https://developers.facebook.com/docs/test_users/
05:46 Farglebargle It's not as much a test user, as the login dialog is buried inside non-html binary blobs.  I think.
05:47 Farglebargle ACtually, reading the docs now.  MIGHT be useful.
05:47 preaction if you use the test user, you don't get the login dialog, your app just continues on
05:48 preaction the login dialog not being part of your app, you don't want to fill it in. i'm not sure they're binary blobs, though. browsers render HTML
05:49 preaction from what I remember about OAuth, it takes you to another page entirely if you need to log in, and there's a callback URL that you get returned to
05:52 Farglebargle Yeah.  You redirect to a login dialog, and after the user hits submit, it posts to the callback
05:53 Farglebargle I have a dump of the server/client dialog from MOJO_USERAGENT_DEBUG=1.
05:53 preaction so, if you make a test user, instead of the login dialog, it goes right back to your app via the callback
05:53 preaction are you using the Facebook::Graph module?
05:53 Farglebargle Not for the login part.
05:54 Farglebargle I'm goign to try out the testuser stuff.  THANK YOU for the lead.
05:56 fhelmber_ joined #mojo
06:24 rem_lex| joined #mojo
06:36 Mike-PerlRecruiter_ joined #mojo
06:43 Adurah joined #mojo
06:49 periapt joined #mojo
06:58 suy joined #mojo
07:08 dod joined #mojo
07:16 Annihitek joined #mojo
07:21 Vandal joined #mojo
07:32 inokenty joined #mojo
07:35 egopro joined #mojo
07:38 jzawodn joined #mojo
07:41 dod joined #mojo
07:44 lukep joined #mojo
07:47 suy joined #mojo
07:58 yakudza joined #mojo
08:00 dotan joined #mojo
08:00 suy joined #mojo
08:18 user_7773 joined #mojo
08:22 shmuel joined #mojo
08:58 mire_ joined #mojo
09:14 dod joined #mojo
09:19 Dandre joined #mojo
09:20 ynonp joined #mojo
09:23 nelio joined #mojo
09:26 hrupp joined #mojo
09:28 egopro joined #mojo
09:31 cosmincx joined #mojo
09:51 maxhq joined #mojo
10:07 * sri yawns
10:32 marty o/
10:39 sri \o
10:42 Vandal is there a j from Mojo::JSON somewhere in templates or I should use Mojo::JSON explicitly?
10:48 yakudza no helper exists
10:48 yakudza but u can create you own
10:49 yakudza $self->helper(json => sub { Mojo::JSON->new })
10:49 yakudza at the sub startup
12:00 cosmincx joined #mojo
12:15 nic joined #mojo
12:19 D4RK-PH0ENiX joined #mojo
12:27 btyler joined #mojo
12:32 hotsnow joined #mojo
12:35 andrefs joined #mojo
12:36 moltar joined #mojo
12:45 d4rkie joined #mojo
13:10 asarch joined #mojo
13:18 gryphon joined #mojo
13:21 bluescreen joined #mojo
13:23 SmokeMachine joined #mojo
13:24 btyler joined #mojo
13:26 doby joined #mojo
13:34 mire_ joined #mojo
13:55 dpetrov_ joined #mojo
14:12 sh4 joined #mojo
14:23 labrown joined #mojo
14:25 hotsnow joined #mojo
14:36 abra joined #mojo
14:47 jberger Vandal, you can just:
14:47 jberger % use Mojo::JSON 'j';
14:47 jberger in your template
14:48 stephan48 so thats the offical way?
14:49 stephan48 aka no better way?
14:51 Fatalnix oh hi sri, I was just reading about you on jberger's blog
14:51 Fatalnix :D
14:51 Fatalnix oh nvm I was scrolled up
14:51 Fatalnix I thought he was just talking, heh.
14:53 sri o/
14:53 jberger stephan48, or make a helper as yakudza suggests
14:54 jberger its not terribly often that you need to generate json in a template (at least that I've seen)
14:54 jberger sri: \o
14:54 Fatalnix don;t mind me, I'm just hopping between channels
14:55 * jberger places a trampoline under Fatalnix
14:58 patspam joined #mojo
14:59 patspam left #mojo
15:12 ynonp joined #mojo
15:28 hotsnow joined #mojo
15:38 btyler joined #mojo
15:49 bluescreen_ joined #mojo
15:59 xaka joined #mojo
16:01 mattastrophe joined #mojo
16:07 mattastrophe joined #mojo
16:11 sh3 joined #mojo
16:17 abra joined #mojo
16:23 SmokeMac_ joined #mojo
16:29 sh3 joined #mojo
16:38 bowtie joined #mojo
16:43 dod joined #mojo
16:51 Britzel joined #mojo
16:54 Fatalnix wow, I killed #mojo
17:20 sri trampolines are death traps
17:30 basiliscos joined #mojo
17:40 sri interesting... the w3c streams api is quite similar to the way we handle streaming https://dvcs.w3.org/hg/streams​-api/raw-file/tip/Overview.htm
17:40 * sri likes the name ->append instead of ->write
17:40 sri write kinda implies a blocking operation, while append makes it clear you append to a buffer
18:06 btyler joined #mojo
18:14 gryphon joined #mojo
18:21 Farglebargle Hey there.
18:21 Farglebargle left #mojo
18:22 mikelieman joined #mojo
18:22 mikelieman So, I'm trying to test a webapp which uses facebooks api for login
18:23 mikelieman And when I point the $t object at in a test script, it appears to complain that the client doesn't handle javascript.
18:23 mikelieman It appears there are a few www::mechanize sorta things which would maybe handle the javascript parts .
18:24 stephan48 maybe in your case you need to mock (imitate) the facebook side of the api?
18:24 mikelieman Maybe... I'd like to have as much coverage as possible however.
18:25 mikelieman It's not a showstopper at the moment.   But in terms of 'end-to-end' coverage, it would be important.
18:25 stephan48 ye
18:26 mikelieman And since I deprecated the legacy username/password based login for facebook's api, I'd have to add that back in.   I'm still in the 'thinking about things' stage, thankfully.
18:28 ynonp joined #mojo
18:30 SmokeMachine joined #mojo
18:36 Mike-PerlRecruiter_ joined #mojo
18:57 nelio joined #mojo
19:09 Akron joined #mojo
19:10 Akron First failing 4.0-related tests on cpantesters for my plugins. I guess I have to install it on the weekend. ;)
19:34 dod joined #mojo
19:40 edenc joined #mojo
19:42 sri FIX ALL THE THINGS!
19:44 mikelieman You now owe  Allie Brosh a dollar!
20:00 Akron sri: Yes, sir.
20:31 wruppert joined #mojo
20:38 gryphon joined #mojo
20:58 wruppert joined #mojo
21:25 wruppert joined #mojo
21:28 tianon joined #mojo
21:36 lukep joined #mojo
21:44 btyler_ joined #mojo
21:59 _xaka_ joined #mojo
22:07 xaka joined #mojo
22:10 HtbaaPi not sure if I'm the only one experiencing it, but with Strawberry Perl 5.16.2 (32bit) and Mojolicious 4.00 stopping morbo with ctrl+c is taking a lot longer now
22:13 sri HtbaaPi: define *a lot*
22:14 xaka joined #mojo
22:15 cstamas joined #mojo
22:18 HtbaaPi sri: don't have measurements, but before 4.00 it was about 2-3 seconds. Now it seems to be doubled
22:18 sri takes 0.5-1.0 seconds here
22:19 HtbaaPi is that on Windows?
22:19 sri os x
22:19 HtbaaPi :-)
22:19 sri same on linux
22:19 HtbaaPi guess we can blame Windows :)
22:19 sri you should be glad it works at all on windows ;p
22:19 HtbaaPi not surprised though. When I run it under Linux it's very fast
22:20 sri which version did you use before?
22:20 HtbaaPi I believe it was 3.97
22:20 HtbaaPi latest before 4.00
22:21 sri don't think much changed since then that should affect windows
22:21 HtbaaPi also with EV installed morbo just crashes with a warning from EV that it doesn't support ithreads. Since I wasn't using EV I just uninstalled it
22:22 sri we added that error, before it would just crash without saying anything meaningful
22:23 sri well, windows sucks
22:23 HtbaaPi yeah, that was helpful. Because on my desktop (without EV) morbo ran fine, but my laptop not (with EV)
22:24 sri i've been wondering if we could just downgrade the reactor automatically on windows, but i don't have a windows box for testing
22:24 xaka joined #mojo
22:25 HtbaaPi it would be 'possible' to install Windows on a virtual machine like VirtualBox. But likely not the most ideal test situation
22:26 sri http://pastie.org/7918092 # like this
22:27 HtbaaPi if you ever want me to test something on Windows just send me a message. I'm more than happy to test it for you
22:28 sri would be interesting to know if the patch above makes morbo work with EV installed :)
22:29 sri actually, i'm pretty sure it wouldn't
22:29 sri since state gets lost
22:30 HtbaaPi you're right, it doesn't work
22:30 sri thanks :)
22:31 sri it just hangs right?
22:31 HtbaaPi gives me the usual windows crash dialog
22:32 sri oh
22:32 HtbaaPi but it does say this on the console: Free to wrong pool 2931b78 not 718328 at C:/strawberry/perl/site/bin​/../lib/Mojo/Reactor/EV.pm line 69.
22:32 sri ok, then it can't work at all, good to know!
22:33 tianon sri: wouldn't it be useful if Mango::Cursor::sort took a list instead of a hashref, since order on a sort matters?  ie, $cursor->sort(first => 1, second => -1) instead of $cursor->sort({first => 1, second => -1}) - especially where hash order is undefined, and even randomized
22:34 HtbaaPi sri: something I've run into in the last couple of days is that Mojo::UserAgent only seems to support basic http authentication. Would supporting digest authentication out of the box be a good idea?
22:35 sri HtbaaPi: we've decided against having digest in core
22:35 HtbaaPi any particular reason? Just curious
22:35 sri too messy and rarely used
22:35 sri basic over https is much more common
22:35 HtbaaPi ah ok, thanks for clarifying
22:36 HtbaaPi gotta head to bed. Good night!
22:37 sri tianon: i see those all as documents
22:37 tianon indeed, but to get consistent sorting right now on multiple fields, we have to use Tie::IxHash, which is cumbersome, so I figured while Mango's still in infancy I should bring it up :)
22:38 sri would hate to mix up array, hash and sorted hash in the api
22:38 sri tianon: http://mojolicio.us/perldoc/Mango/BSON#bson_doc
22:38 tianon ah duh, forgot about bson_doc
22:38 tianon thanks :)
22:38 sri i would never make you use Tie::IxHash :)
22:39 tianon indeed, hence my confusion, but I had forgotten that you had already handled that :)
22:39 tianon so maybe the docs for at least sort() should use bson_doc instead of {}, just to make it obvious that that's probably what you wanted?
22:39 tianon or in addition to
22:39 sri possibly
22:40 tianon sri++ # as always :)
22:40 cstamas joined #mojo
22:41 tianon like after the line you've got: use Mango::BSON 'bson_doc'; $cursor  = $cursor->sort(bson_doc(foo => 1, bar => -1));
22:41 tianon or something
22:41 tianon just a thought :)
22:41 sri or i just describe those values as "documents" in the descriptions and explain bson_doc at a central point once
22:42 tianon yeah :)
22:42 sri there has been talk on p5p again recently about making hashes ordered
22:45 sri but i suppose the additional memory cost will prevent it
22:48 tianon yeah, from what I saw, the memory cost was a dealbreaker for a lot of the devs
22:48 tianon it would be a very nice optional feature
22:52 zivester joined #mojo
23:40 moltar joined #mojo

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