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

IRC log for #mojo, 2015-11-06

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

All times shown according to UTC.

Time Nick Message
00:09 lsm joined #mojo
00:15 dvinciguerra joined #mojo
00:36 Ptolemarch joined #mojo
00:38 aborazmeh joined #mojo
00:59 mattastrophe joined #mojo
01:22 asarch joined #mojo
01:29 cheesekun joined #mojo
01:30 aborazmeh joined #mojo
01:36 ivan_ joined #mojo
02:03 vervain joined #mojo
02:46 Ptolemarch joined #mojo
02:57 kaare joined #mojo
03:17 vervain joined #mojo
03:18 kyshtynbai joined #mojo
03:35 kyshtynbai joined #mojo
03:36 Ptolemarch joined #mojo
03:39 Dandre joined #mojo
04:08 Dandre joined #mojo
04:41 inokenty-w joined #mojo
04:49 Dandre joined #mojo
05:21 Dandre joined #mojo
05:42 Ptolemarch joined #mojo
05:58 vervain joined #mojo
06:02 Dandre joined #mojo
06:10 vervain joined #mojo
06:34 Dandre joined #mojo
06:35 dod joined #mojo
06:37 Ptolemarch joined #mojo
07:21 dod joined #mojo
07:21 Dandre joined #mojo
07:40 kes joined #mojo
07:40 cheesekun joined #mojo
07:41 vervain joined #mojo
07:42 * tempire jiggs
07:59 osfabibisi joined #mojo
08:11 jontaylor joined #mojo
08:12 vervain joined #mojo
08:12 AndrewIsh joined #mojo
08:13 eseyman joined #mojo
08:16 Vandal joined #mojo
08:22 Dandre joined #mojo
08:35 trone joined #mojo
08:37 berov joined #mojo
08:43 Ptolemarch joined #mojo
08:59 shadowpaste "kes" at 217.168.150.38 pasted "the controller class has not founded" (36 lines) at http://paste.scsys.co.uk/501070
09:13 vervain joined #mojo
09:37 Ptolemarch joined #mojo
09:44 nic kes: it's correct that SafeVPN::Auth does not exist
09:45 nic Did you see "Note that this class needs to have already been loaded before the first request arrives." ?
09:45 kes yes. I use SafeVPN::Site in example
09:45 nic As a meta comment, you're doing lots of complex 'stuff' that I have _never_ needed to use, not even in a 500-route mega-app
09:45 kes see line 6
09:45 nic I strongly suspect you're mis-thinking the design
09:47 bd what's the status on async dns lookups? i found  Mojo::Resolver and https://github.com/kraih/mojo/issues/716
09:47 kes What you mean: 500-route mega-app?
09:47 nic I mean a very large app that has lots of above-average-complexity routing
09:47 kes I have no plan to add may $r->get /post etc
09:47 nic and it didn't need any of the spaghetti you're creating
09:49 kes I put controllers into its own namespace and they are not founded
09:50 kes I expect controller_class set the default namespace, but no, it do not.
09:50 kes I unshift @{ $self->routes->namespaces }, 'SafeVPN::Site';
09:50 nic What are you wanting to achieve in doing that?  (in case there's a simpler route to your goal)
09:50 Lee kes: rename lib/Mojolicious.pm to lib/SiteVPN.pm
09:51 kes Lee: no no, will not do that
09:51 Lee that fact you're having to do all that ref $self nonsense means you're painting yourself into a corner
09:51 Lee as nic says: spaghetti
09:51 kes sorry, I do not understand where it is
09:51 nic oh
09:52 nic I completely missed that his app is called Mojolicious.pm
09:52 kes no, that name is your library
09:53 nic but you've given a diff!  Are you editing the real Mojolicious.pm??
09:53 Lee also calling it Mojolicious.pm is probably going to cause all sorts of namespace clashing with the actual Mojolicious (as in *the* Mojolicious) module
09:53 kes Lee: that patch for your library, that is not mine code
09:54 Lee oh, you're faffing about with the core module?
09:54 Lee ...
09:54 * Lee steps away
09:54 nic kes: Seriously, nobody in here can help you if your solution to not understanding the Guides is to start hacking the framework's modules
09:55 kes >I expect controller_class set the default namespace, but no, it do not.
09:55 kes so I: I unshift @{ $self->routes->namespaces }, 'SafeVPN::Site';
09:55 kes I resolve that problem already
09:55 Lee when you call ->to('foo-bar-baz#boz') that will be expanded to a controller class Foo::Bar::Baz (method boz)
09:55 kes wrong assumption about that 'controller_class' for
09:56 kes No, It has not been expanded
09:56 nic hint: At this stage of your learning, just leave defaults well alone and learn how to put your designs on top of what others have already established is a good basis
09:57 kes call ->to( 'auth#index' ) cause error: "Controller "SafeVPN::Auth" does not exist" even If I set: $self->controller_class( 'SafeVPN::Site' );
09:57 nic how about searching on github for established working apps that use Mojolicious, and learning how they achieved what they do?
09:58 Lee kes: your SafeVPN::Auth package should be in lib/SafeVPN/Auth.pm (and correctly namespaced)
09:59 sri bd: we use Net::DNS::Native now
10:00 kes ok
10:00 sri wow, we are getting a lot of weird results from cpantesters now http://www.cpantesters.org/cpan/report/e25524f0-839d-11e5-a26d-0cd990c41875
10:01 Lee sri: looks like a post xcode update on OS X
10:01 bd PROGRAM OUTPUT Output from '':
10:02 sri and more of those segfaults with POD tests on BinGOs openbsd boxes http://www.cpantesters.org/cpan/report/5a454942-8397-11e5-aab2-8e65cfe82091
10:03 nic I'm not sure I agree with the Xcode/iOS licence
10:11 punter joined #mojo
10:14 Onigiri joined #mojo
10:15 vervain joined #mojo
10:17 absolut_todd joined #mojo
10:42 cpan_mojo Mango-1.22 by ODC https://metacpan.org/release/ODC/Mango-1.22
11:16 vervain joined #mojo
11:31 mattastrophe joined #mojo
11:43 Ptolemarch joined #mojo
11:51 vanHoesel joined #mojo
12:15 vervain joined #mojo
12:24 asarch joined #mojo
12:37 kaare joined #mojo
12:37 Ptolemarch joined #mojo
12:48 kes is there a way to check the application has a route for some query?
12:50 buu dynamically?
12:51 nic myapp get /some/req/path
12:52 buu Or just ask the router object..
12:59 shadowpaste "kes" at 217.168.150.38 pasted "is it possible to check a router exists for path" (8 lines) at http://paste.scsys.co.uk/501079
12:59 kes I had tryied but without success
12:59 ajr_ joined #mojo
13:06 aborazmeh joined #mojo
13:21 sri kes: stop using mojolicious, it is not the right framework for you
13:23 sri i don't know what you want, but you keep fighting with internals while learning the basics for a week now
13:25 sri perhaps give catalyst a try, you clearly don't like mojolicious conventions, catalyst is a framework with very little of those
13:35 jberger kes: is that for diagnostics/debugging (if so look at the routes command) otherwise, what is it that you are trying to accomplish?
13:44 hernan605 joined #mojo
13:44 batman kes: it feels like you're always trying to be on the edge with mojolicious instead of playing by the rules.
13:45 batman i used to find myself down the same path, but luckily not so often these days.
13:45 batman if it seems hard, it's probably because you do it wrong or haven't read the manuals
13:46 batman i would encourage you to build from the ground up. reading the manual and the build on previous knowledge.
13:46 batman sounds like you start on the top, trying to bust down the card house
13:47 batman so... anyway want to write a book? :)
13:47 * batman hides
13:49 jabberwok *nod*   and metacpan is the #1 way of avoiding $wheel->reinvent()
13:51 kyshtynbai joined #mojo
13:54 Samysam joined #mojo
13:55 jontaylor joined #mojo
14:03 kes batman: good idea
14:05 jontaylor joined #mojo
14:09 vervain joined #mojo
14:23 irqq joined #mojo
14:25 batman kes: not sure if anyone else has said this, but never use psgi while developing. make sure your app works and then see if it also works with psgi
14:25 batman not the other way around. the simplest (least mount of) possible components put together has a bigger chance to work
14:26 batman and... if you can: avoid using psgi all together.
14:26 kes yes. nic says about that. I run application now under morbo
14:27 batman nic++
14:27 kes can not escape from psgi now (( I must convert from PSGI to mojo. But this task not for one day. So both must work in parallel :`-(
14:30 Samysam Hi all. I try to run my hypnotoad as simple user, without success. If I launch hypnotoad as www user, it fails to create socket, if I put "user" in config hypnotoad don't care...
14:32 sri https://metacpan.org/release/Mojolicious-Plugin-SetUserGroup
14:32 ivan_ joined #mojo
14:33 Samysam thank you, I will use that
14:44 Ptolemarch joined #mojo
14:47 zivester joined #mojo
15:12 neilhwatson joined #mojo
15:22 stephen joined #mojo
15:31 Ptolemarch joined #mojo
15:32 CHYC joined #mojo
15:35 CHYC Hello! May I please ask why I get "signatures feature is experimental" when running with the following plugin in a website running on morbo: http://pastebin.com/i13TaSXH ?  It pops up whenever the perl files are re-read. It runs fine, so it's not a big deal, but I'm just wondering why it's doing it.
15:35 Repaster Repasted text from CHYC: http://fpaste.org/287653/24067144/
15:39 jberger CHYC: move use experimental 'signatures'; after the Mojo::Base line
15:39 ZoffixW joined #mojo
15:39 jberger note also that Mojo::Base imports utf8 for you
15:40 CHYC jberber: Perfect, thanks!
15:40 jberger np
15:43 jberger as long as I'm looking at it, why not do: multiple_text_field => \&multiple_text_field
15:43 jberger save yourself a stack frame (for each of those helpers)
15:44 CHYC Fair point
15:50 bc547_ joined #mojo
15:58 jontaylor joined #mojo
16:15 zivester joined #mojo
16:21 hernan605 joined #mojo
16:55 PryMar56 joined #mojo
17:11 jontaylor joined #mojo
17:37 lluad joined #mojo
17:47 gryphon joined #mojo
17:48 trone joined #mojo
17:58 gryphon_ joined #mojo
18:11 sh4 joined #mojo
18:28 irqq joined #mojo
18:46 bjakubski joined #mojo
19:07 batman sri: sorry, if i have asked before, but... is this *easy* with mojo? https://github.com/jhthorsen/mojo-redis2/issues/14
19:08 batman can i just open the stream and attach the $fh to a Mojo::IOLoop::Stream?
19:09 batman s/the stream/the unix socket/
19:12 cpan_mojo Mojolicious-Plugin-PayPal-0.06 by JHTHORSEN https://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-PayPal-0.06
19:48 sri batman: dunno, since we don't need it in core it's not really supported
19:48 sri might work by accident
19:48 sri unix domain socket support in Mojo::UserAgent and Mojo::Server::Daemmon is still on the extended wishlist i guess
19:49 sri if someone wants to work on it
19:49 batman so you're not against having it in core, just not keen on making it? :)
19:49 sri right, since there's testing and api problems to figure out
19:50 sri a good patch would get a +1 from me
19:50 batman cool :)
19:51 batman not sure when i get time to look at it though
19:51 sri no rush, it's been on the extended wishlist for years, my expectations are low ;p
19:52 batman hehe
19:52 batman really happy about my latest blog. it has more pages views than all my other posts combined :)
19:53 sri i guess there's other problems too, with all the new optional modules we support
19:53 sri socks/tls...
19:53 batman since it might not be supported to do tls over unix sockets?
19:53 sri getting all that tested with unix domain sockets will be a lot of work
19:54 sri i have no idea, not put any thought into it
19:54 sri but i'll sure ask when the pull request is there! ;p
19:54 batman right. i would see it as a different dimension. not sure why you need to encrypt over a unix socket...
19:54 batman :/
19:55 sri i don't disagree, but it has to be thought through
19:55 sri by someone (you!)
19:56 sri guess there can be a lot of funny interactions on the client side
19:56 batman indeed. thanks for the input.
19:56 batman there's a show starting now... *bbl*
19:56 sri dealing with unix domain sockets is pretty easy, all the surrounding stuff makes it hard
20:09 btyler_ reminds me I need to pull M::UA::UnixSocket off CPAN...been broken for ages >_<
20:15 ZoffixW Fix it? :)
20:26 irqq_ joined #mojo
20:45 stephen joined #mojo
20:56 mattastrophe joined #mojo
21:13 cpan_mojo Paws-0.18 by JLMARTIN https://metacpan.org/release/JLMARTIN/Paws-0.18
21:23 asm35 joined #mojo
21:35 jberger batman++
21:36 batman what did i do?
21:38 jberger Unix sockets
21:38 batman well... a bit too early for ++ i think :)
21:38 jberger Meh
21:39 batman haha
22:10 vervain joined #mojo
22:24 Zoffix joined #mojo
23:06 ajr_ joined #mojo
23:07 mattastrophe1 joined #mojo
23:54 vervain joined #mojo

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