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

IRC log for #mojo, 2014-03-09

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

All times shown according to UTC.

Time Nick Message
00:05 zacts punter: I'm deploying via heroku.
00:06 zacts punter: yeah, if I get something interesting. Right now it's just a sketch. I haven't touched my perl-webcasts.git in like 6 months. But if it improves I'll post to blog.perl.org.
00:06 zacts I will probably have many questions to ask here. I'm a bit out of practice.. But I'll catch up soon. ^_^
00:07 zacts s/many//
00:07 jack_ joined #mojo
00:08 zacts punter: https://gitorious.org/perl-webcasts/perl-webcasts/source/master:
00:09 punter thanks
00:09 zacts I'm thinking something like destroyallsoftware or vimcasts, but for perl. I want it to be *free* as in beer, and free / opensource, probably under a BSD license if I can do that.
00:10 zacts like there could be a community section of links to vimeo / youtube, but I think original content would be nice. Original content will be the goal of the whole thing. I also want it to be peer reviewed by the perl community.
00:11 zacts so we don't end up with bad information like so many tutorials out there
00:12 zacts also, kind of like the mojolicious tutorial videos.
00:13 zacts so yeah that link is my current, well 6 months ago, mind vomit of this idea.
00:17 zacts what will probably happen, is that I will: 1) blog about perl with tutorials 2) let #perl on freenode review them before I publish them 3) make tutorial videos similar to mojocasts
00:26 BenGoldberg joined #mojo
01:36 mire__ joined #mojo
02:00 mattastrophe joined #mojo
02:06 d4rkie joined #mojo
02:11 klapperl_ joined #mojo
02:33 zacts \o/ I've deployed my inital mojo app.
02:34 zacts http://zacts-blog.herokuapp.com/
02:34 zacts punter: ^ now I just need to add stuff to it. The google tutorials for how to deploy to heroku are outdated. (one tutorial is from a mojo commiter).
02:34 punter well done
02:34 punter looking good
03:02 jack joined #mojo
03:16 mattastrophe joined #mojo
04:35 russum joined #mojo
04:58 btyler joined #mojo
05:00 btyler found a tiny typo in transactor.t: line 22 'Simle GET'
05:23 gnephiak joined #mojo
06:36 Vandal joined #mojo
07:47 batman https://gist.github.com/jhthorsen/6b063bd5a8cccae357a4 # anyone who wants to give me feedback on this?
07:47 batman "How to deploy #Mojolicious apps on @DigitalOcean"
07:59 mattastrophe joined #mojo
08:05 sh4 joined #mojo
08:06 sh3 joined #mojo
09:05 sujithm joined #mojo
09:12 Andy2 joined #mojo
09:22 good_news_everyone joined #mojo
09:22 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/e5G-bw
09:22 good_news_everyone mojo/master 0e108f7 Sebastian Riedel: link to Mojo::UserAgent in description
09:22 good_news_everyone left #mojo
09:36 ryozi joined #mojo
09:38 malikai heh.. awesome jberger.. and i don't even have to do anything dodgy to get out of RHELL
09:40 malikai also, i'll say that redhat has done a lot to encourage the 'ugly old truck' meme by making it rediculously painful to put nice things on any RH boxes
09:40 malikai "Use redhat?" "Don't try the perl, it'll make you sick."
09:41 malikai because of that, people have to do hacky shit like rewrite things that are already on CPAN just because they can't use CPAN thanks to the risk of breaking vendor perl..
09:42 * malikai steps down again
09:51 dotan joined #mojo
09:52 basiliscos joined #mojo
10:02 bpmedley zacts: Good start!
10:03 bpmedley malikai: Have you considered perlbrew?
10:12 bedivere joined #mojo
10:20 malikai bpm, absolutely! my core applications are all perlbrewwed out of jail.. but now i have to make shared parts of this system accessible to the stupid world too.. standard stuff i guess
10:21 malikai now i have to play nice with the others :(
10:22 malikai ...even though they break my toys!
10:22 punter joined #mojo
10:23 bedivere left #mojo
10:29 denisboyun joined #mojo
11:14 skullbocks joined #mojo
11:23 ka2u joined #mojo
11:40 skullbocks joined #mojo
11:51 jack_ joined #mojo
12:02 mire__ joined #mojo
12:03 Eke- joined #mojo
12:04 jack joined #mojo
12:13 skullbocks joined #mojo
12:25 good_news_everyone joined #mojo
12:25 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/kevK1g
12:25 good_news_everyone mojo/master fe71e15 Sebastian Riedel: documentation tweaks
12:25 good_news_everyone left #mojo
12:32 skullbocks joined #mojo
13:13 paladinn joined #mojo
13:15 mire joined #mojo
13:17 lam joined #mojo
13:17 lam hello
13:34 skullbocks joined #mojo
13:44 d4rkie joined #mojo
13:54 skullbocks joined #mojo
13:59 asarch joined #mojo
14:05 skullbocks joined #mojo
14:09 d4rkie joined #mojo
14:42 neilhwatson joined #mojo
14:42 good_news_everyone joined #mojo
14:42 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/3WW8sg
14:42 good_news_everyone mojo/master ad0233b Sebastian Riedel: mention that tests are not supposed to pass right away in growing guide
14:42 good_news_everyone left #mojo
14:43 gryphon joined #mojo
14:51 cleverfo_ joined #mojo
14:59 good_news_everyone joined #mojo
14:59 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/am_2Yg
14:59 good_news_everyone mojo/master 66a5661 Sebastian Riedel: unit test is not always the correct term
14:59 good_news_everyone left #mojo
15:00 cleverfo_ Hi, guys. Do anybody know how to add socket to Mojo::IOLoop->reactor socket by fd number. I have socket inside XS lib, and have no perl's filehandle. If I using FD in reactor->io($fd => ...) it does not working, beacuse mojo trying to transform GLOB to filehandle in Mojo::Reactor::Poll::io by such code: $self->{io}{fileno $handle} = {cb => $cb};
15:01 sri IO::Handle->new_from_fd
15:03 cleverfo_ sri, Thank you. It's working :)
15:12 good_news_everyone joined #mojo
15:12 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/SJe4OQ
15:12 good_news_everyone mojo/master 0794b38 Sebastian Riedel: added build_controller example to Test::Mojo
15:12 good_news_everyone left #mojo
15:14 sri i do wonder if build_controller should register the around_dispatch and around_action hooks required for dispatching
15:15 sri these https://github.com/kraih/mojo/blob/master/lib/Mojolicious.pm#L125
15:15 * sri shrugs
15:17 sujithm joined #mojo
16:09 BenGoldberg joined #mojo
16:14 bzero joined #mojo
16:19 marty joined #mojo
16:25 ka2u joined #mojo
16:37 cooper joined #mojo
16:41 mire joined #mojo
16:47 hummeleBop joined #mojo
17:14 priodev joined #mojo
17:22 batman i wonder what i should call this module... https://github.com/jhthorsen/mojolicious-plugin-mediaquery
17:24 zivester joined #mojo
17:26 bzero joined #mojo
17:37 Adura Your description is lacking an s somewhere, guess where!
17:38 thowe Is there a close analog to Catalyst's "visit", or are things not done that way in Mojo?
17:40 sri things are not done that way
17:41 sri you can do that kinda stuff... but of course it breaks anything non-blocking https://gist.github.com/kraih/6602913
17:42 sri so we'll never encourage it
17:42 thowe So, I would probably not create a controller for certain functionality that I dish off to...  Maybe a helper class?
17:48 bzero joined #mojo
17:50 thowe I have certain actions that create logs.  In Catalyst, I'm planning to visit the Logs actions, but while I'm doing this stuff I'm trying to think how I would do it in Mojolicious, which I don't think I get yet.  I barely get Catalyst...
17:54 sri stuff from catalyst does not directly translate to mojolicious
17:55 sri there is rethinking required
17:55 thowe Yeah...  Which is both daunting and somewhat exciting...
17:55 ka2u joined #mojo
17:56 * sri finds catalyst terribly overcomplicated in retrospect
17:56 thowe It just takes me a while given the two hours a month I find to sit down and do Perl stuff...
17:57 thowe heh, that's in a good month according to my github history.
18:03 batman Adura: "allows" ? got any other feedback?
18:21 Adura Yes, you're right.
18:21 Adura I stopped at the lacking s.
18:22 batman that's...strange
18:22 bzero joined #mojo
18:24 Adura Seems like a nice idea, but I don't have the hardware to compare to the iframes.
18:40 skullbocks joined #mojo
18:41 batman hardware? what i'm curious about is the name of the module. i think it's a bad name...
19:02 btyler joined #mojo
19:16 russum joined #mojo
19:20 meshl joined #mojo
20:27 marty joined #mojo
20:33 gryphon joined #mojo
20:43 good_news_everyone joined #mojo
20:43 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/8tDjsg
20:43 good_news_everyone mojo/master 50afa0d Sebastian Riedel: added match method to Mojolicious::Routes
20:43 good_news_everyone left #mojo
20:56 btyler joined #mojo
21:03 paladinn joined #mojo
22:01 rem_lex| joined #mojo
22:19 zivester joined #mojo
22:41 good_news_everyone joined #mojo
22:41 good_news_everyone [mojo] kraih tagged v4.88 at db467cb: http://git.io/YVwT4w
22:41 good_news_everyone left #mojo
22:43 cpan_mojo Mojolicious 4.88 by Sebastian Riedel - http://metacpan.org/release/SRI/Mojolicious-4.88
22:57 spoot joined #mojo
22:58 spoot what's the current opinion in the room on the the best mojo authentication plugin to use?
23:01 punter I don't know which is the best, but there's an oauth plugin, that deals with google+ and facebook
23:03 spoot punter: cheers for the response. I'm going to need to do my own account management so oauth is out for me.
23:04 spoot I'm coming from a Catalyst background where the authenication ecosystem is a bit richer. It looks to me that mojo is a bit more 'roll your own'
23:05 punter What do you expect from an authentication pugin to do?
23:05 spoot hence my appearance in this room to see if anyone feels like telling me otherwise
23:06 spoot punter: http://search.cpan.org/dist/Catalyst-Plugin-Authentication/
23:06 punter I'm not a mojo expert, so I can't say
23:07 spoot No worries, I appreciate your response
23:07 punter I wrote a $c->user helper on my own (took a few lines of code)
23:08 punter created a module with methods to validate & authenticate cookies
23:08 punter called that method from inside my around_action hook
23:08 punter and that's all
23:09 spoot A couple of the example apps on the mojo wiki have authentication, but everyone of them does it differently and without a plugin. I'd feel happier using a tried and tested plugin if i could find one.
23:10 spoot authentication is kinda one of those things you don't want to get wrong lol
23:11 spoot It looks like I'm going to be rolling my own for mojo
23:12 firnsy_ spoot: Mojolicious::Plugin::Authentication sounds like what you're after initially
23:13 firnsy_ ... just supply two subs to load_user and validate_user
23:14 sri the fact that you're not looking for specific functionality but something that makes you feel better is something to think about
23:14 spoot firnsy: thanks
23:15 spoot sri: I'm new to mojo. If I can leverage the experience of other users via a plugin - is that a bad thing?
23:15 spoot standing on the shoulders of giants and all that...
23:16 sri why do you need abstraction for authentication?
23:16 spoot hubris
23:18 spoot I've just been spoilt with the Catalyst authentication plugin.
23:19 spoot It's no big deal
23:19 sri i'm not criticizing, just trying to understand
23:19 spoot firnsy: thanks for your suggestion - I shall give it a try.
23:20 firnsy np
23:21 spoot sri: truthfully... just laziness. I want to lift something off the shelf and plug it into my app and just use it and get on with the rest of my app.
23:33 malikai does Mojolicious::Plugin::Authentication share context for http as it does for websockets? i.e. is there a $tx->auth or something?
23:33 malikai s/as it does/ between/
23:36 spoot malikai: good question. I too would be interested in the answer.
23:36 malikai i've never even bothered with http auth server side.. i just do everything with websocket messages but someone's been asking about that and i'm not keen on it unless i can do the socket as well..
23:38 malikai i say never... i mean never since i started using mojo
23:38 spoot malikai: how do you currently authenticate your websocket messages?
23:39 malikai either token for cached or username/password via ldap
23:39 malikai tokens are random expiring junk
23:41 malikai browser loads client content via standard means, client contains websocket client with basic messaging.. client takes over
23:42 spoot I'm still getting my head around mojo. So would I be right in thinking that you have all of your websocket routes below an 'under' statement?
23:42 * malikai has no idea wtf an under statement is :|
23:43 malikai are you using Mojo::Lite?
23:44 spoot http://mojolicio.us/perldoc/Mojolicious/Routes/Route#under
23:45 spoot I'm using full mojolicious. http://mojocasts.com/e3
23:46 spoot the screencast explains it better than I can
23:48 btyler sri: tiny typo in t/mojo/transactor.t 22 'Simle' -> 'Simple'
23:50 good_news_everyone joined #mojo
23:50 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/FmNZAw
23:50 good_news_everyone mojo/master 3e3e997 Sebastian Riedel: fixed typo in test
23:50 good_news_everyone left #mojo
23:50 sri thanks, fixed
23:55 malikai i have a generic ws server which i use a pluggable message switch on
23:55 malikai $r->websocket('/data')->to(controller => 'server', action => 'socket');
23:56 * malikai ponders how much code it would take to do that in stock node.js
23:58 sujithm_ joined #mojo

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