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

IRC log for #mojo, 2014-06-19

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

All times shown according to UTC.

Time Nick Message
00:11 punter joined #mojo
00:54 jberger sri: the problem is native windows right?
00:55 jberger I don't have access to a system like that
01:02 sri jberger: all you need is a test, you have access to testers here and with cpantesters
01:02 laouji joined #mojo
01:08 zivester joined #mojo
01:22 klapperl_ joined #mojo
01:35 btyler joined #mojo
01:47 jberger sri: is this sufficient? https://github.com/jberger/Mojo-IOLoop-ForkCall/blob/master/ex/mojolicious.pl
01:48 jberger I can reform that as a test of course
01:49 jberger Can you explain your theory of what is wrong so that I may make a better test
01:51 sri jberger: i suspect it will crash windows perl on fork()
01:51 sri seems like a perfectly fine test case
01:52 sri maybe stephan48 or Adura can give it a try
01:53 d^_^b joined #mojo
01:56 jberger Just curious, why should that be any different than running outside of an app?
01:58 * jberger is getting this : http://zareason.com/shop/UltraLap-440.html
01:59 cfedde fortune | cowsay | boxes -d xes | lolcat
02:17 sri jberger: because windows... seriously
02:17 sri minion jobs crashed when they ran inside the app
02:18 sri they crashed here https://github.com/kraih/minion/blob/master/lib/Minion/Job.pm#L40
02:18 sri some memory management bug in the windows fork emulation i suppose
02:20 jberger Yikes
02:20 jberger Well if someone can run that I will be interested to see the result
02:21 jberger I can turn it into a test too
02:21 sri i changed completely how minion testing works as a result :o https://github.com/kraih/minion/commit/bf9d7608ae1b3793aa1e148b990351176d2c2439
02:23 sri and this is what you see as a result http://www.cpantesters.org/cpan/report/ea8518e4-7244-1014-8d2c-1d1938caeff4
02:23 sri basically a windows coredump
02:25 jberger I see the EV message in there, does that matter?
02:26 jberger Also I used to get the "unusual way" error but I don't anymore
02:26 jberger It  mattered how I exited IIRC
02:28 jberger sri: see this : https://github.com/jberger/Mojo-IOLoop-ForkCall/issues/3
02:28 jberger Oh and the op replied with his results of running that test
02:28 sri nope, EV doesn't matter
02:29 meshl joined #mojo
02:29 sri exit also doesn't matter, it doesn't get past fork()
02:29 sri there are certainly many ways to crash windows perl
02:30 jberger And he saw EV problems too
02:30 jberger On that we agree 😱
02:30 jberger 🙌
02:31 sri yea, EV doesn't survive a fork
02:31 sri (emulated fork)
02:32 sri so we die with an error https://github.com/kraih/mojo/blob/master/lib/Mojo/Reactor/EV.pm#L9
02:32 sri ideas for something better welcome
02:33 jberger So why wouldn't forcing the other reactor help?
02:34 jberger (it really is hard to do x platform from the superior platform)
02:36 sri forcing the other reacor does work
02:37 jberger Oh, so what is still wrong?
02:38 * jberger is very tired
02:38 sri not sure what you mean
02:38 * jberger might be missing things
02:39 sri if you want to fork on windows the poll reactor is recommended
02:39 jberger Oh right
02:39 jberger i agree entirely
02:40 jberger i wonder how uv would do
02:40 sri ev could be fixed to work, but mlehmann
02:41 sri he refuses any kind of compatibility code for ithreads/ifork
02:41 * jberger sighs and kicks purl in exasperation
02:42 sri do we call it ifork? fork emultion is a pita to type
02:42 jberger Just be glad he hasn't added exit 1 if Mojo::IOLoop or something yet
02:42 jberger Platforms without a true fork
02:42 sri only a matter of time ;p
02:45 jberger sri: can link to http://perldoc.perl.org/perlport.html#fork
02:45 sri http://mojolicio.us/perldoc/Mojolicious/Guides/FAQ#What_does_the_error_EV_does_not_work_with_ithreads_mean
02:49 sri can i actually compile a perl with ifork on os x?
02:50 jberger No idea
02:50 purl No idea is http://jays.net/images/noidea.jpg
02:50 jberger Hehe
02:50 kryptonite joined #mojo
02:51 jberger Interestingly, it seems that fork-exec might work better on ifork platforms than regular fork : http://perldoc.perl.org/perlfork.html
03:29 chankey joined #mojo
03:35 laouji joined #mojo
03:54 laouji joined #mojo
04:26 laouji joined #mojo
04:27 disputin joined #mojo
04:55 laouji joined #mojo
05:45 Gunnar joined #mojo
05:52 Gunnar left #mojo
06:41 dod joined #mojo
06:42 irq joined #mojo
06:45 dod joined #mojo
06:54 shmuel joined #mojo
06:55 russum joined #mojo
06:56 riche joined #mojo
06:57 igorsutton joined #mojo
06:57 laouji joined #mojo
07:04 laouji joined #mojo
07:09 eseyman joined #mojo
07:18 basiliscos joined #mojo
07:20 mire joined #mojo
07:20 rem_lex|pivo joined #mojo
07:23 trone joined #mojo
07:24 Eke- joined #mojo
07:26 rawler joined #mojo
07:26 Dandre hello,
07:26 riche yes, pretty quiet in here right now.
07:27 arthas joined #mojo
07:28 Dandre I have an hypnotoad server run in http scheme behind an apache reverse proxy with ssl on. How can I redirect to https if initial connection is done with http?
07:32 riche can't do a redirect_to?
07:36 preaction set an http header. one convention is x-forwarded-proto, but the newest http rfc describes a better one. not sure if apache's reverse proxy sets those by default
07:36 crab Dandre: http://toroid.org/ams/etc/mixing-http-and-https
07:37 crab the details (i.e. what X-blah to use) have changed a bit, but the basic idea is explained there
07:41 sugar joined #mojo
07:46 Dandre ok
07:57 disco joined #mojo
07:57 disco hi
07:59 disco Is it possible to use layouts as external files with Mojolicious::Lite ? Or does it require to put the data in __DATA__ ?
08:01 Eke- joined #mojo
08:06 disco (ok, actually it works, I wrongly named templates/ as template/)
08:06 Jonis disco: http://mojolicio.us/perldoc/Mojolicious/Commands#inflate
08:11 disco Jonis: oh, very nice, thanks !
08:38 chankeypathak joined #mojo
08:38 laouji joined #mojo
08:46 Vandal joined #mojo
08:48 edestler joined #mojo
09:02 chankey joined #mojo
09:17 chankeypathak joined #mojo
09:56 chankey joined #mojo
10:10 mire joined #mojo
10:24 voegelas joined #mojo
10:29 meshl joined #mojo
10:32 nicomen is there an easy way to fake a timeout/dns lookup failure when running Mojo::Test ?
10:35 irq_ joined #mojo
10:38 d4rkie joined #mojo
10:39 kyshtynbai joined #mojo
10:43 bjoernfan nicomen: Can't you point it at a bogus tld or something?
10:48 nicomen hm
10:49 alnewkirk joined #mojo
10:54 dp_ joined #mojo
10:55 d4rkie joined #mojo
11:09 sugar joined #mojo
11:12 powerman joined #mojo
11:12 powerman hi. is it possible to access from Lite app routing shortcut added by some plugin?
11:28 sujithm joined #mojo
12:02 neilhwatson joined #mojo
12:36 sugar joined #mojo
13:09 mire joined #mojo
13:20 zivester joined #mojo
13:23 trone joined #mojo
13:32 Eke- joined #mojo
13:38 disputin joined #mojo
13:39 Eke- joined #mojo
13:43 gryphon joined #mojo
13:53 bluescreen joined #mojo
13:55 btyler joined #mojo
14:13 vaewyn joined #mojo
14:15 vaewyn Hey everyone... anyone know how to hook a subroutine in to be called every time we get a rainbow puke? (one sentence I never foresaw ever using... :) )
14:20 dabudabu I did it by overriding the render_exception subroutine as explained over here: http://toroid.org/ams/etc/mojo-testing-exceptions
14:20 dabudabu But don't know if that's the best way to do it
14:23 arthas_ joined #mojo
14:23 stephan48 you could look at the MailException Plugin
14:25 btyler joined #mojo
14:27 vaewyn stephan48: that looks right up my alley... trying to get auto bug report creation so...  might even be able to add some headers and go through our bug email gateway... thanks!
14:30 disputin joined #mojo
14:38 stephan48 cool
15:12 batman vaewyn: https://metacpan.org/pod/Mojolicious#before_render
15:14 batman vaewyn: https://metacpan.org/pod/distribution/Mojolicious/lib/Mojolicious/Guides/Rendering.pod#Rendering-exception-and-not_found-pages
15:14 batman The last noe has more details.
15:18 disputin joined #mojo
15:29 disputin joined #mojo
15:36 alnewkirk joined #mojo
15:41 russum joined #mojo
15:53 kyshtynbai Oh gods. My mind is melting down. A week, already a weel all my free time is devoted to a problem. A problem of possibility of $c->render_static('non-public/file.jpg') inside templete. Inside <img src> tag for instance. If someone is able to make a hint - which I would probably won't be able to understand, unfirtuantly - I'd be very gratefull.
15:53 kyshtynbai Maybe I'm too dumb for coding, really. Buy I have to get up and try.
16:08 sri you cant do that inside templates
16:09 kyshtynbai Thanks the god
16:10 kyshtynbai Cause I've been trying to.
16:11 btyler_ joined #mojo
16:29 disputin joined #mojo
16:34 vaewyn left #mojo
16:34 sh4 joined #mojo
16:54 sh4 joined #mojo
16:56 powerman left #mojo
16:59 crab kyshtynbai: you can't do it, but it doesn't make sense even to try, because an <img src> takes a URL to an image, not image data.
16:59 crab are you the ivan who asked on-list about protecting your images from unauthenticated access?
17:01 crab oh. too late.
17:12 disputin joined #mojo
17:12 trone joined #mojo
17:19 * sri hums everything is awesome
17:19 sri \o\
17:19 sri /o/
17:26 sri so unikitty is basically tempire
17:29 * tempire has yet to see the movie
17:30 sri http://th01.deviantart.net/fs70/PRE/f/2014/049/e/d/unikitty__by_sleepdeprivedchicken-d771coc.jpg
17:36 jesteves joined #mojo
17:41 jesteves Hello everyone.  I'm tryng to find the equivalent of $self->render_maybe (... partial => 1 ...).  I'm adapting pre-v5 code...
17:41 jesteves Is it $self->render_to_string ( ... 'mojo.maybe' => 1 ...)  ?
17:42 sri there is no official alternative
17:42 jesteves Don't like the idea of messing around with "mojo." namespace, but I don't see alternatives...
17:42 sri what does render_maybe do that render_tto_string doesn't?
17:42 jesteves @sri: ok
17:43 crab sri is not an array
17:43 sri maybe does absolutely nothing for partials as far as i can see
17:56 punter joined #mojo
18:01 jesteves so I possibly the only one on earth to appreciate the appereance of  sub render_maybe_to_string { shift->render(@_, 'mojo.maybe' => 1, 'mojo.to_string' => 1) } in Mojolicious::Controller :-)
18:02 sri but it wouldn't do anything
18:04 jesteves that, I don't get...
18:07 jesteves oh, geez I see now:  there's a return in render() preventing to get to "maybe" evaluation if one passes "mojo.to_string" :-\
18:08 btyler joined #mojo
18:13 abra joined #mojo
18:16 good_news_everyon joined #mojo
18:16 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/kZEziA
18:16 good_news_everyon mojo/master 7e6ad47 Sebastian Riedel: returning undef is a feature
18:16 good_news_everyon left #mojo
18:16 sri jesteves: that should make it more clear
18:17 voegelas joined #mojo
18:24 jesteves sri: yup, it does, thank you.
18:24 good_news_everyon joined #mojo
18:24 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/3LVC-g
18:24 good_news_everyon mojo/master 7f744b6 Sebastian Riedel: mention that content is wrapped in a Mojo::ByteStream object
18:24 good_news_everyon left #mojo
18:25 mire joined #mojo
18:36 jesteves left #mojo
18:49 dod joined #mojo
18:54 basic6 joined #mojo
18:55 sujithm joined #mojo
19:07 sri ohoh, all elastic search fans should read this http://aphyr.com/posts/317-call-me-maybe-elasticsearch
19:11 Eke- joined #mojo
19:14 sri summary: do not use it as your primary data store
19:23 cfedde Of course my coworkers don't care.  "Postres is too hard." "Hey OPS! what happened to my data? You guys suck!"
19:32 sugar joined #mojo
19:48 disputin joined #mojo
20:04 jzawodn that post is worth if for the graphics alone
20:04 jzawodn s/if/it/
20:16 neilhwatson joined #mojo
20:23 mire joined #mojo
20:42 sjn joined #mojo
20:46 zackiv31 joined #mojo
21:28 gryphon joined #mojo
21:34 tempire woo
21:34 tempire \o\
21:34 tempire /o/
21:35 tempire |o|
21:35 tempire \o_
21:35 tempire _o/
21:48 kyshtynbai joined #mojo
21:49 neilhwatson joined #mojo
22:09 disputin joined #mojo
22:11 sri /o\
22:12 beyhugobah joined #mojo
22:16 sri i guess the whole activists over developers thing happening on gittip is now going to sink the ship https://medium.com/building-gittip/i-resent-you-a6beb5ce19d6
22:34 beyhugobah activist?
22:34 beyhugobah like a commy demoanding more cash from everyone for her little moral high horse program?
22:46 beyhugobah gitip altruism app lol
22:46 beyhugobah hilarious
22:51 tempire I don't understand what that article is about.
22:51 tempire But it seems like there's someone somewhere who thinks their point of view is important.
22:51 tempire Which is always wrong.
22:54 sri yea, there's a lot of hand waving from all sides, nobody is even trying to state the problem in a coherent manner
23:23 d4rkie joined #mojo
23:24 d4rkie joined #mojo
23:31 preaction there was a github issue thread that seemed coherent, but that was last month, and that article is now
23:33 meshl joined #mojo
23:53 beyhugobah altrism orality twists brains, its better to be selfish and offer trade of value
23:55 preaction of course, especially when you have the power to dictate the terms of the trade

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