The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2015-11-18

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

All times shown according to UTC.

Time Nick Message
00:10 good_news_everyon joined #mojo
00:10 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/v4aKz
00:10 good_news_everyon mojo/master 86597e3 Sebastian Riedel: bring back 451 status code
00:10 good_news_everyon left #mojo
00:11 sri passed last call and on its way to becoming an rfc
00:13 Zoffix "HTTP 451 Unavailable For Legal Reasons"
00:13 Zoffix Kinda sad we have this.
00:13 Zoffix Though reference to Fahrenheit 451 is totally awesome :)
00:41 gregf joined #mojo
00:43 jberger Yeah I love the reference
00:47 CandyAngel Weeeee
00:47 CandyAngel Time to delve into Greasmonkey script development
00:47 Zoffix \o?
00:47 Zoffix *\o/
00:48 CandyAngel I want to send all the urls I visit to a Mojo app
00:48 mattp jberger: btw was totally pebkac earlier, run_cmd actually works with mojo
00:48 CandyAngel I think I can do that with GM..
00:48 jberger mattp: ah
00:48 jberger Well good that you found the problem
00:48 jberger Bad that I showed my paranoia about schmorp code
00:51 mattp schmorps altercations have gotten him a bad rap, but his code has always been elite :)
00:51 Grinnz eh... i wouldn't go that far :)
00:51 Grinnz i guess it depends whether you want to use the code how schmorp wants you to
00:52 jberger ^^ this
00:52 mattp Grinnz: are you refering to the io::async thing from years ago?
00:53 Grinnz that was a general statement, referring to any number of things
00:53 panshin joined #mojo
00:54 jberger Also the hypocrisies, Coro is essentially using entirely undocumented internals of perl
00:54 jberger Yes io Async gets an exit if
00:54 Grinnz i do like to refer to the IO::Async incident since one of his rants refers to it himself :)
00:54 jberger s/yes/yet/
00:56 genio we've started bowing to his wishes and call him schmorp now instead of mlehmann
00:56 Grinnz i didn't know he wished one or the other
00:57 genio I could be overstating.  I think I remember him referring to that in one of his comments on one of his rants somewhere
00:57 jberger I guess I don't mind calling him by either name as he prefers
00:57 Grinnz I'd love to go rant diving but sadly I have to VPN into work tonight
00:57 jberger The other descritors I'll use are of my choosing
00:58 jberger Grinnz: enjoy that
01:00 mattp jberger: ehhh, perl exposes an API without documenting what is / is not public
01:01 jberger Yes but there are methods and methods
01:01 jberger Just like there are uses and uses
01:01 jberger Coro was just waiting to break
01:03 mattp coro breaking was a .. fumble
01:05 mattp anyway. egos and feelings should be put aside if possible when considering technical decisions within reason. that is all im getting at :)
01:05 CandyAngel But mah feels
01:25 preaction what does that mean, though? that someone gets angry and starts slinging insults and ad hominem, but I shouldn't get equally angry because my feelings and my ego should be put aside? will we then argue about whose feelings are more valid?
01:28 Adura Never try to make an XS module.
01:29 preaction XS is fine
01:32 sri http://i.imgur.com/c4jt321.png
02:00 sri heh, crab's questions earlier actually made me think of a router optimization
02:07 sri results are not too bad either, matching 100k routes goes from 1.30s to 1.03s
02:07 sri dunno why nobody has thought of merging regex and format_regex before
02:16 good_news_everyon joined #mojo
02:16 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/v4Vtt
02:16 good_news_everyon mojo/master c9b6598 Sebastian Riedel: improve router performance
02:16 good_news_everyon left #mojo
02:18 sri something i didn't realize before is that if there are no capturing groups this line will end up with a 1 in @captures
02:18 sri return undef unless my @captures = $$pathref =~ $self->regex;
02:19 sri that messed up the code afterwards a little
02:20 sri my workaround for now is to have a capturing group around the whole regex all the time
02:20 sri and remove that element after matching
02:26 good_news_everyon joined #mojo
02:26 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/v4VmQ
02:26 good_news_everyon mojo/master 8761a8f Sebastian Riedel: no need to use a capturing group
02:26 good_news_everyon left #mojo
02:26 sri ok, that's a little faster :)
02:27 sri 0.98s now
02:30 asarch joined #mojo
02:53 Adura joined #mojo
02:54 noganex joined #mojo
02:59 melo joined #mojo
03:00 noganex_ joined #mojo
03:01 kaare joined #mojo
03:26 noganex joined #mojo
03:34 stephen joined #mojo
05:25 good_news_everyon joined #mojo
05:25 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/v4VMH
05:25 good_news_everyon mojo/master 028455e Sebastian Riedel: more command examples
05:25 good_news_everyon left #mojo
05:42 inokenty-w joined #mojo
05:47 x86 joined #mojo
05:47 x86 i <3 mojo
05:59 crab i'm pretty big, so i'm only smaller than 6 mojos.
06:06 x86 hehe
06:09 Foxcool joined #mojo
06:11 good_news_everyon joined #mojo
06:11 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/v4Vdn
06:11 good_news_everyon mojo/master b5be1a7 Sebastian Riedel: more examples
06:11 good_news_everyon left #mojo
06:20 x86 lol that's pretty cool
06:38 good_news_everyon joined #mojo
06:38 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/v4Vxb
06:38 good_news_everyon mojo/master 9ba62ec Sebastian Riedel: also mention the routes and version commands
06:38 good_news_everyon left #mojo
06:52 aborazmeh joined #mojo
06:54 ichi joined #mojo
06:56 dod joined #mojo
07:01 dod joined #mojo
07:12 panshin joined #mojo
07:22 buu Quick, someone teach me mojo-ioloop
07:38 trone joined #mojo
08:05 Vandal joined #mojo
08:06 trone joined #mojo
08:09 eseyman joined #mojo
08:18 osfabibisi joined #mojo
08:37 AndrewIsh joined #mojo
08:43 panshin joined #mojo
09:06 good_news_everyon joined #mojo
09:06 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/v4wbR
09:06 good_news_everyon mojo/master f627e46 Sebastian Riedel: the backslash is not important
09:06 good_news_everyon left #mojo
09:16 cpan_mojo Mojolicious-Command-swat-0.0.5 by MELEZHIK https://metacpan.org/release/MELEZHIK/Mojolicious-Command-swat-0.0.5
09:30 ashimema Is the code example under 'Using Mojo::IOLoop::Delay to Manage Non-Blocking Flow' on http://blogs.perl.org/users/joel_berger/2013/11/writing-non-blocking-applications-with-mojolicious-part-2.html still a good example of how to achieve non-blocking requests to external services?
09:31 crab yes, it's reasonable.
09:32 ashimema cheers
09:33 ashimema time to re-write my flow a little.. that's a bit different to my code.. but apperas to achieve what I'm attempting a bit more elegantly :)
09:36 bd ashimema: FWIW i used something like this http://paste.debian.net/hidden/3e3640f2/ just yesterday :)
09:38 ashimema That's a bit closer to what I have at the moment.
09:39 bd that's not in a mojolicious app though, just some scraping
09:40 ashimema I basically want to pass in an array of urls, and return an array of retrieved items extracted from the responses to those url requests.
09:40 ashimema and it's also not in a mojo app in this case.. mostly a scraping task :(
09:43 CandyAngel I achieved what I wanted last night :) Greasemonkey now sends the URL I'm at to a local Mojo app, which responds with HTML to add to the top of the page (if any). It's niiiiiiiice
10:09 berov joined #mojo
10:12 jontaylor joined #mojo
10:21 nic batman: Does convos integrate with any non-irc services?
10:22 nic I need to use hipchat, but I hate the inefficient UI.  Bolting something like convos onto it might make it usable
11:21 buu Does anyone know binary.com ?
11:27 cosimo joined #mojo
11:30 melo joined #mojo
11:32 Zoffix joined #mojo
11:46 panshin joined #mojo
12:13 berov left #mojo
12:14 berov joined #mojo
12:15 neilhwatson joined #mojo
12:30 panshin joined #mojo
12:45 bjakubski joined #mojo
12:57 ajr_ joined #mojo
12:58 stephen joined #mojo
13:11 kaare joined #mojo
13:12 ZoffixW joined #mojo
13:13 hernan605 joined #mojo
13:13 ZoffixW buu, the loop was a subject of the TPM talk: https://www.youtube.com/watch?v=FaPdlkkSvV8
13:14 ZoffixW buu, it's the last talk of the three (not sure at what time code it starts)
13:14 trone joined #mojo
13:14 buu heh
13:14 buu ok
13:14 panshin joined #mojo
13:15 ZoffixW buu, LEARN THE GOODNESS OF MOJO! :)
13:15 buu I AM MOJOED UP
13:16 batman joined #mojo
13:16 batman no. join #convos on irc.freenode.net for more questions.
13:17 batman nic: ^
13:18 dod joined #mojo
13:19 hernan606 joined #mojo
13:23 batman nic: i will give you more details in #convos if you like to contribute.
14:08 panshin joined #mojo
14:13 panshin joined #mojo
14:49 gryphon joined #mojo
14:52 panshin joined #mojo
15:23 Eric joined #mojo
15:40 sh4 joined #mojo
15:47 Rafael joined #mojo
15:50 batman nic: sorry if I sound dismissive. Just in a hurry to get home from work :/
15:50 batman Send me a pm if you don't want to connect to freenode and I'll answer you when I get home.
15:52 panshin joined #mojo
15:52 dod1 joined #mojo
15:53 voldemortensen joined #mojo
15:57 dod joined #mojo
16:04 asarch joined #mojo
16:10 lluad joined #mojo
16:20 dod joined #mojo
16:26 bwf joined #mojo
16:26 PryMar56 joined #mojo
16:33 dod joined #mojo
16:38 Rafael left #mojo
16:42 sue joined #mojo
16:44 melo joined #mojo
17:23 ZoffixW joined #mojo
17:28 dod joined #mojo
17:36 dod joined #mojo
17:52 sue joined #mojo
18:05 disputin joined #mojo
18:14 good_news_everyon joined #mojo
18:14 good_news_everyon [mojo] kraih tagged v6.32 at e942048: http://git.io/v46Aa
18:14 good_news_everyon left #mojo
18:16 good_news_everyon joined #mojo
18:16 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/v46xY
18:16 good_news_everyon mojo/master 3f45e92 Sebastian Riedel: bump version
18:16 good_news_everyon left #mojo
18:16 sh4 joined #mojo
18:17 sri 9999 commits :)
18:17 sri https://github.com/kraih/mojo
18:23 ZoffixW \o/
18:24 ZoffixW What would cause morbo to reload every two seconds? I'm starting it with this:   morbo -w lib -w bin -w templates -w public -l http://*:3333 bin/ModulesPerl6.pl
18:24 sri editor temp files?
18:24 ZoffixW sri, the suspense is killing me. c'mon, commit something :)
18:25 Grinnz_ assetpack?
18:25 ZoffixW sri, no, I always used this editor (Sublime Text 2) and I never seen it create temp files
18:25 ZoffixW Grinnz_, oh, maybe. I was just messing with it
18:25 * ZoffixW looks
18:26 sri try morbo -v
18:26 ZoffixW oh right. I'm watching public and assetpack generates stuff there :S
18:27 ZoffixW Thanks. sri++ Grinnz_++
18:27 ZoffixW sri, I actually know what you can commit.
18:27 ZoffixW Unless (a) it was fixed already (b) you want a more substantial commit than a typo fix
18:27 * ZoffixW tries to remember where they spotted it...
18:28 ZoffixW It was "A Birds Eye" and should be "A Bird's Eye"
18:29 ZoffixW Ah, here: https://metacpan.org/pod/distribution/Mojolicious/lib/Mojolicious/Guides/Growing.pod#A-birds-eye-view
18:29 good_news_everyon joined #mojo
18:29 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/v4iJZ
18:29 good_news_everyon mojo/master 5290bc8 Sebastian Riedel: fix typo in growing guide
18:29 good_news_everyon left #mojo
18:29 sri oh well
18:30 sri 10000
18:30 ZoffixW Woohoooo Mojolicious++
18:30 sri 🎊🎉🎁🎈
18:31 batman hehe. the grand 10000 commit: "fix typo" :)
18:31 batman sri++
18:31 ZoffixW :)
18:39 bjakubski joined #mojo
18:40 voldemortensen joined #mojo
18:41 voldemortensen joined #mojo
19:02 ZoffixW joined #mojo
19:05 ZoffixW I'm at a loss. This code dies with "$VAR1 = '/packed/dist-logos-5ec82fa23d6beb790a40961cdf773f64.css';", but if I comment out the die, my href="" ends up with "1" in it: http://fpaste.scsys.co.uk/501643
19:06 ZoffixW Oh, nm, I needed href="<%= (asset->get('sprite.css'))[0] %>">
19:07 panshin joined #mojo
19:15 disputin joined #mojo
19:18 trone joined #mojo
19:25 hernan605 joined #mojo
19:40 cpan_mojo CSS-SpriteMaker-1.001001 by ZOFFIX https://metacpan.org/release/ZOFFIX/CSS-SpriteMaker-1.001001
19:40 ZoffixW Oh god
19:40 ZoffixW CSS::SpriteMaker actually exists
19:40 * ZoffixW bursts out laughing
19:41 ZoffixW My interface is so much simpler though...
19:41 * ZoffixW repackages
19:41 Grinnz lrn2 do a metacpan search before releasing :P
19:42 Grinnz and i tend to do a s.c.o one too, in case there's something metacpan isn't indexing anymore
19:42 ZoffixW Hehe. I usually do, but this code was already written and I figured I'd just package it before I rip it out of a project where I wrote it on originally :)
19:42 ZoffixW So I kinda rushed it out
19:43 Grinnz documenting private methods, now that's an interesting approach
19:43 Grinnz (not yours, the other one)
19:44 batman ZoffixW: i thought you used assetpack for this..?
19:45 ZoffixW batman, I am :) even CSS::SpriteMaker uses AssePack under the hood :) The story is modules.perl6.org was a static site first, so I wrote this ::SpriteMaker to generate the sprite, but now we're switching to a Mojo app, so I won't need the ::SpriteMaker, since I can just use AssetPack directly
19:45 batman aha. i see :)
19:46 good_news_everyon joined #mojo
19:46 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/v4iXF
19:46 good_news_everyon mojo/master e1c1ecc Sebastian Riedel: fix attribute order
19:46 good_news_everyon left #mojo
19:47 batman ZoffixW: i would take a PR to add a mojo command that can make assets using assetpack
19:47 batman like $ mojo assetpack input.scss files.scss > output.css
19:48 batman not sure if that helps you though... just making conversations, haha
19:48 ZoffixW Nah, I don't need that any more (at least for the time being) and I won't have any tuits for that in the near future anyway :)
19:49 batman sounds good to me
19:51 batman sri: in the spirit of 10000+ commits: thanks again for making mojolicious! it's a gamechanger to me.
19:51 ZoffixW Indeed. Mojolicious is awesome
19:52 sri \o/
19:53 batman 🍻
19:55 cpan_mojo CSS-SpriteMaker-Simple-1.001001 by ZOFFIX https://metacpan.org/release/ZOFFIX/CSS-SpriteMaker-Simple-1.001001
20:02 jberger Mojo just got me another job :D
20:02 jberger sri++
20:02 jberger mojo++
20:02 jberger 🍻
20:03 ZoffixW jberger++
20:03 jberger my second mojo job
20:04 batman jberger: awesome! congrats :)
20:06 Grinnz_ grats!
20:09 sri \o\
20:09 sri /o/
20:10 genio -o-
20:38 disputin joined #mojo
20:53 marcusr Yo dawg, I heard you liked mojo, so I put some mojo in your job
20:54 jberger \o\
20:54 jberger /o/
20:54 marcusr /o\
20:58 marty joined #mojo
21:26 ZoffixW :S Mojo::Reactor::EV: I/O watcher failed: Bad arg length for Socket::unpack_sockaddr_in, length is 28, should be 16 at /home/zoffix/perl5/perlbrew/perls/perl-5.20.2/lib/site_perl/5.20.2/x86_64-linux/Socket.pm line 831.
21:26 x86 joined #mojo
21:26 ZoffixW Any idea what that means?
21:27 Grinnz_ sounds like you passed a IPv6 addr to something expecitng IPv4
21:29 ZoffixW The app works on another box tho
21:29 sri i've seen that a few times, but don't remember what exactly it was
21:29 sri think it was ipv6 related though
21:29 ZoffixW Hm. I see asset pack is trying to fetch something and it fails: http://fpaste.scsys.co.uk/501645
21:32 lluad bootswatch.com has AAAA records, so it could be that assetpack is trying to use that and isn't expecting this decades internet.
21:32 ZoffixW lluad, but it's working on one of my computers
21:32 Grinnz_ does one have a IPv6 tunnel and the other not?
21:32 ZoffixW (still; /me tries to download the swatch and use the method that batman is unsuported)
21:33 sri perhaps a bad Socket.pm version?
21:33 ZoffixW I tried upgrading to most recent
21:33 ZoffixW Grinnz_, no idea what that means :) It's a Linode.com box with Debian
21:33 lluad Whether a linux box believes it has IPv6 or not (and so whether code will try and use it or not) isn't always clear on IPv4-only networks.
21:34 lluad Linode do provide IPv6, so it could be one is configured to use it and one isn't. Sounds like an assetpack bug, though, if so.
21:34 Grinnz_ yeah i had to disable the IPv6 tunnel i had on this box cause it was causing various things to fail since i couldn't configure IO::Socket::IP to force IPv4
21:35 sri lol, i had the same problem once http://irclog.perlgeek.de/mojo/2012-05-26#i_5641567
21:35 ZoffixW sri, how did you fix it? :)
21:35 * sri shrugs
21:35 Grinnz_ switching to IO::Socket::IP, looks like
21:35 ZoffixW Where? :) I'm not even using it lol
21:36 sri mojolicious always uses IO::Socket::IP these days
21:37 Grinnz_ ZoffixW: IO::Socket::SSL does
21:37 Grinnz_ in addition
21:37 sri a lot of bugs got fixed in those modules over the years because we did weird non-blocking stuff with modules like IO::Socket::IP and IO::Socket::SSL :)
21:38 Grinnz_ https://metacpan.org/source/SULLR/IO-Socket-SSL-2.020/lib/IO/Socket/SSL.pm#L295
21:39 sri ZoffixW: you don't have IO::Socket::INET6 loaded right?
21:39 sri i imagine that could clash with IO::Socket::IP
21:39 ZoffixW Not deliberately
21:39 ZoffixW This is the app FWIW: https://github.com/perl6/modules.perl6.org/tree/mojo-app/web
21:39 sri make sure Socket6 is not installed at all ;p
21:40 Grinnz_ ZoffixW: what version of IO::Socket::IP do you have? (Mojolicious only requires 0.26 but IO::Socket::SSL needs 0.31 to use it)
21:40 ZoffixW not installed
21:41 ZoffixW Grinnz_++
21:41 ZoffixW Successfully installed IO-Socket-IP-0.37 (upgraded from 0.29)
21:41 ZoffixW And that fixed the issue :D
21:41 Grinnz_ \o/
21:41 sri hmm, should we bump the requirement?
21:41 sri 5.22 shipped with 0.37
21:42 Grinnz_ indeed
21:42 sri 5.20 with 0.29
21:43 sri hmm, all Changes in IO::Socket::IP says is "- make sure we don't use version 0.30 of IO::Socket::IP"
21:43 sri that is not a good sign!
21:44 Grinnz_ " * A better fix for subclassing ->connect (RT95983) because 0.30 broke
21:44 Grinnz_ the way IO::Socket::SSL works (RT97050)" - from IO::Socket::IP changes
21:45 sri so, do we bump the requirement?
21:46 ZoffixW Yes. 'cause that error was really weird and without Grinnz_'s expertise, I'd still be banding on the keyboard and thinking the problem was in Socket :)
21:47 ZoffixW Then again IO::Socket::SSL is optional, isn't it?
21:47 sri nope
21:48 good_news_everyon joined #mojo
21:48 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/v4Pzj
21:48 good_news_everyon mojo/master c0342de Sebastian Riedel: update IO::Socket::IP requirement to 0.37
21:48 good_news_everyon left #mojo
21:49 sri so, we are now only dep free on 5.22 (previously 5.20 and 5.22)
21:50 sri the unfortunate part here is that it's optional in IO::Socket::SSL, so we can't inherit its version requirement
21:51 sri and now that i get it, we have to bump the requirement
21:51 sri since Mojo::IOLoop would use IO::Socket::IP all the time, while IO::Socket::SSL only could do so if IO::Socket::IP 0.31 was installed
21:52 sri causing the problem Zoffix had
21:53 sri btw. it bugs me that some people never release a 1.0 even for obviously stable modules
21:54 sri i'm looking at you Leonerd and Oleg!
21:59 met joined #mojo
22:07 disputin joined #mojo
22:11 sue joined #mojo
22:11 sri hmmm http://www.learning-perl.com/2015/11/should-we-call-it-learning-perl-5/
22:14 ZoffixW Damn.
22:16 * ZoffixW doesn't see a good solution; without P6 renaming itself that is
22:16 ZoffixW Or P5 renaming itself; whichever
22:20 Grinnz_ :/
22:21 sue joined #mojo
22:24 met joined #mojo
22:35 marty joined #mojo
22:38 sue joined #mojo
22:52 neilhwatson joined #mojo
23:09 panshin joined #mojo
23:24 ZoffixMobile joined #mojo
23:42 * jberger keeps his trap shut
23:42 asarch joined #mojo
23:51 ZoffixMobile joined #mojo
23:54 Grinnz_ since neither renaming is likely going to happen; people will think p6 is newer either way, so my vote is for keeping it as "learning perl"
23:54 Grinnz_ at least then it sounds as generally applicable as it is
23:56 ZoffixMobile My vote is to use the cover to promote your Perl 6 book as well :p remove confusion and get free marketing with one stone :)

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