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

IRC log for #mojo, 2015-12-07

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

All times shown according to UTC.

Time Nick Message
00:07 tempire_ pipe ops are a big thing in swift as well
00:14 lluad joined #mojo
01:15 nnutter joined #mojo
01:27 cpan_mojo Clustericious-1.09 by PLICEASE https://metacpan.org/release/PLICEASE/Clustericious-1.09
01:30 lluad joined #mojo
02:03 kaare joined #mojo
02:15 lluad joined #mojo
03:04 noganex_ joined #mojo
03:40 aborazmeh joined #mojo
04:10 inokenty-w joined #mojo
05:46 disputin joined #mojo
05:51 dfg810 joined #mojo
06:22 kes joined #mojo
06:37 voldemortensen joined #mojo
06:55 punter joined #mojo
07:02 kes If I define '% content content => begin' in template explicitly then nothing is rendered
07:03 kes here I do not use %= because I use the layout for this template
07:04 dod joined #mojo
07:06 shadowpaste "kes" at 217.168.150.38 pasted "can not define 'content' explicit" (30 lines) at http://paste.scsys.co.uk/502505
07:11 Lee joined #mojo
07:45 Vandal joined #mojo
07:46 bjakubski joined #mojo
07:54 osfabibisi joined #mojo
07:56 ribasushi joined #mojo
08:04 AndrewIsh joined #mojo
08:25 trone joined #mojo
08:29 sugar_ joined #mojo
08:37 eseyman joined #mojo
08:44 odc joined #mojo
08:59 disputin joined #mojo
09:01 disputin joined #mojo
09:08 punter joined #mojo
09:14 berov joined #mojo
09:33 vytas joined #mojo
09:52 jontaylor joined #mojo
10:29 coolo_ joined #mojo
10:32 aborazmeh joined #mojo
10:47 jantore joined #mojo
10:47 cstamas joined #mojo
10:49 mtths joined #mojo
10:54 cstamas_ joined #mojo
12:03 cpan_mojo Clustericious-1.10 by PLICEASE https://metacpan.org/release/PLICEASE/Clustericious-1.10
12:07 neilhwatson joined #mojo
12:20 ZoffixMobile joined #mojo
12:54 kaare joined #mojo
13:05 pink_mist so ... I just read the wikipedia article on the discordian calendar ... 0_o sri are you an adherent? both 'sri' and 'mojo' seem to be names of discordian apostles 0_o
13:14 disputin joined #mojo
13:15 disputin joined #mojo
13:58 berov joined #mojo
13:59 marty joined #mojo
14:04 marcus eris <3
14:04 marcus too bad we're not on efnet
14:16 disputin joined #mojo
14:17 disputin joined #mojo
14:21 ashimema batman about?
14:22 sri on vacation
14:22 ashimema cheers sri, my question can wait for his return.. been doing some more playing with his Asset Packer plugin
14:24 kes sri: does that expected that explicit definition for default content 'content' does not work?
14:24 kes http://paste.scsys.co.uk/502505
14:25 disputin joined #mojo
14:26 aborazmeh joined #mojo
14:27 disputin joined #mojo
14:29 disputin joined #mojo
14:30 disputin joined #mojo
14:51 sue joined #mojo
14:58 voldemortensen joined #mojo
15:04 jontaylor joined #mojo
15:04 gryphon joined #mojo
15:08 disputin joined #mojo
15:08 sri jberger: you really didn't open a pull request yet? :O
15:09 jberger nope
15:09 jberger fixing broken shower took priority this weekend
15:09 jberger unfortunately, its currently in state "non functional" when I started with "leaks"
15:10 jberger :(
15:10 jberger wife is cool with it for today, expect "not happy" starts tomorrow and "upset" the day after
15:11 sri you could accelerate that by flooding the living room
15:11 marcus or call a plumber
15:11 jberger marcus: bah
15:11 jberger sri: I'll ponder that
15:11 marcus jberger: ok, go for sri's suggestion then.
15:12 sri yea, don't listen to marcus
15:12 marcus https://simpsonswiki.com/w/images/thumb/3/39/Do-It-Yourself_Plumbing.jpg/250px-Do-It-Yourself_Plumbing.jpg
15:13 jberger the problem is the faucet valve seat stripped as I tried to remove it
15:13 jberger it might still function, but given that I've been trying to force it out it probably won't make a good seal anymore
15:14 jberger also, I find that home projects make a good complement to programming
15:14 moritz both come with about the same level of frustration, IME :-)
15:14 jberger mostly manual labor with a little thinking vs the usual almost all thinking
15:14 jberger moritz++
15:14 oliver_ joined #mojo
15:25 jberger sri: generally are you ok with http://pastie.org/10612794
15:25 jberger I guess I can just put in a quick test and doc
15:26 oliver_ hi
15:29 oliver_ this is my problem http://fpaste.scsys.co.uk/502512
15:29 oliver_ I'd like earch hypnotoad worker receive the notification
15:30 oliver_ eh sorry, each* to receive*
15:30 jberger oliver_: you need a message broker
15:30 jberger ummm and pg is a good one
15:30 jberger what's the problem?
15:31 preaction see also Mercury
15:32 jberger preaction: true, but the example already is using pg
15:32 preaction yep
15:32 good_news_everyon joined #mojo
15:32 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/vR6lG
15:32 good_news_everyon mojo/master 2791471 Sebastian Riedel: improve inactivity_timeout helper to return the current controller object
15:32 good_news_everyon left #mojo
15:32 sri jberger: oh well, i wanted to use it too
15:32 oliver_ jberger: I am sending the notifications and the code doesn't enter the handler
15:32 jberger sri: that's where I was going to put the test too
15:32 jberger \o/
15:33 oliver_ at least afaik
15:33 jberger guess I can stop
15:33 sri back to repairing the shower
15:34 jberger oliver_: put the entire subscribe stuff inside a Mojo::IOLoop->next_tick(sub{ ... })
15:35 oliver_ will try. What's the reason for it?
15:36 jberger the loop isn't started until the workers fork
15:37 jberger you might only be subscribing before the fork
15:37 jberger that mechanism is described somewhere and I'm not finding it immediately
15:38 sri http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#Built-in-web-server
15:38 jberger http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#Built-in-web-server
15:38 jberger damn
15:38 jberger ack 'new worker' got me there
15:38 sri lol
15:41 jberger oh and the children don't accidentally inherit it because Mojo::Pg has fork-safety built in
15:41 * jberger catches up
15:42 oliver_ I guess I have to have separate connection for every worker too than
15:42 jberger oliver_: it will do that for you
15:43 jberger you just have to subscribe after the fork, which the next_tick will do for you
15:45 oliver_ I am sorry my code still doesn't work http://fpaste.scsys.co.uk/paste
15:45 oliver_ I am not seeing any lines in log after sending a notification
15:46 jberger oliver_: wrong link
15:46 oliver_ ah sorry
15:46 oliver_ http://fpaste.scsys.co.uk/502513
15:48 oliver_ still works when using perl app.pl daemon as expected
15:48 jberger oliver_: what os?
15:48 oliver_ linux
15:48 oliver_ slackware
15:49 pink_mist \o/
15:50 pink_mist which version?
15:50 oliver_ pink_mist: 14.1
15:51 pink_mist postgresql from sbo?
15:51 oliver_ pink_mist: yep but 9.3, installed a year ago
15:51 pink_mist ah
15:52 pink_mist then I won't be able to compare reliably
15:52 lluad joined #mojo
15:53 oliver_ latest Mojolicious from cpan
15:54 jberger I don't immediately see a problem, I can't test it atm
15:55 oliver_ nevermind thanks for the help
15:57 sri oliver_: you did try the chat example right?
16:00 oliver_ what chat example?
16:00 sri https://github.com/kraih/mojo-pg/blob/master/examples/chat.pl
16:01 oliver_ wait for it
16:03 oliver_ sri: works
16:10 oliver_ well, it works if I do the whole thing from a route handler
16:11 oliver_ I mean my original code
16:12 sri there's no difference between next_tick and an action
16:12 HtbaaPi in theory having a foobar.jpg.ep template for serving a JPEG should work right?
16:13 HtbaaPi in it doing something like %== slurp($file)
16:13 HtbaaPi I'm getting the right content size, but the data isn't being displayed.
16:14 oliver_ maybe it does have something with enclosing $cb in closure
16:14 jberger HtbaaPi: why not just $c->reply->static?
16:14 HtbaaPi reason for doing this is because I want to be able to server /preview/abc, /preview/abc.jpg and /preview/abc.mp4
16:14 HtbaaPi and to keep it in 1 nice action.
16:14 jberger oliver_: it might be when you make the pg instance
16:15 jberger I don't really think so, but I'm also at a loss for differences
16:15 HtbaaPi jberger: I figured that's what you can do with several formats
16:15 jberger HtbaaPi: you can do that in one nice action
16:16 HtbaaPi without having a bunch of if's to check requested content?
16:16 sri templates get encoded
16:16 jberger HtbaaPi: see content negotiation
16:16 HtbaaPi ok, so that messes up binairy stuff then
16:17 oliver_ hah, If I set up the pg helper as in the chat example it works, every worker receives the notification
16:17 jberger HtbaaPi: http://mojolicio.us/perldoc/Mojolicious/Guides/Rendering#Content-negotiation
16:17 HtbaaPi jberger: thanks, respond_to should be able to do it then. So no binary content in a template :)
16:18 jberger oliver_ / sri: hmmm perhaps connecting (or even instantiating) without using it defeats the fork safety?
16:19 sri jberger: ->new doesn't do anything https://github.com/kraih/mojo-pg/blob/master/lib/Mojo/Pg.pm#L74
16:19 jberger COW bug?
16:20 jberger oliver_: what version of perl?
16:20 oliver_ jberger: 5.20.2
16:20 pink_mist oliver_: perlbrewed then? =)
16:20 sri my default assumption is that oliver_ is not telling us everything
16:20 HtbaaPi jberger: thanks, that fixed it
16:21 jberger HtbaaPi++
16:21 HtbaaPi now I can call it a day and continue tomorrow! :-)
16:22 oliver_ pink_mist: sure :)
16:23 oliver_ http://fpaste.scsys.co.uk/502515 here's the working version if it is a bug and you want to investigate
16:23 oliver_ I'll be here tommorrow if you need any reproduction/information
16:23 oliver_ thanks guys
16:24 jberger oliver_: thanks and glad to help
16:25 oliver_ sri: all I did was run the code I pasted with hypnotoad. Could be the case though
16:26 sri i'm getting more and more hesitant to investigating stuff like this
16:26 sri because once again this just works https://gist.github.com/anonymous/7141e19cc58364bf01ed
16:27 sri there's stuff you're not telling us
16:27 oliver_ might be
16:27 oliver_ I am not aware of it though
16:31 sri hmm, so we've basically got the leaders of DBIx::Class, Catalyst and Mojolicious saying that it sucks to find sponsors... perhaps there is a bigger problem
16:32 oliver_ sri: sending notifications from psql using NOTIFY TEST, 'payload'; doesn't work with your example for me either
16:33 jberger TEST ne test
16:35 sri yea
16:35 sri it works flawlessly with "notify test, 'works!';"
16:36 oliver_ shouldn't matter but NOTIFY test, 'payload'; doesn't work for me either
16:36 oliver_ the channel names are identifiers
16:37 oliver_ sri: try not creating the timer
16:38 sri yes, it still works flawless
16:40 pink_mist joined #mojo
16:41 sri case-sensitivity is something that could be changed though
16:43 oliver_ doesn't work for me weird
16:45 oliver_ works if the timer is running too
16:45 oliver_ nevermind I got the solution
16:45 oliver_ thanks
16:45 pink_mist do tell?
16:46 jberger pink_mist: I'm assuming oliver_ means the fact that it works when the pg instance is kept in a state helper
16:46 oliver_ yep
16:46 Grinnz_ https://xkcd.com/979/
16:47 jberger not sure what the problem is, but it seems to be unrepeatable, so, the "don't do that" fix applies :-P
16:47 jberger Grinnz_++
16:49 sri hmm, case-sensitivity is actually really hard
16:49 jberger ah, I now see the comment from jjnap
16:49 sri quoting the identifier makes a difference
16:53 voldemortensen1 joined #mojo
16:54 sri yea, no clue how case-sensitivity should be handled
16:54 sri if you don't use the same channel name consistently, i guess you shouldn't expect it to work flawlessly
16:55 sri especially with apis where you have no clue if the identifier was quoted or not
17:32 tempire_ joined #mojo
17:33 tempire- joined #mojo
17:35 kerframil joined #mojo
17:37 tempire joined #mojo
17:39 PryMar56 joined #mojo
17:40 tempire joined #mojo
17:42 hummeleBop joined #mojo
17:45 tempire_ joined #mojo
17:47 disputin joined #mojo
17:49 tempire_ joined #mojo
17:51 sue joined #mojo
17:56 jjohn joined #mojo
18:03 punter joined #mojo
18:04 tempire joined #mojo
18:30 sri ah, unquoted identifiers are always case folded to lower case in postgresql, that also applies to notifications
18:34 macaque joined #mojo
18:37 trone joined #mojo
18:42 jberger casefolded :) postgresql++
18:43 lluad Yeah. Sticking to [a-z0-9_] as postgresql identifiers sidesteps a lot of pain.
18:52 disputin joined #mojo
19:02 sue_ joined #mojo
19:35 sugar_ joined #mojo
20:14 voldemortensen joined #mojo
20:15 voldemortensen1 joined #mojo
21:03 sue joined #mojo
21:40 ZoffixMobile joined #mojo
22:25 lluad joined #mojo
23:13 theo joined #mojo
23:31 sue joined #mojo
23:55 disputin joined #mojo

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