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

IRC log for #mojo, 2013-12-17

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

All times shown according to UTC.

Time Nick Message
00:08 zivester joined #mojo
00:10 hummeleBop joined #mojo
00:24 russum joined #mojo
00:24 marty joined #mojo
00:25 marty joined #mojo
00:31 d4rkie joined #mojo
00:33 russum left #mojo
00:35 sri marcus: Lilyhammer worth watching?
01:20 ka2u joined #mojo
01:25 davido_ joined #mojo
01:28 dsteinbrunner joined #mojo
01:33 frederico1 joined #mojo
01:33 frederico1 left #mojo
01:33 russum joined #mojo
01:39 russum left #mojo
01:45 bpmedley sri: It doesn't appear that a relative url that begins with a / is interpreted the same as one without: http://www.ietf.org/rfc/rfc1808.txt <-- 4.  Resolving Relative URLs (Step 4)
01:46 sri bpmedley: please comment on the issue, i'm not involved
01:46 bpmedley Will do
02:24 zivester joined #mojo
02:29 gedge joined #mojo
02:38 klapperl_ joined #mojo
02:41 duncanthrax joined #mojo
02:45 klapperl joined #mojo
02:48 dsteinbrunner joined #mojo
03:20 zivester joined #mojo
03:25 russum joined #mojo
03:35 hellyna joined #mojo
04:02 preflex_ joined #mojo
04:10 arpadszasz_ joined #mojo
05:01 preflex_ joined #mojo
05:15 zivester joined #mojo
05:16 ka2u joined #mojo
06:00 laouji joined #mojo
06:07 laouji_ joined #mojo
06:26 dod joined #mojo
06:40 dod joined #mojo
06:45 Vandal joined #mojo
06:52 arpadszasz_ joined #mojo
07:37 trone joined #mojo
07:43 Foxcool joined #mojo
07:47 dod joined #mojo
07:50 denisboyun joined #mojo
07:53 davido_ joined #mojo
07:55 rem_lex joined #mojo
08:03 laouji joined #mojo
08:08 themage joined #mojo
08:12 russum joined #mojo
08:16 basiliscos joined #mojo
08:27 nicolaas joined #mojo
08:30 trone joined #mojo
08:38 rem_lex joined #mojo
08:47 dpetrov_ joined #mojo
09:02 mire__ joined #mojo
09:12 ka2u joined #mojo
09:20 meshl joined #mojo
09:39 themage joined #mojo
09:39 hellyna joined #mojo
09:52 fhelmber_ joined #mojo
10:22 davido__ joined #mojo
10:26 highflying joined #mojo
10:32 dvinciguerra joined #mojo
10:33 rem_lex joined #mojo
10:49 laouji_ joined #mojo
10:57 punter joined #mojo
11:30 rem_lex joined #mojo
11:35 marcus sri: I haven't bothered
11:40 hrupp joined #mojo
12:05 dsteinbrunner joined #mojo
12:21 denisboyun joined #mojo
12:22 arpadszasz_ joined #mojo
12:36 davido_ joined #mojo
13:08 laouji joined #mojo
13:11 marty joined #mojo
13:18 asarch joined #mojo
13:20 denisboyun joined #mojo
13:21 mikegrb convos looks prety slick, good job guys
13:24 hummeleBop joined #mojo
13:24 marcus mikegrb: thanks :)
13:50 sri hmm, i guess Mojo::URL::to_rel needs to go
13:52 dvinciguerra joined #mojo
14:06 dod joined #mojo
14:10 good_news_everyone joined #mojo
14:10 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/hJvWGA
14:10 good_news_everyone mojo/master 6a2672b Sebastian Riedel: deprecated Mojo::URL::to_rel (closes #573)
14:10 good_news_everyone left #mojo
14:10 dotan__ joined #mojo
14:15 arpadszasz_ joined #mojo
14:33 denisboyun joined #mojo
14:44 sh4 joined #mojo
14:48 abhishekisnot joined #mojo
14:49 btyler joined #mojo
14:50 dvinciguerra joined #mojo
15:02 batman sri: lilyhammer was amusing wathcing with my gf. not so much by my self.
15:02 batman i've watched both seasons though...
15:02 nicomen first season was funny, second season, not so sure
15:04 ka2u joined #mojo
15:12 malikai joined #mojo
15:13 Lucas1 joined #mojo
15:13 malikai howdy.. would anyone know if there's any good doc action on how to do a websocket server not using Mojo::Lite?
15:14 dod joined #mojo
15:15 malikai or examples would be awesomeness too
15:18 btyler http://mojolicio.us/perldoc/Mojolicious/Guides/Routing#WebSockets isn't using the lite syntax, but I'm guessing you were hoping for a meatier example
15:20 malikai hmm.. i went through that earlier but couldn't get it working.. lemme try it again
15:21 basiliscos joined #mojo
15:24 malikai heh.. yep.. i went all javascript and was doing $self->on('message', sub { stuff; });
15:25 dotan__ joined #mojo
15:25 bluescreen joined #mojo
15:25 malikai thanks.. that was it for me :)
15:26 gryphon joined #mojo
15:30 marcus Mojo::URL::to_rel, we hardly knew you.
15:32 marty joined #mojo
15:45 d4rkie joined #mojo
15:49 stephan48 is there an easy way to parse a file via Mojo::DOM on the commandline?(like mojo get but with a local file)
15:56 hummeleBop stephan48: somethin like pastebin.com/dUP0zQ9F
15:56 batman stephan48: i would use perl -MMojo::DOM -MMojo::Util=slurp -le'Mojo::DOM->new(slurp(shift))' myfile.html or something
15:56 stephan48 thanks
15:56 hummeleBop arf sorry i didn't see 'command line', good luck
16:03 sri perl -Mojo -E 'say x(b("myfile.html")->slurp)->at("title")'
16:05 fhelmbe__ joined #mojo
16:05 marty joined #mojo
16:25 dod joined #mojo
16:45 russum left #mojo
16:50 denis_boyun_ joined #mojo
16:53 malikai quick arch question.. i'm looking to build a little server that will fetch data at some interval via rest, then process, then stream the results to a number of clients via websocket.. do i need to worry about threading/memory sharing issues?
16:59 mire__ joined #mojo
17:02 batman malikai: not with mojo.
17:02 batman it's based on co-operative programming, not threading
17:03 ka2u joined #mojo
17:03 batman meaning each callback will block, but it will still be effective because of the i/o delay
17:10 arpadszasz_ joined #mojo
17:11 denisboyun joined #mojo
17:31 malikai each callback will block? so like fetch_long_slow_rest(sub { do_stuff; }); will block?
17:32 malikai or you mean it will only block inside sub { do_stuff; }?
17:36 btyler malikai: just like javascript/node: registering callbacks is super fast, executing sub { do stuff; } requires CPU time and blocks, because everything is in the same thread
17:37 malikai forgive the cliche.. but that's just groovy
17:40 batman malikai:)
17:56 Adurah joined #mojo
17:58 beyondcreed joined #mojo
18:14 beyondcreed joined #mojo
18:31 btyler_ joined #mojo
18:32 dvinciguerra joined #mojo
18:44 batman should AssetPack die or just log an error when preprocessor could not be found?
18:44 batman i'm leaning against not die'ing
18:47 moritz fwiw #mojo is the 5th most active channel that I log, in terms of total lines, ever
18:47 moritz and no. 4 this year
18:52 sri WE CAN DO BETTER!
18:52 batman :)
18:55 r0b3rt $total_lines_for_2013 += 1;
19:01 chansen YES WE CAN
19:01 chansen LETS PRODUCE
19:01 chansen some more logs ;P
19:03 chansen How about a an Eliza chat bot implemented using Mojo? ;P
19:09 Mike-PerlRecruiter_ joined #mojo
19:18 good_news_everyone joined #mojo
19:18 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/Nx19sA
19:18 good_news_everyone mojo/master 3e39ce9 Sebastian Riedel: better asset tests
19:18 good_news_everyone left #mojo
19:32 batman https://github.com/jhthorsen/mojolicious-plugin-assetpack/commit/f47d26d41b75dbe9abefcc937457465cc75c20bf # comments?
19:55 good_news_everyone joined #mojo
19:55 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/R6Vahg
19:55 good_news_everyone mojo/master 6dbb2ed Sebastian Riedel: more consistent randomness
19:55 good_news_everyone left #mojo
19:56 denisboyun joined #mojo
19:57 batman sri: still no way to tell if hypnotoad, morbo or something else has started the server?
19:58 batman getting complaints for convos when starting with the proxy embedded
19:58 batman would like to forcing it "off" when started from prefork...
19:59 mire__ joined #mojo
19:59 fhelmber_ joined #mojo
20:00 sri i have no idea what you're saying
20:00 batman and no way to subscribe to https://metacpan.org/pod/Mojo::Server::Prefork#spawn from the app..?
20:01 batman sri: convos has a backend and frontend, but when started as "convos daemon" or with morbo, they can be combined
20:01 batman this is then set from the config file which is...not a good idea imo :(
20:02 batman nevermind the spawn link...
20:02 batman marcus: maybe we should make a custom command which will start in combined mode instead of allowing it set from the config file?
20:03 batman it's not very robust the way it is now...
20:12 cfedde joined #mojo
20:14 malikai ws security question: so i got users to auth via ldap.. is the secure way to do this by using BasicAuthPlus? i.e. will i be sure my client is who i authenticated via basicauthplus?
20:15 * batman doesn't know what basicauthplus is...
20:15 malikai http://search.cpan.org/~blr/Mojolicious-Plugin-BasicAuthPlus-0.04/README.pod
20:16 batman search.cpan.org hurts my eyes... *redirect*
20:16 batman malikai: please ignore me. i'm just messed up from a long day @work
20:16 malikai lol.. cpan hurts my eyes too
20:17 batman tried metacpan.org ?
20:19 cfedde joined #mojo
20:19 malikai little better.. the real problem is my excessive use of google
20:19 malikai ...which leads me to cpan
20:20 batman that reminds me: need to set up /etc/hosts ( https://metacpan.org/about/faq )
20:21 batman malikai: the way to make sure of anything (or as good as...) is to write a test
20:21 good_news_everyone joined #mojo
20:21 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/XKityw
20:21 good_news_everyone mojo/master ded3e65 Sebastian Riedel: more links in documentation
20:21 good_news_everyone left #mojo
20:24 cfedde joined #mojo
20:34 good_news_everyone joined #mojo
20:34 good_news_everyone [mojo] kraih tagged v4.62 at 6333787: http://git.io/6jImYw
20:34 good_news_everyone left #mojo
20:48 marcus sri: guess batman is asking if there's a  way to detect in 'startup' that we are going to be forked into workers.
20:48 batman and i guess it's a stupid question :)
20:48 * batman need to stop asking about that...
20:49 batman marcus: i think we should just remove the config param and change it into a command
20:49 batman convos single; # or something
20:49 sri marcus: pretty sure i've said no a few times before
20:49 marcus batman: I think we can just check for ->{prefork} ?
20:49 simpleirc1 joined #mojo
20:49 marcus or is that evil?
20:49 batman marcus: sounds pretty evil... who sets that?
20:50 batman sri: i think so to :( (sorry)
20:50 marcus or even just if Mojo::Server::Prefork is loaded
20:50 marcus and warn
20:50 batman marcus: i don't like it. why not just make a command?
20:50 sri that all doesn't work
20:51 sri the command system might only get activated *after* the app is instantiated
20:51 lukep joined #mojo
20:51 sri lite apps make that pretty obvious, with app->start; being the last line
20:52 marcus sri: an app started with Hypnotoad will have Mojo::Server::Prefork in @INC tho?
20:52 tianon so might an app started without :)
20:52 sri "./myapp.pl prefork" not
20:52 batman sri: but the ioloop doesn't start before the child starts, so a Mojo::IOLoop->timer(0, sub { proxy() if $ENV{START_PROXY_AS_WELL} }); will do the trick
20:53 tianon sri always reserves the right to break all our use of little hacks to detect internal things :)
20:53 batman marcus: I'M NOT GOING TO ACCEPT A PULL REQUST WITH if($INC{....});
20:53 sri batman: if that's all you want you can store $$ somewhere and compare
20:53 marcus batman: no need to yell.
20:54 marcus batman: I think we can do this fine with a timer and sri's $$ trick
20:54 * batman apologizes to the neighbors for actually yelling
20:54 sri it's how Mojo::UserAgent and Mango got fork safety https://github.com/kraih/mango/blob/master/lib/Mango.pm#L262
20:55 batman i don't see how that's related :(
20:57 sri if $$ hasn't changed in the timer you know the event loop got started in the parent process and there was no fork
20:57 Lucas1 joined #mojo
20:58 marcus otherwise warn that server must be run separately with prefork
20:58 russum joined #mojo
20:58 marcus s/server/backend/
20:59 batman sri: doesn't morbo fork...?
20:59 batman ah. sorry
20:59 batman it loads the child in the fork...
20:59 * batman hides
20:59 batman marcus: i don't want to warn. i want to die.
20:59 marcus batman: https://gist.github.com/8012518
20:59 batman it's messed up
21:00 marcus you want to die?
21:00 marcus No, you want to not start the backend.
21:00 batman ok, ok...
21:00 batman can we move the warning to frontend?
21:00 batman s/frontend/html/
21:01 marcus Well, we need a check for the backend running regardless.
21:01 marcus (In the html)
21:01 batman right. can you update https://github.com/Nordaaker/convos/issues/16 ?
21:04 marcus done
21:04 batman thanks sri and marcus :)
21:04 denis_boyun_ joined #mojo
21:05 marcus thanks sri and batman
21:06 basiliscos joined #mojo
21:07 batman haha. don't make me cry from emotional overflow :)
21:18 basiliscos1 joined #mojo
21:24 bpmedley RHEL 7 has Perl 5.16.. :)
21:25 basiliscos joined #mojo
21:30 marcus \o/
21:45 denis_boyun joined #mojo
21:46 basiliscos joined #mojo
21:47 batman bpmedley: are you serious!?
21:47 batman that's just crazy talk
21:47 purl http://www.sinfest.net/archive_page.php?comicID=63
21:52 denis_boyun_ joined #mojo
21:56 basiliscos joined #mojo
21:58 dvinciguerra joined #mojo
22:00 denisboyun joined #mojo
22:06 bpmedley batman: http://developerblog.redhat.com/2013/12/11/rh-announces-rhel-7-beta/
22:08 batman bpmedley: i believe you :)
22:09 bpmedley Understood.. the link was just for reference.. :)
22:09 batman hehe
22:09 batman thanks!
22:09 batman just passed it on to #work
22:34 cooper joined #mojo
22:57 Kovensky joined #mojo
23:04 dsteinbrunner joined #mojo
23:05 basiliscos joined #mojo
23:09 basiliscos joined #mojo

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