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

IRC log for #mojo, 2015-07-08

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

All times shown according to UTC.

Time Nick Message
00:07 absolut_todd joined #mojo
00:35 sri Go sure has the cutest logo http://blog.gopheracademy.com/postimages/gophercon-2015/keycard.png
01:30 neilhwatson joined #mojo
01:32 good_news_everyon joined #mojo
01:32 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/vqgoT
01:32 good_news_everyon mojo/master 07bca76 Sebastian Riedel: just use the correct name
01:32 good_news_everyon left #mojo
01:44 good_news_everyon joined #mojo
01:45 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/vqg69
01:45 good_news_everyon mojo/master 918c13f Sebastian Riedel: bring back validation for file uploads
01:45 good_news_everyon left #mojo
01:45 * sri dictates
01:46 sri string/file upload semantics are not documented as special cases
01:47 sri checks just handle different types of values
01:51 sri jberger, tempire, marcusr, crab, batman, Grinnz: !
01:58 zivester joined #mojo
01:58 tempire Looks fine to me
02:00 Grinnz +1
02:00 purl 1
02:19 noganex joined #mojo
02:23 hshong joined #mojo
02:49 dvinciguerra joined #mojo
04:09 melo joined #mojo
04:30 KindOne joined #mojo
04:30 sri hahaha, the whole generic validation idea was total nonsense
04:31 sri guess nobody really put any actual thought into it
04:31 sri this exists http://mojolicio.us/perldoc/Mojolicious/Guides/Rendering#Cross-site-request-forgery
04:31 sri csrf protection is very much not generic
04:32 sri you even get the value from the X-CSRF-Token header with $c->validation
04:33 sri http://img.memecdn.com/Epic-fail_o_116991.jpg
05:06 d4rkie joined #mojo
05:22 mmp joined #mojo
06:11 jontaylor joined #mojo
06:19 dotandimet joined #mojo
06:26 Craftsmanship joined #mojo
06:42 dod joined #mojo
06:47 dod joined #mojo
06:51 absolut_todd joined #mojo
06:55 jnbek joined #mojo
07:09 AndrewIsh joined #mojo
07:13 Vandal joined #mojo
07:28 trone joined #mojo
08:01 mtths joined #mojo
08:19 marcusr joined #mojo
08:20 marcusr joined #mojo
08:22 ans joined #mojo
08:23 amon joined #mojo
08:35 cpan_mojo Swagger2-0.39 by JHTHORSEN https://metacpan.org/release/JHTHORSEN/Swagger2-0.39
08:49 cpan_mojo Swagger2-0.40 by JHTHORSEN https://metacpan.org/release/JHTHORSEN/Swagger2-0.40
08:52 pink_mist rapid development cycle :P
08:52 marcusr :)
08:52 marcusr batman is all about the iteration
08:53 batman yeah. got a failing test i haven't seen before
08:54 batman Failed test 'no (unexpected) warnings (via done_testing)'
08:56 marcusr :-o
08:57 batman tempire: just posted http://thorsen.pm/perl/programming/2015/07/05/mojolicious-swagger2.html
08:58 pink_mist nice! =)
08:59 pink_mist batman++
08:59 batman pink_mist, tempire: join #swagger for feedback/comments/questions/whatever :)
09:00 marcusr batman: Your See also link is bork
09:00 marcusr "[See also][]
09:01 batman marcusr: thanks. github--
09:10 romel joined #mojo
09:39 buu batman: I don't know if this is something you really carea bout but I came away from that post with zero idea of why I should start using it
09:45 batman buu: would you mind joining #swagger or send me a pm?
09:45 batman preferably #swagger
09:57 melo joined #mojo
10:00 Lee buu: describe your API using a config file, have the boilerplate auto generated and mojo compat
10:00 Lee that's my understanding of swagger anyway
10:00 Lee also: input/output validation
10:14 berov joined #mojo
11:05 neilhwatson joined #mojo
11:14 eitz joined #mojo
11:24 bin_005 joined #mojo
11:32 bin_005 joined #mojo
12:12 neilhwatson joined #mojo
12:16 marty_ joined #mojo
12:37 absolut_todd joined #mojo
12:39 marty_ joined #mojo
12:45 marty joined #mojo
13:15 zivester joined #mojo
13:22 gryphon joined #mojo
13:34 dvinciguerra joined #mojo
14:03 PryMar56 joined #mojo
14:11 dvinciguerra joined #mojo
14:22 ajr_ joined #mojo
14:28 dvinciguerra joined #mojo
14:43 mattastrophe joined #mojo
14:50 disputin joined #mojo
15:03 berov joined #mojo
15:04 mattastrophe joined #mojo
15:04 berov joined #mojo
15:14 devop joined #mojo
15:15 good_news_everyon joined #mojo
15:15 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/vqwB5
15:15 good_news_everyon mojo/master be9ddc6 Sebastian Riedel: consistent descriptions for PID file values
15:15 good_news_everyon left #mojo
15:16 sri i messed up, someone sent me an email with a security issue (because the pid file is not random as the description says), and i'm pretty sure it's not actually a security issue, but have lost the mail and therefore can't ask :S
15:17 Grinnz_ huh... pidfile being a security issue, that's a stretch
15:18 lluad If PIDs not being random is a security issue (which it is, arguably) blame your OS.
15:19 sri pid file
15:19 purl pid file is wrong
15:19 * sri kicks purl
15:19 * purl kicks sri
15:19 Grinnz_ lol
15:20 Grinnz_ pidfile, aka a file that tells you info you can find in ps
15:22 lluad Yeah, can't get excited about that. But, hey, someone filed a doc bug! They should be encouraged!
15:25 * sri closes #818 https://github.com/kraih/mojo/issues/818
15:31 good_news_everyon joined #mojo
15:31 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/vqwVm
15:31 good_news_everyon mojo/master 94676bb Sebastian Riedel: clarify a few rules
15:31 good_news_everyon left #mojo
15:35 * sri wonders if someone has made a bsd licence-ish code of conduct yet
15:35 sri (as in 2-3 straight to the point sentences)
15:39 ribasushi sri: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/CodeOfConflict
15:42 sri not bad, but still quite verbose
15:43 jontaylor potentially crazy suggestion,  new method on Mojo::Pg::Results, objects($class_name) and object($class_name)
15:43 jontaylor which does what hash does, but blesses the reference with the class name
15:43 sri jontaylor: thought about it, but seems clunky
15:44 sri like DBIx::Simple does it
15:44 jontaylor Yeah I know what you mean
15:44 jontaylor I’m enjoying Mojo::Pg in its simplicity, and the speed of dealing with hashes directly
15:44 jontaylor but for just a couple fo tables i’m eager for a class
15:45 jontaylor especially for users, for use with the authentication plugin
15:46 Grinnz_ sri: that sentence is a bit confusing now. "refactoring and deprecations should be avoided if ... there are other substantial benefits"?
15:49 good_news_everyon joined #mojo
15:49 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/vqw1m
15:49 good_news_everyon mojo/master 87634e9 Sebastian Riedel: simplify refactoring rule
15:49 good_news_everyon left #mojo
15:50 Grinnz_ perhaps you meant "unless an important feature depends on it or..."
15:50 sri guess that part was pointless
15:50 Grinnz_ that works
15:50 sri feature is a substantial benefit
15:50 sri (or rather should be ;p)
15:51 sri jontaylor: how would you use ->objects()?
15:52 jontaylor sri: objects would return an array of objects, object() would return one object and advance the cursor
15:52 sri a collection of objects you mean
15:52 jontaylor yes sorry
15:52 sri i get that part
15:52 sri but not what your classes would actually contain
15:53 jontaylor I think they would be just like hash and hashes, but either blessing the hash directly, or passing that hash into new like  $class_name->new($hash)
15:54 sri the way i use Mojo::Pg is with model classes, and data transformations just happen there https://github.com/kraih/mojo-pg/blob/master/examples/blog/lib/Blog/Model/Posts.pm#L12
15:54 sri jontaylor: i also get that part, but not the actual uses cases
15:54 jontaylor sri: I have copied my code from that, so what i’m looking at right now is the same
15:55 sri s/s//
15:57 sh4 joined #mojo
15:57 jontaylor sri: I can just do what that method would do manually, so it would just be a convenience method
15:57 jontaylor however, my current use case
15:57 jontaylor is using mojo::pg to recall my user object
15:57 jontaylor its handy having a user object be a class
15:58 sri oh well, i'm not against adding object/objects, but they need compelling use cases
15:58 jontaylor rather than doing something like $self->posts->can_archive_post($post_hash) kind of thing
15:58 sri so far this has been rather weak
15:59 jontaylor I agree, perhaps instead what i’ll do is make a new module, that inherits from it to add that in, because I like the core of Mojo::Pg
15:59 jontaylor but want something mid way between it, and DBIx::Class
16:00 jontaylor I consider heavy hash manipulation to be a potential bug vector
16:00 sri well, just subclass Mojo::Pg and overload the db method
16:00 jontaylor as $hash->{key_that_does_not_exist} wont cause an error, while $object->key_that_does_not_exist, will
16:01 sri that is a very weak argument ;p
16:03 sri do you put all your json data into objects too?
16:04 disputin joined #mojo
16:05 jontaylor sri: no, as with all things I try and avoid adding abstractions unless it pays off in some way
16:05 jontaylor its only when I came to adding users to this app that I wanted my first object to represent the data
16:06 jontaylor so I can start doing things like making it have a authorisation object, so I can do things like $c->current_user->cancan(‘some permission’)
16:07 jontaylor but I can do that anyway, just by wrapping my find_by_id method, which is in a model thats very similar to your Model::Posts example
16:11 disputin joined #mojo
16:49 jontaylor sri: When a field is invalid the form helpers automatically give it a class of field-with-error, it would be awesome if we also set the aria-invalid attribute, so that we can support users with disabilities
16:49 berov left #mojo
17:04 AndrewIsh joined #mojo
17:17 Kogurr joined #mojo
17:22 wingfold joined #mojo
17:31 sri jontaylor: afraid i'm not familiar with most of the aria stuff
17:31 sri do other frameworks use those attributes?
17:31 dotandimet joined #mojo
17:32 mst jontaylor: look at DBIx::Lite for ideas
17:33 jontaylor sri: i’m not sure, its a “nice to have” on a project, so if I get to that point i’ll just submit a pull request
17:33 jontaylor mst: thanks :)
17:33 sri jontaylor: you'll also have to convince someone on the core team to study the aria specs
17:33 sri the spec is huuuuuuge http://www.w3.org/TR/wai-aria-1.1/
17:34 sri unless we have an expert on the team, i wouldn't feel comfortable supporting parts of it
17:34 sri seems like doing it wrong could do some harm
17:34 jontaylor sri: its a shame its so long and complex, because it makes is prohibitive
17:35 jontaylor *it
17:37 wingfold joined #mojo
17:38 sri yea, for a monent i wanted to look into it, but that spec...
17:42 berov joined #mojo
17:43 dotandimet joined #mojo
18:08 tim joined #mojo
18:09 tim Hello, in my mojo log I regularly see this error:
18:09 tim Mojo::Reactor::Poll: I/O watcher failed: attempt to get not ready result at /usr/local/lib/perl/5.14.2/Net/DNS/Native.pm line 68.
18:09 tim Is there something I can do about it?
18:10 disputin joined #mojo
18:16 dotandimet joined #mojo
18:25 jontaylor joined #mojo
18:27 dotandimet joined #mojo
18:34 sri tim: could be a Net::DNS::Native bug
18:39 tim ok..
18:41 tim I will try with MOJO_NO_NDN=1
18:48 dod joined #mojo
18:53 ajr_ joined #mojo
18:54 absolut_todd joined #mojo
18:56 jontaylor joined #mojo
18:58 absolut_todd joined #mojo
19:26 Ptolemarch joined #mojo
19:48 sri tim: what platform are you on?
19:56 tim sri: Debian GNU/Linux 7 (wheezy)
19:57 tim the errors appears also on OS X
19:58 sri do you have a script i can use to replicate the problem?
20:01 tim no, but i can try to create one
20:11 Ptolemarch joined #mojo
20:30 buu sri: Can this be the new mojolicious logo http://hestia.dance/
20:30 Grinnz_ wat
20:40 dotandimet joined #mojo
20:45 Kogurr joined #mojo
20:49 sri wat
20:50 tempire +0.5
20:50 purl 0.5
21:05 disputin joined #mojo
21:05 melo joined #mojo
21:06 genio what did I just click on?!?
21:07 jabberwok i dunno but my screen lost horizontal hold.
21:15 kaare joined #mojo
21:15 PryMar56 joined #mojo
21:18 tempire Ultimately, I think this is a better option: https://www.youtube.com/watch?v=y9GCwNKCzzI
22:23 jzawodn joined #mojo
22:38 neilhwatson joined #mojo
22:51 gryphon joined #mojo
23:05 kaare joined #mojo
23:06 Ptolemarch joined #mojo
23:59 jontaylor joined #mojo

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