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

IRC log for #mojo, 2015-01-31

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

All times shown according to UTC.

Time Nick Message
00:05 gyan joined #mojo
00:25 jberger dotandimet: you can still squash the commits you know
00:26 gyan joined #mojo
00:26 jberger the pr survives a force push
00:26 jberger dotandimet++
00:47 gyan joined #mojo
01:08 gyan joined #mojo
01:11 marty joined #mojo
01:29 gyan joined #mojo
01:50 gyan joined #mojo
02:12 gyan joined #mojo
02:12 klapperl joined #mojo
02:31 gyan joined #mojo
02:52 gyan joined #mojo
02:53 Grinnz Mojo::Reactor::IO::Async? or Mojo::Reactor::IO_Async?
02:53 Grinnz there don't seem to be any multipart mojo reactor subclasses yet
02:53 Grinnz names, that is
02:54 preaction IOAsync maybe?
02:54 Grinnz a third option, great :P
02:55 preaction _ usually doesn't go in package names, and there's no Mojo::Reactor::IO, so having Mojo::Reactor::IO::Async makes less sense than just ::IOAsync
02:56 Grinnz the s/::/_/ thing is a POE::Loop practice
02:57 jberger I would rule out Mojo::Reactor::IO::Async
02:57 Grinnz on the other hand, there's IO::Async::Loop::IO::Async
02:57 Grinnz :P
02:57 jberger if for no other reason than I can imagine that Mojo::Reactor::IO might be a useful namespace
02:57 Grinnz maybe...
02:57 purl Maybe not.
02:58 Grinnz it's interesting to note that all 3 of these possibilities are currently in use
02:58 Grinnz Gungho::Engine::IO::Async, AnyEvent::Impl::IOAsync, POE::Loop::IO_Async
02:59 jberger also note that this exists: https://metacpan.org/pod/IO::Async::Loop::Mojo
02:59 jberger I'm not sure its what you are after however
02:59 Grinnz it's not, as i'm after an IO::Async reactor for mojo because there isn't one yet :P
03:05 punter joined #mojo
03:14 Grinnz Mojo::Reactor::IOAsync it is
03:15 * preaction wins!
03:32 noganex_ joined #mojo
04:43 punter joined #mojo
04:53 jamesw joined #mojo
06:02 Grinnz joined #mojo
06:13 Grinnz looking at IO::Async::Process more closely, it does have the ability to set callbacks on stdout/stderr, I missed this before
06:13 Grinnz maybe a Mojo child process handler could get inspiration from that
07:28 rem_lex|pivo joined #mojo
07:52 sri don't forget to upvote this ;) https://github.com/isagalaev/highlight.js/pull/722
08:10 ryozi joined #mojo
08:13 sri well, that backfired
08:27 Vandal joined #mojo
08:27 Adurah joined #mojo
08:28 dotandimet joined #mojo
08:40 reneeb joined #mojo
08:49 odcfosdem joined #mojo
08:53 firnsy backfired just enough to get merged
08:54 sri not yet
09:09 rem_lex joined #mojo
09:12 dod joined #mojo
09:16 dod joined #mojo
09:33 good_news_everyon joined #mojo
09:33 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/FQ7x
09:33 good_news_everyon mojo/master 0d61a23 Sebastian Riedel: fix bug in Mojo::Server::Prefork where the TTOU signal would not always stop a worker
09:33 good_news_everyon left #mojo
09:51 AndChat|361524 joined #mojo
09:51 odcfosdem joined #mojo
09:55 odcfosdem joined #mojo
10:45 basiliscos joined #mojo
11:08 trone joined #mojo
11:43 sri dotan: i'll try to make the development template use <pre><code> too
11:44 sri should make it easier to convert to highlight.js
11:58 Eke- joined #mojo
12:05 melo joined #mojo
12:06 good_news_everyon joined #mojo
12:06 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/F7r0
12:06 good_news_everyon mojo/master 4d21ed1 Sebastian Riedel: use <pre><code> blocks consistently for highlighting
12:06 good_news_everyon left #mojo
12:06 sri dotan: hope that helps
12:08 sri each line is still in an individual <pre><code> block though
12:08 sri ideas for changing that would be very welcome
12:09 sri i'm still testing syntax highlighting with this one-liner
12:09 sri MOJO_LOG_LEVEL=debug perl -Ilib -Mojo -E 'plugin "PODRenderer"; a({inline => "test\n% die;\n123"})->start' daemon
12:11 sri it will always just be a snippet though, so that limits the quality of the syntax highlighting anyway
12:17 AndChat|361524 joined #mojo
12:24 odcfosdem joined #mojo
12:26 AndChat|361524 joined #mojo
12:27 odcfosdem joined #mojo
12:28 AndChat-361524 joined #mojo
12:30 AndChat|361524 joined #mojo
12:30 AndChat-361524 joined #mojo
12:31 AndChat|361524 joined #mojo
12:35 odcfosdem joined #mojo
12:35 AndChat|361524 joined #mojo
12:42 odcfosdem joined #mojo
12:43 AndChat|361524 joined #mojo
12:43 odcfosdem joined #mojo
12:45 AndChat|361524 joined #mojo
13:45 tencendur joined #mojo
13:57 amon joined #mojo
14:11 sri i guess everyone is at fosdem
14:16 marty joined #mojo
14:31 mishantil I'm not.
14:32 mishantil But I have meat on a slow steam, ready in about four hours time, so all is good.
14:32 ivan joined #mojo
14:49 jberger I'm not, and since we are discussing food, I made a delicious lasagna
14:57 * sri just got delicious donuts from a new donut shop that opened around the corner
15:00 good_news_everyon joined #mojo
15:00 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/F5au
15:00 good_news_everyon mojo/master ebe0fdf Sebastian Riedel: cleaner borders
15:00 good_news_everyon left #mojo
15:01 mishantil jberger: Lasagna is pretty awesome food.
15:02 mishantil jberger: What kind of lasagna do you usually make?
15:02 jberger mmmmm donuts
15:02 ente a/ct
15:02 ente oops
15:03 Nemix anyone have any luck with the FOSDEM live streams?
15:03 jberger mishantil: I made a sausage and green pepper lasagna
15:03 jberger reduced in red wine
15:04 jberger mozzarella, ricotta and parmesean
15:04 mishantil Oh. That does indeed sound lovely.
15:04 sri Nemix: there's a live stream?
15:05 mishantil jberger: Let me know if you're coming to Norway and want to trade cooking for shelter. :p
15:05 Nemix sri: well...there are links but nothing works for me
15:06 Nemix sri: on the agenda there is a "watch" button which I assumed was to be live
15:06 jberger mishantil: :-)
15:06 mishantil I'm going to Berlin again in April. Soon rising to the top of my favorite cities list (behind Tokyo).
15:07 jberger mishantil: batman introduced me to mackerel in red sauce with cucumber
15:07 jberger and brown cheese
15:07 mishantil Found a really good Ramen-place there in Berlin.
15:07 purl brown cheese is, like, to cheese what brown sugar is to sugar
15:07 jberger purl: botsnack
15:07 purl :)
15:07 mishantil jberger: Hehe. Yeah we do have a few interesting things food-wise.
15:07 jberger I liked both
15:08 mishantil jberger: You should try "pinnekjøtt". Loosely translated: "stick meat". :p It's what I am cooking today.
15:08 jberger next mojoconf in norway, sign me up
15:08 jberger mishantil: were you at the first one?
15:09 mishantil jberger: Yeah, I was. It was everything I hoped it would be.
15:09 jberger :-)
15:09 mishantil jberger: Btw; http://en.wikipedia.org/wiki/Pinnekj%C3%B8tt
15:10 jberger looks like ribs to me
15:10 mishantil It looks sort of boring, but tastes amazing.
15:10 jberger and ribs are quite good
15:11 mishantil jberger: It is dried and salted (_a lot_), so we soak the meat in water for about a day before we start steaming it.
15:19 ivan joined #mojo
15:19 oetiker joined #mojo
15:27 zivester joined #mojo
15:46 * jberger keeps looking at the picture on the wikipedia page, looks tasty
15:49 jberger http://live.fosdem.org/watch.php?room=K.3.401
15:49 jberger anyone having more luck then I am with ^^?
15:50 good_news_everyon joined #mojo
15:50 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/F5Ff
15:50 good_news_everyon mojo/master 476bc2d Sebastian Riedel: use more consistent colors
15:50 good_news_everyon left #mojo
15:53 mishantil jberger: Oh it is. As long as the person preparing it has remebered to water it enough. If too much of the salt remain it is just unedible.
16:01 Nemix jberger: I can get the flv link to play video but no audio in vlc
16:28 cpan_mojo Yars 1.06 by PLICEASE - http://metacpan.org/release/PLICEASE/Yars-1.06 (depends on Mojolicious)
16:40 marcusr oh hai
16:40 marcusr listening to mst rant
16:43 avenj \o/
16:53 jberger his devops system yeah? it looks really cool
16:53 jberger I've seen the talk twice already
16:53 jberger I didn't understand the first time, but the second time it clicked
16:56 jberger marcusr: o/
16:56 dustinm joined #mojo
17:10 asarch joined #mojo
17:12 sh4 joined #mojo
17:49 melo joined #mojo
18:08 Adura joined #mojo
18:24 basiliscos joined #mojo
18:53 dotandimet joined #mojo
18:57 sri dotandimet: in case you missed it http://irclog.perlgeek.de/mojo/2015-01-31#i_10036717
18:57 Grinnz sri, issue 736 looks to be because of recursion in the render_not_found helper
18:58 Grinnz and now i'm trying to figure out how reply->not_found doesn't normally recurse
18:59 Grinnz that block at the beginning of _development is going to call render_not_found isn't it? https://github.com/kraih/mojo/blob/master/lib/Mojolicious/Plugin/DefaultHelpers.pm#L94
19:00 sri it's dead code, i'm not too concerned about it
19:01 dotandimet sri: it just gave me a merge conflict, but nevermind, sent a pull request
19:01 Grinnz sri, i mean when reply->not_found is called... i'm missing something
19:01 sri dotandimet++
19:01 sri Grinnz: i'm not going to look into that
19:03 dotandimet Next step might require working on improving the Perl syntax implementation in highlight.js... :(
19:03 sri dotandimet: what's wrong with it?
19:06 dotandimet joined #mojo
19:06 dotandimet it doesn't map 1:1 to the prettify syntax highlighting.
19:06 sri ah, so it's not bad?
19:08 dotandimet It looked OK to me, but I'm less of a perfectionist than you :)
19:08 reneeb joined #mojo
19:10 sri i see regex errors
19:10 sri especially in the tutorial
19:11 sri but it mostly looks really nice
19:12 disputin joined #mojo
19:13 dotandimet yeah, I see that. :(
19:13 sri javascript in DATA sections does look pretty bad too :/
19:13 sri with prettify it's mostly just a word in a strange color
19:14 sri highlight.js gives you entire sentences in bright green/yellow
19:17 sri this one is the only problematic one though http://i.imgur.com/w7ag8h9.png
19:18 sri since it's the frontpage example
19:18 dotandimet The websockets example?
19:19 sri ye
19:20 marmez joined #mojo
19:20 sri bit odd how it gets the quoting wrong
19:23 sri it's really good otherwise
19:24 sri ok, routing guide is also a bit too bright
19:24 purl okay, sri.
19:27 sri but i bet that can be fixed
19:29 sri right, we can set the nohighlight class in the PODRenderer plugin
19:29 sri so that's a non-issue, can be fixed easily
19:34 dotandimet I *think* it's something to do with the 'subLanguageMode: 'continuous' setting - It returns from the perl to the xml, from the xml to the javascript, but the javascript doesn't continue from where it left of, it starts parsing from the first quote it sees so it all goes into a string.
19:38 dotandimet I'm trying to check this, I should really crop the example from the tutorial to its own document so I can debug it.
19:50 marmez joined #mojo
19:52 good_news_everyon joined #mojo
19:52 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/FFog
19:52 good_news_everyon mojo/master cfa03f6 Sebastian Riedel: use more actual applications in rendering guide
19:52 good_news_everyon left #mojo
20:07 good_news_everyon joined #mojo
20:07 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/FFXC
20:07 good_news_everyon mojo/master 9de58d1 Sebastian Riedel: only ship a minimal version of prettify.js
20:07 good_news_everyon left #mojo
20:11 sri i suspect we will be shipping prettify.js for a few more releases
20:11 sri and highlight.js once the highlighting gets better
20:11 sri good thing about prettify is that it's much less obtrusive when it fails
21:03 doby joined #mojo
21:42 good_news_everyon joined #mojo
21:42 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/Fbqn
21:42 good_news_everyon mojo/master 65538e8 Sebastian Riedel: handle accidental double-click correctly
21:42 good_news_everyon left #mojo
21:49 punter joined #mojo
21:51 gyan joined #mojo
21:57 melo joined #mojo
22:07 Nemix I should expect this to return the json in a perl var, no?  It returns undef:  http://pastebin.com/jFrSF5aZ
22:07 Nemix if I s/json/dom it gets stuff back
22:09 Nemix I am using 5.49
22:11 gyan joined #mojo
22:12 jberger Nemix: that's jsonp
22:12 jberger with a callback arg you aren't getting back json, you are getting back javascript
22:13 Nemix oh
22:13 Nemix my borwosers was running it and I did not know
22:14 Nemix browser
22:14 jberger sure, you need jsonp to avoid cross site restrictions
22:15 jberger I suspected because they often call the argument "callback"
22:15 jberger easy enough to see on the command line
22:15 jberger mojo get http://ip.jsontest.com/?callback=somecallback
22:15 jberger then try it without the query
22:27 Nemix that works fine.  That was a url I was playing with to sanity check what I was experiencing with the one I really want to work.  That one also references jsonp in it I think "great, I am going to use my newfound knowledge to get it working"
22:27 Nemix this one works at command line but not in the test prog:
22:27 Nemix http://multimedia.netstorage.imsa.com/scoring_data/RaceResults_JSONP.json
22:29 Nemix I backed off the url to various points but that returns file not found
22:33 jberger that one looks like you get jsonp by default
22:35 Nemix I ran UserAgnt with MOJO_USERAGENT_DEBUG=1
22:35 Nemix it does get the data back
22:35 Nemix (in debug)
22:35 jberger but you see the function call that wraps it right?
22:35 jberger its not json
22:36 Nemix crazy
22:36 Nemix yeah
22:36 jberger thats called jsonp
22:37 Nemix I am trying to get my head around "why" and "how do I get around it" :)
22:38 Nemix so the script that uses it executes the returned function I guess
22:38 Nemix and yes, I am using this in a way not intended by the providor of that data
22:39 jberger you might want to see if they have api documentation
22:39 jberger usually jsonp is an option
22:40 jberger and I see the JSONP flag on the end there (an odd way to specify an option)
22:40 good_news_everyon joined #mojo
22:40 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/FbRi
22:40 good_news_everyon mojo/master 56da306 Sebastian Riedel: use a slightly different pinstripe pattern
22:40 good_news_everyon left #mojo
22:40 jberger lucky guess: http://multimedia.netstorage.imsa.com/scoring_data/RaceResults.json
22:40 Nemix cool!
22:41 Nemix thanks
22:41 jberger np
22:41 jberger sometimes you really need jsonp, sometimes you don't
22:42 jberger and then there's CORS (which I just had to do for $work)
22:42 jberger OPTIONS request anyone?
22:44 Nemix yeah...it looks like the security aspect is major reason for these things
22:46 Nemix so...if the "mojo get" worked does that mean that mojo executed the javascript?   More of a curiousity for me
22:47 Nemix oh no
22:47 preaction no
22:47 Nemix I see the funtction wrap there too
22:54 pink_mist http://p.0au.de/b01a2fe0 <-- oh no, a Mojolicious test failed on my old cygwin install :/ should I ignore and just update, or is this something that should actually be looked into?
23:14 rem_lex|pivo joined #mojo
23:15 jberger pink_mist: I SUSPECT (but am not 100% sure) that it is safe from a date handling perspective
23:15 jberger however, if your system has problems with subsecond timing, that might be a bigger issue
23:15 jberger depending on what you are doing
23:23 pink_mist well, it's a really old cygwin install -- it's so old it only comes with perl 5.10.1 ... I wouldn't mind upgrading and hoping the error gets fixed by itself, but I also don't /need/ it, so I'd be happy to keep it around for bugfixing if that's desired
23:24 good_news_everyon joined #mojo
23:24 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/Fbrj
23:24 good_news_everyon mojo/master 9f7c850 Sebastian Riedel: shadows are out
23:24 good_news_everyon left #mojo
23:25 mst I appear to have 5.14.2
23:41 jberger pink_mist: I've never tried, but is perlbrew or perl-build an option on cygwin?
23:42 jberger mst might know
23:42 jberger mst: how did the talk go today? I was going to watch but the video streams were borked
23:42 mst jberger: went fine. recordings are apparently fine.
23:43 jberger good and cool, I want to see stevan's talk too
23:43 * mst runs 'make test' against the 5.14.2 he has
23:44 jberger I hope they have things sorted by the time Larry gives his talk
23:44 sri is tomorrow the day everybody is going to be disappointed by the hyped up perl6 talk?
23:44 jberger sri: hahaha
23:45 jberger I'm keeping an open mind and am hopeful
23:45 jberger they have to know that the optics of a "perl6 is coming, really, we mean it, just wait"
23:45 jberger ... would be bad
23:46 pink_mist jberger: I tried perlbrew, but trying to brew a perl results in the build failing :/
23:47 pink_mist jberger: might be I need more things that weren't in this cygwin install
23:47 mst ...
23:47 pink_mist jberger: but getting them would necessitate updating cygwin :P
23:47 mst pink_mist: so, the datetime test was fine
23:47 mst but t/mojo/home.t dumped core
23:47 jberger :o
23:47 pink_mist 0_o
23:48 jberger ok, goodnight kids, my work here is done
23:48 pink_mist good night jberger
23:48 jberger pink_mist: was a joke
23:49 jberger getting out while the getting is good
23:49 pink_mist err, ok, totally went over my head :P
23:49 mst the first is_deeply dies
23:51 jberger nothing in there looks dump worthy :-/
23:52 * jberger really hopes that today doesn't end with someone crawling around in File::Spec
23:56 jberger mst: oh wait
23:57 jberger are you sure its the first one? perhaps the second
23:57 jberger which line
23:58 mst the [ split /\\|\//, canonpath(realpath cwd()) ] breaks it
23:58 jberger I can imagine that split on an object with operator overloading
23:58 jberger ok, nm
23:58 mst but only if I leave it as a single expression
23:58 mst decomposing to a variable makes it go away
23:58 jberger youch

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