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

IRC log for #mojo, 2016-06-08

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

All times shown according to UTC.

Time Nick Message
00:06 punter joined #mojo
00:08 dvinciguerra_ joined #mojo
01:01 rgrinberg joined #mojo
01:29 gizmomathboy joined #mojo
02:20 bwf Does this make any sense?  Is my postgres not setup correctly?  https://gist.github.com/bfaist/4ffeb505d301c87632f4a04ed8b14ba0
02:22 bwf There is no connection limit for my role.
02:32 Grinnz_ joined #mojo
02:35 noganex_ joined #mojo
03:53 jberger plicease: hmmmm some failing tests showing up
04:50 kaare joined #mojo
04:58 inokenty-w joined #mojo
05:35 che-quest joined #mojo
05:39 dod joined #mojo
05:44 dod joined #mojo
06:08 dod joined #mojo
06:35 Vandal joined #mojo
06:37 Jonis sri: have you checked the chrome task manager to see what's actually using that?
07:01 cpan_mojo Mojo-WebSocketProxy-0.01 by BINARY https://metacpan.org/release/BINARY/Mojo-WebSocketProxy-0.01
07:05 trone joined #mojo
07:06 tempire joined #mojo
07:15 andrew_ joined #mojo
08:08 bjoernfan joined #mojo
08:16 osfabibisi joined #mojo
08:25 icjs joined #mojo
08:29 vytas joined #mojo
09:39 meshl joined #mojo
10:00 punter joined #mojo
10:20 Kripton joined #mojo
10:40 bpmedley joined #mojo
10:48 vytas joined #mojo
10:58 tchaves joined #mojo
11:01 che-quest hi! how to check by name that plugin already loaded?
11:07 vytas joined #mojo
11:28 plicease jberger: gosh.  have you been able to reproduce that?
11:29 plicease i was definitely not seeing any of that in my environment.
11:29 nic che-quest: Does your plugin define a helper?
11:39 eseyman joined #mojo
11:46 che-quest nic: one possibility, thanks!
12:01 che-quest $c->can('helper_name') does not work (
12:04 anparker $c->app->renderer->helpers->{$name}
12:05 anparker not sure if there is a shorter version
12:09 che-quest anparker: does work, thanks
12:12 jberger plicease: i haven't seen those before no, and i can't reproduce
12:13 jberger I got that email yesterday while i was unavailable to look at it though so i don't really know much
12:13 jberger I might have to email slaven and ask
12:22 McA joined #mojo
12:26 plicease okay let me know if you find anything, I am happy to help debug.
13:00 rgrinberg joined #mojo
13:02 jberger plicease: you know what I think ...
13:02 jberger I think this is the odd thing I see every now and again where the fail is actually reported from the wrong version
13:02 jberger 0.04 went out without the protective Build.PL that checked for the presence of the phantomjs executable
13:03 jberger I'm guessing those fails were actually 0.04 but somehow reported as 0.05
13:03 jberger (which fixed the Build.PL)
13:04 ramortegui joined #mojo
14:05 Bean joined #mojo
14:17 dvinciguerra joined #mojo
14:41 nicomen How can I want to start two test mojo_lite apps with hypnotoad? I did mojo generate lite_app foo; mojo generate lite_app bar; then MOJO_LISTEN=http://*:80 hypnotoad ./foo and MOJO_LISTEN=http://*:80 hypnotoad ./bar # but the latter just hot reloaded the first one
14:41 lluad joined #mojo
14:43 sri configure pid files
14:44 rgrinberg joined #mojo
15:02 rgrinberg joined #mojo
15:04 rgrinberg joined #mojo
15:24 zivester joined #mojo
15:32 rgrinberg joined #mojo
15:53 eseyman_ joined #mojo
16:08 McA joined #mojo
16:24 disputin joined #mojo
16:50 PryMar56 joined #mojo
17:09 McA2 joined #mojo
17:40 wouter joined #mojo
17:41 rgrinberg joined #mojo
17:41 wouter hi -- when I follow the instructions on https://github.com/kraih/mojo/wiki/Apache-deployment for deploying some mojo code with mod_perl, apache produces a 500 error and the line "Can't use an undefined value as a subroutine reference at /usr/share/perl5/Plack/Handler/Apache2.pm line 87." appears in my log
17:41 wouter what am I doing wrong?
17:41 wouter (or, where should I start looking?)
17:42 wouter (line 87 is inside the sub "call_app" and says "my $res = $app->($env);", in case that matters)
17:42 rgrinberg joined #mojo
17:43 sri look here http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#DEPLOYMENT
17:43 sri avoid mod_perl
17:44 wouter why?
17:44 sri it's old legacy tech
17:45 wouter that doesn't explain what's wrong with it :)
17:45 Grinnz_ http://www.pastemobile.org/static/mod_perl-faq.html
17:45 perlpilot wouter: avoid mod_perl   ;)
17:46 Grinnz_ you're already using mojo code, so no reason to overcomplicate and tie it down with mod_perl
17:46 rgrinberg joined #mojo
17:47 wouter Grinnz_: that does explain it, thanks
17:47 wouter it's just that most ruby webapps tell me to deploy three servers just to run a single webapp, and I don't want to fall into that trap
17:47 sri that's not a trap
17:47 Grinnz_ you can run hypnotoad directly, but reverse proxy is the most direct way while still being able to take advantage of apache/nginx features
17:48 Grinnz_ like vhosts
17:49 rgrinberg joined #mojo
17:49 wouter sri: I think it's ugly, but perhaps that's just me
17:50 wouter anyway, this isn't for something I'm likely to deploy before december or thereabouts
17:50 wouter also, my webdevelopment "knowledge" dates from the late 90s, so I've got a lot of catching up to do
17:50 wouter but ah well
17:51 perlpilot wouter: if you're using mojo, you're already doing well.  Just read the docs and tutorials and such.
17:51 sri start at the beginning them ;) http://mojolicious.org/perldoc#TUTORIAL
17:51 sri s/m/n/
17:51 wouter I've already done that
17:51 wouter https://github.com/yoe/sreview
17:52 wouter (not nearly ready, but hey)
17:53 jberger it is already getting quite large for a lite app
17:53 jberger you might want to play around with "growing" it to a full one
17:53 rgrinberg joined #mojo
17:53 wouter yeah, probably
17:53 wouter although most of the web-facing functionality is ready
17:53 wouter most of the rest is going to be backend scripts
17:55 wouter one thing though, is it possible to "stack" layouts?
17:55 sri you might like minion for background jobs http://mojolicious.org/perldoc/Minion
17:55 wouter as in, this page X needs to be rendered in layout Y, and page U needs to be rendered in layout V, but both need to have a similar structure
17:55 rgrinberg joined #mojo
17:56 wouter sri: I was thinking of using gridengine, actually
17:56 wouter it's that kind of stuff
17:57 wouter but hrm, I suppose this isn't too bad an idea either
18:01 sri oh hey, it's the day of the week where we make fun of mongodb again :) https://www.reddit.com/r/programming/comments/4n3pgk/mongodb_queries_dont_always_return_all_matching/
18:01 jberger The day that ends in 'y'?
18:02 sri !
18:08 lluad "Mongo: The snapchat of databases"
18:08 rgrinberg left #mojo
18:09 sri "In game of databases, Mongo only pawn."
18:12 disputin joined #mojo
18:25 disputin joined #mojo
18:49 trone joined #mojo
19:14 disputin joined #mojo
19:38 mr_djez joined #mojo
20:08 disputin joined #mojo
20:21 tempire joined #mojo
21:21 disputin joined #mojo
21:38 Bean Does anyone have a good example of a mojolicious framework that uses a google sign-in?
21:53 jberger I'm just looking now, is that OAuth(2?)? or is this SAML the thing now?
21:53 jberger if it is SAML I don't know if I've seen anyone do that from mojo-land (not saying that people haven't maybe I just haven't seen it)
21:53 jberger OAuth people have done
21:54 Bean it's Oauth2
21:54 jberger OAuth2 I think people have done but it is so crazy that I'm not sure if there is a good implementation now
21:54 jberger it seems that batman has one https://metacpan.org/pod/Mojolicious::Plugin::OAuth2
21:54 Grinnz_ oauth2 is pretty simple actually
21:54 nic Bean: Which google service are you targetting?
21:54 Grinnz_ at least compared to oauth 1
21:55 Grinnz_ the "hard" part with oauth is always setting up the callback page for the oauth provider to call
21:56 Bean I just want a sign in with google button. I've been referencing https://developers.google.com/identity/sign-in/web/sign-in which has been great but an example would help a lot
21:57 jberger Bean: perhaps https://metacpan.org/pod/Mojolicious::Plugin::OAuth2 can help you?
21:57 jberger it claims google oauth2 support
21:57 Grinnz_ that doc is about integrating it in javascript; you'd then use https://developers.google.com/identity/sign-in/web/backend-auth to communicate it to the backend it seems
21:58 Grinnz_ so in that case all of the oauth is done in javascript
21:59 Grinnz_ your backend just uses this "tokeninfo" endpoint to validate what your javascript sends to it
21:59 Bean I'm very new to web dev / perl / mojolicious / IRC so I really appreciate all of this
22:01 Bean Grinnz_: that looks perfect. I'll look into it more tomorrow
22:03 jberger Bean: the very best advice I can give you now is to be open to reading and learning a lot
22:03 asarch joined #mojo
22:03 jberger I'm always happy to help someone who is willing to learn (in good faith)
22:03 jberger but of course we can't hand-hold all the way through (not that you are at that point)
22:04 jberger read a lot and ask us when you get stuck and you'll have fun
22:04 jberger and try thing
22:04 jberger s
22:04 Bean jberger: I had that bookmarked but wasn't sure exactly what to do with it yet.
22:05 Grinnz_ it's often hard to find where to start with APIs like this
22:06 Bean And I've been trying to teach myself as much as possible. Things have been going pretty well so far and I'm enjoying myself
22:23 lluad left #mojo
22:32 * sri wonders if he's the only one who hates software subscriptions
22:32 sri can't help but think apple is wrong on this
22:32 Grinnz_ subscription model is falling out of favor even for MMO and other online games...
22:33 sri apple just announced software subscriptions in the app store, so it's going to get big
22:34 mrallen1 what even is a subscription to an app store?
22:34 mrallen1 like $10/month install all you want?
22:34 sri to individual apps in the app store
22:34 mrallen1 oh
22:34 mrallen1 so you have an app that sells for $100 and now I can do $10/month for a year or something?
22:35 sri per month/year unlimited
22:35 Grinnz_ and it presumably removes access once you stop
22:36 sri but it appears you'd be losing access as soon as you cancel your subscription
22:36 sri that makes me very uneasy
22:36 bpmedley I hate loosing access once unsubscribed..
22:36 Grinnz_ it's good for the developers, not good for the users
22:36 sri think payed upgrades would have been more old-apple
22:37 sri like, buy the app for $10, developer releases feature upgrades every few months for $5 each or so
22:37 sri and you decide to keep the old version or upgrade
22:38 jberger I hate limited term subscription model pricing for everything that you ostensibly own
22:38 Grinnz_ some games do that with expansion stuff, but it gets really tricky to support people with different amounts of upgrades
22:39 jberger I undestand even paying for upgrades or upgrade contracts or something
22:39 jberger but when I buy something I want to own it
22:39 sri think apple has big plans for subscriptions though, there's also rumors that they will only do subscriptions for music too
22:39 sri Grinnz_: i kinda enjoy steam games with dlcs
22:39 jberger I think a lot of this is driven by cell service style plans
22:40 Grinnz_ yeah those dlcs can work
22:40 jberger we give you the hardware (or they did) and you pay for service, pretty much everything now can have service
22:40 jberger %^&*^% on-star
22:40 Grinnz_ music seems different to me, subscription makes sense there IMO, as long as you're not actually subscribing to listen to music you bought
22:40 Grinnz_ like, just one subscription for any music you want while subscribed
22:40 sri i mean, lots of shitty dlcs recently, with all those season passes... but some really great like the witcher 3 one
22:40 jberger Grinnz_: I can see both in music
22:41 Grinnz_ like in the google play store you can do either, subscribe to all access, or buy tracks
22:41 jberger but I always want there to be a way to own music
22:41 jberger right
22:41 sri software distribution is hard
22:42 sri so far the only platform i've enjoyed as a user is steam
22:42 Grinnz_ software isnt something that makes sense to take access away from, unless its a webapp, which i guess thigns are moving toward :P
22:42 sri they make owning software fun somehow
22:42 Grinnz_ SoaS and all
22:42 Grinnz_ aa*
22:43 Grinnz_ origin is not bad either to be honest, they just got on it late, but they have free games which if you download, are permanently yours, which is nice
22:43 Grinnz_ EA as a company though... meh
22:44 jberger I do like steam
22:44 sri wish i had kept some bitcoins for the next steam summer sale ;p
22:44 jberger I didn't think I would ever get back into gaming
22:44 jberger steam brought me back
22:44 Grinnz_ ideally EA and ubisoft would stop messing about with their must-own-installers and just sell their games on steam :P
22:44 sri who could have known they'd add bitcoins?!
22:44 jberger Cites skylines
22:44 jberger >3
22:45 jberger <3
22:45 Grinnz_ I have that but eh... never was able to get into that genre
22:45 Grinnz_ except for Tropico which i guess is similar
22:46 Grinnz_ somethign about tropico makes it fun for me, where all the city builders arent
22:46 sri cities skylines would be more fun if it was better optimized
22:46 jberger it does pull a lot of juice
22:46 jberger I love tinkering with traffic management though
22:46 jberger the traffic engine is lots of fun
22:46 jberger and so minutely detailed
22:46 batman jberger: me and marcus has the best oauth2 client implementation :)
23:03 sri i've enjoyed the warcraft movie way more than i thought i would
23:03 sri brings back so many wow memories
23:16 dvinciguerra joined #mojo
23:30 PryMar56 joined #mojo
23:39 disputin joined #mojo

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