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

IRC log for #mojo, 2014-03-14

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

All times shown according to UTC.

Time Nick Message
00:04 * marcus hears mysql, tones out
00:04 marcus :D
00:04 marcus I'm going to bed now. Nite folks
00:05 punter byebye
00:22 jack joined #mojo
00:43 d4rkie joined #mojo
00:54 btyler joined #mojo
01:09 sri looking through the html spec some more... i do wonder if we should treat <title> and <textarea> content as raw text, like we do for <script> and <style>
01:17 lucs sri: When you say "html spec", do you mean the DTD?
01:18 lucs s/the/its/
01:31 neilhwatson joined #mojo
01:35 bluescreen joined #mojo
01:41 laouji joined #mojo
01:47 btyler joined #mojo
02:06 klapperl joined #mojo
02:12 mattastrophe joined #mojo
02:26 abra joined #mojo
02:27 ua_ joined #mojo
02:56 zivester joined #mojo
03:06 jberger_ joined #mojo
03:07 jberger_ sri++ # responsive menu
03:07 jberger_ Why were you looking into luajit?
03:08 crab surely there's not a DTD for html5
03:09 purl joined #mojo
03:12 malikai joined #mojo
03:16 mattastrophe joined #mojo
03:17 lucs Oh, heh, no, it turns out.
03:26 crab you dinosaur.
03:26 lucs :)
03:49 jberger__ joined #mojo
03:54 d4rkie joined #mojo
04:15 laouji joined #mojo
04:24 laouji joined #mojo
06:10 sujithm joined #mojo
07:24 Vandal joined #mojo
07:25 punter joined #mojo
07:45 eseyman joined #mojo
07:46 chorny joined #mojo
07:49 denisboyun joined #mojo
08:10 rawler joined #mojo
08:35 malikai heh.. i've found a perl that's worse than redhat's :(
08:38 malikai if anyone is ever so unlucky as to be stuck working with Monolith Software, you have hit rock bottom.. enjoy writing everything you need from cpan on your own
08:41 trone joined #mojo
08:47 Tiger joined #mojo
08:50 Negor Does anyone know how to fix error 426 when using websockets? Some days earlier everything works ok, but now I get NetworkError: 426 Upgrade Required
08:52 fhelmber_ joined #mojo
08:59 D4RK-PH0ENiX joined #mojo
09:18 ver joined #mojo
09:20 sujithm joined #mojo
09:25 sri if nobody really cares about the handling of <title> and <textarea> i think i'll ignore it for now
09:26 basiliscos joined #mojo
09:30 spoot joined #mojo
09:58 good_news_everyone joined #mojo
09:58 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/yZYzHQ
09:58 good_news_everyone mojo/master 5b4680e Sebastian Riedel: fixed textarea and title parsing bugs in Mojo::DOM::HTML
09:58 good_news_everyone left #mojo
09:58 sri or maybe not
10:00 sri the rules are funky... <script> and <style> are considered raw text but don't get entities unescaped... <title> and <textarea> are also considered raw text, but do get entities unescaped
10:02 good_news_everyone joined #mojo
10:02 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/W4OT2w
10:02 good_news_everyone mojo/master 551a31e Sebastian Riedel: mention entities in comment
10:02 good_news_everyone left #mojo
10:07 good_news_everyone joined #mojo
10:07 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/ZjPzzQ
10:07 good_news_everyone mojo/master 9a77561 Sebastian Riedel: removed deprecated to_rel method from Mojo::URL
10:07 good_news_everyone left #mojo
10:09 sujithm joined #mojo
10:17 meshl joined #mojo
10:24 meshl joined #mojo
10:26 spoot joined #mojo
10:33 Jonneh joined #mojo
10:33 laouji joined #mojo
10:39 sri i'm tempted not to unescape entities for <title> and <textarea> for consistency... but i guess that would make ->at('title')->text unpleasant to use :S
10:44 pernicious malikai: I'm about to embrace RHEL hell
10:44 pernicious I put up a strong argument, but been overruled; EVERYTHING REDHAT
10:45 pernicious So I figure I just need to build an .rpm that installs standard perl under /opt/perl/5.18.2 etc
10:47 denisboyun joined #mojo
10:47 pernicious undo not unescaping unless !! im_confused
10:47 sri just wait a few more years and containerization will be mainstream... perlbrew will be all the rage
10:47 pernicious RHEL will find some way to break it
10:51 pernicious Oh, I've been using your !! in my SQL where-clauses, has improved safety in quite a few places
10:51 pernicious (eg a column is boolean, then someone decides to add 2, 3, ...
10:51 sri the big Mojo::DOM question is what this should print perl -Mojo -E 'say x("<title> foo <p>&lt;bar&gt;</title>")'
10:52 sri after my latest patch is says "<title> foo <p><bar></title>"
10:52 sri oops
10:53 sri not oops... just a different case :)
10:53 sri perl -Mojo -E 'say x("<title> foo <p>&lt;bar&gt;</title>")->at("title")->text'
10:53 sri and that one says " foo <p><bar>"
10:53 sri i think it's the cosest to browser behavior
10:53 pernicious It looks sane, but I don't know the nuances
10:54 sri before the patch it actually parsed the <p> as a tag
10:55 laouji joined #mojo
10:55 pernicious I guess if it's now doing what browsers do then it'll be most likely what users expect to happen
11:00 d4rkie joined #mojo
11:12 mire__ joined #mojo
11:26 mattastrophe joined #mojo
11:35 spoot joined #mojo
11:39 neilhwatson joined #mojo
11:56 laouji joined #mojo
12:06 mport joined #mojo
12:22 stryx` joined #mojo
12:23 malikai yay for YAML::Tiny
12:25 malikai pernicious: i try to perlbrew where i can but sometimes i got to go slumming.. more than i'd like to really..
12:26 malikai in rhell, FPM helps to cope if you can install packages
12:27 malikai it's the only one that doesn't require you go do a phd on rpm
12:29 nicomen can I alias a route to another? ie /api and /v1/api should contain the same routes?
12:31 * pernicious takes notes
12:31 pernicious malikai: thanks for the pointer
12:33 bobkare nicomen: Not sure if there's a better way, but I've solved something like that with a before_dispatch hook that rewrites to a single canonical url
12:38 stryx` joined #mojo
12:40 batman nicomen: maybe you can copy children? $r->route('/v1/api')->to(children => $t->lookup('api_route_name')->children);
12:40 batman no idea if that works...
13:05 malikai heh.. yay for JSON::Tiny
13:05 malikai works in shit monolith perl too!
13:14 jack joined #mojo
13:16 stephan48 is there something like "not" for Mojolicious::Validator?
13:17 stephan48 f.e. to check if 2 fields are not equal(the check has to pass then)
13:23 bluescreen_ joined #mojo
13:25 bluescreen joined #mojo
13:25 marty joined #mojo
13:26 bluescreen joined #mojo
13:26 bluescreen joined #mojo
13:34 zivester joined #mojo
13:34 pernicious sri://www.monolith-software.com/  # just to compare the opposite decision for menubar O_o
13:34 spoot joined #mojo
13:37 Negor joined #mojo
13:39 Bravo13 joined #mojo
13:40 pernicious Mojolicious users in Wales: Please take extra care with your crisps https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-prn2/t1/10003331_409724562505002_1931290764_n.jpg
13:42 breno` joined #mojo
13:52 neilhwatson How would you dump the contents of an array in render_exception?  I tried $self->render_exception( @validate ), but I only see the first entry.
13:53 btyler joined #mojo
14:11 genio you either provide a string or a Mojo::Exception object.  what's in @validate?
14:13 neilhwatson I list of errors from iterating over form paramters.
14:13 r0b3rt joined #mojo
14:16 ryozi joined #mojo
14:16 sri batman, nicomen: doesn't work, a route can only have one parent... so you'd have to clone the route
14:16 mport left #mojo
14:16 genio Assuming this is in response to an HTML form someone's filling out, I'm not sure you should be providing a 500 response... but you could always join() your string or make those lines part of the Mojo::Exception and turn on verbose
14:17 sri if routes had a clone method i suppose you could do $r->add_child($r->find('some_route')->clone);
14:18 Andy2 joined #mojo
14:18 sri not sure it would be worth it though
14:19 batman sri: ok. thanks
14:20 sri i'm open for arguments though
14:20 sri give me real world examples that get better with cloned routes
14:21 batman nicomen have to give the argument. i don't care
14:22 sh4 joined #mojo
14:23 nicomen I guess I was thinking too complicated, someone invented HTTP status code 301 ;-D
14:24 r0b3rt Any talk of getting msgpack support into Mojolicious?
14:25 nicomen https://github.com/msgpack/msgpack-perl ?
14:33 hummeleBop joined #mojo
14:36 gryphon joined #mojo
14:45 sri i guess nobody wants $route->clone?
14:45 odc r0b3rt, that would be a nice plugin to develop
15:08 rem_lex|pivo joined #mojo
15:12 meshl joined #mojo
15:17 Jonneh joined #mojo
15:28 dvinciguerra joined #mojo
15:40 rem_lex joined #mojo
15:49 beyondcreed joined #mojo
16:03 rem_lex|pivo joined #mojo
16:08 mattastrophe joined #mojo
16:10 jontaylor joined #mojo
16:11 jontaylor In hypnotoad, if I set accepts to 1, does it mean the worker will be killed immediately after serving a request, or does it simply stop responding to heartbeats?
16:12 jontaylor From scanning the code, it looks like the value gets passed through to the event loop, and the event loop simply stops after a request
16:13 jontaylor however the problem with that, which I can foresee, is if I also have a high value for heartbeat_timeout, then I might completely run out of workers, before the manager spawns any new ones
16:18 D4RK-PH0ENiX joined #mojo
16:33 ua_ joined #mojo
16:46 gryphon joined #mojo
17:09 odc won't requests stay in the socket queue until a new worker is ready?
17:16 sh4 joined #mojo
17:16 rem_lex joined #mojo
17:16 malikai ugh.. the things people think they can get away with then use strict is turned off..
17:17 malikai s/then/when
17:19 marcus sri: I'm sure someone will want $route->clone eventually :)
17:21 sri marcus: but that someone is not you?
17:22 marcus sri: I can't think of a use case in my apps right now.
17:23 * sri shrugs
17:26 moritz "somebody might want this somebody" is not a strong point for a feature :-)
17:27 marcus I wasn't suggesting it should be implemented now. But I'm also not saying it should never should be.
17:28 * marcus practices for a career in politics.
17:28 marcus sri: I will be on vacation two weeks from tomorrow btw.
17:28 sri i have to admit i like the idea of $route->clone... but really can't think of a good use case
17:29 sri marcus: have fun
17:29 marcus I plan to. Florida, beaches, muscle car, amusement rides. :)
17:29 rem_lex joined #mojo
17:30 sri retirees, guns, crime :)
17:30 genio I like it here :)
17:31 tempire Where in Florida?
17:31 genio Gainesville, FL
17:31 tempire college kids and rednecks
17:32 tempire dangerous combination
17:32 tempire marcus: where in florida?
17:32 sri they really have everything in florida
17:32 genio I grew up in redneck-land.  gainesville is much nicer
17:32 marcus tempire: flying to fort lauderdale, then a few days in Orlando, and a week in Clearwater
17:32 tempire woo!
17:32 tempire I used to live there.
17:32 tempire It's like we're connected.
17:33 marcus In Clearwater?
17:33 tempire fort lauderdale
17:33 marcus Or did you use to live in Disneyland
17:33 sri how did i forget to include alligators in my list :o
17:33 marcus ooh :)
17:33 tempire clearwater is the headquarters for scientology
17:33 marcus We're totally going to do Aligator sightseeing.
17:33 sri lol
17:34 marcus tempire: that is fantastic news...
17:34 * marcus is very curious how his rental will be.
17:34 marcus Papers say 'Dodge Charger or similar'.
17:34 tempire I really like the economy cars these days.
17:34 tempire They're tiny and hip looking
17:35 marcus Well, I like them too here in Oslo
17:35 tempire http://0.tqn.com/d/trucks/1/7/i/G/1/chevy_spark.jpg
17:35 marcus But in the US I can afford something that makes loud noises and guzzles gasoline
17:35 tempire when in rome
17:35 mire__ joined #mojo
17:35 marcus Something like http://www.dodge.com/images/vehicles/2013/charger/blacktop/2013-charger-blacktop-modal01-overview.jpg
17:36 tempire vroom
17:36 marcus vroom indeed
17:37 good_news_everyone joined #mojo
17:37 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/7GpwNQ
17:37 good_news_everyone mojo/master 55aa680 Sebastian Riedel: fixed documentation browser fonts
17:37 good_news_everyone left #mojo
17:44 genio I've lived in FL all of my life.  I like it, but we have more than our fair share of crazy
17:44 punter joined #mojo
17:45 genio I could do with a little less crazy
17:46 genio but then again, I've always lived up in the (basically) Southern GA part of FL
17:51 marty I used to do some consulting gigs in Florida.  All I remember is eating papa johns pizza every day.   I still have the greasy complexion to prove it.
17:52 beyondcreed joined #mojo
17:54 good_news_everyone joined #mojo
17:54 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/r3r3TQ
17:54 good_news_everyone mojo/master ee02072 Sebastian Riedel: highlight inline code in documentation browser
17:54 good_news_everyone left #mojo
17:55 punter Hi marcus. I'm not very happy with the way I designed the "on_refuse" handler in my pull request on your OAuth2 plugin. Thankfully the feature wasn't documented, so I guess we could modify it a bit perhaps? See here how the interface could be improved: http://pastebin.com/ZHgqfG29
17:55 marty my version of sexy economy car.    http://www.blogcdn.com/www.autoblog.com/media/2008/01/01-fj-cruiser-trail-teams_lo450.jpg
17:55 sri http://mojolicio.us/perldoc/Mojolicious/Lite#Commands # does the blue highlighting look good or is it too distracting?
17:56 marty +1 distracting
17:56 sri :(
17:57 genio +1 helpful
17:57 marty sorry.  but I still dig the autohide menu.  very groovy indeed.
17:58 punter marcus, the non-blocking interface could be improved also (by passing an $err parameter in the next step)
17:59 punter i like the autohide
18:01 bobkare sri: the one around app->start? It makes my eyes think that text has a lowered baseline (although when I look at the pixels I see that's not the case), which is kind of annoying
18:03 dotandimet joined #mojo
18:08 sri http://i.imgur.com/C4VwXtu.png # gray better?
18:09 sri seems a little too gray to me
18:09 sri but i'm out of ideas for highlighting inline code
18:10 bobkare still makes my mind think there's a shifted baseline, maybe because the bottom of the characters are closer to the bottom border line than the top
18:12 good_news_everyone joined #mojo
18:12 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/EyTALA
18:12 good_news_everyone mojo/master 3b1425d Sebastian Riedel: do not highlight inline code in documentation browser
18:12 good_news_everyone left #mojo
18:12 marty they are all good, but if I had to choose I would +1 gray
18:12 sri oh well... maybe the original was the best choice
18:13 sri http://mojolicio.us/perldoc/Mojolicious/Lite#Commands # back to the original
18:14 sri making it bold is also an option i guess
18:15 sri http://i.imgur.com/B9d5PRS.png
18:15 meshl joined #mojo
18:19 dotandimet joined #mojo
18:21 sri hmmmm
18:21 sri or i just add quotes with css :)
18:22 genio sri: I liked the blue
18:23 sri http://i.imgur.com/GKMaOeL.png # with quotes
18:24 sri those work well when the inline code is a bit abstract... like regular expression snippets
18:24 sri (quotes and monospace font i should have said)
18:30 sri guess it stays the way it is now ;p
18:30 bobkare I can see the quotes being a bit confusing if the code contains quotes
18:31 bobkare What about monospace and slightly altered text color?
18:35 sri only color i can think of would be #000, but that doesn't look too well
18:40 bobkare Design is hard! And really, in most cases it's pretty obvious what's code and what's prose anyway, in which case the current style is minimally disruptive to reading flow
18:48 Eke- joined #mojo
18:54 bluescreen joined #mojo
19:08 sri design is hard, lets go shopping
19:08 batman :)
19:19 malikai engineering is hard, let's go shopping
19:20 * moritz doesn't like shopping
19:32 jwang joined #mojo
19:39 ua_ joined #mojo
19:43 jzawodn shopping is hard, let's stay at home and use Amazon.com
19:44 neilhwatson Goodbye pants!
19:46 dotandimet joined #mojo
20:10 marcus marty: That looks like a lego jeep.
20:11 marcus pants, my old nemesis. We meet again!
20:16 marty lego rocks!  :)
20:19 dotandimet joined #mojo
20:31 denisboyun joined #mojo
20:37 trone joined #mojo
21:03 maxhq joined #mojo
21:04 sujithm joined #mojo
21:49 * sri loves the color picker for Atom https://atom.io/packages/color-picker
22:28 meshl joined #mojo
22:37 sri re design is hard... i think a soft shadow actually works for inline code :) http://i.imgur.com/Nwjp2Vf.png
22:46 Eke- joined #mojo
22:52 marcus i agree, sri
22:52 paladinn joined #mojo
22:53 bobkare Yeah, that looks good
22:56 good_news_everyone joined #mojo
22:56 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/8KHW9g
22:56 good_news_everyone mojo/master 2868bb5 Sebastian Riedel: improved documentation browser to make inline code a little more readable
22:56 good_news_everyone left #mojo
22:57 sri \o/
23:00 bobkare ties it nicely in with how the larger code examples are styled. Consistency++
23:15 good_news_everyone joined #mojo
23:15 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/-MX7Hg
23:15 good_news_everyone mojo/master 4e09068 Sebastian Riedel: some words should be bold instead of code
23:15 good_news_everyone left #mojo
23:20 good_news_everyone joined #mojo
23:20 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/6jCYMg
23:20 good_news_everyone mojo/master 2a96b93 Sebastian Riedel: bold does not look as good in documentation
23:20 good_news_everyone left #mojo
23:21 punter What's the difference between if I do $app->helper, and $app->renderer->add_helper?
23:23 sri 14 keystrokes
23:23 punter ok :-)
23:24 sri for that kind of question it's really worth it to just look at the code https://github.com/kraih/mojo/blob/master/lib/Mojolicious.pm#L141
23:30 good_news_everyone joined #mojo
23:30 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/_4xk-Q
23:30 good_news_everyone mojo/master e5309e1 Sebastian Riedel: more italics
23:30 good_news_everyone left #mojo
23:33 good_news_everyone joined #mojo
23:33 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/fQ43aQ
23:33 good_news_everyone mojo/master 13b3f29 Sebastian Riedel: documentation tweak
23:33 good_news_everyone left #mojo
23:41 punter indeed, sri

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