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

IRC log for #mojo, 2014-09-23

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

All times shown according to UTC.

Time Nick Message
00:49 good_news_everyon joined #mojo
00:49 good_news_everyon [mojo] kraih tagged v5.44 at 472efee: http://git.io/JwQVtQ
00:49 good_news_everyon left #mojo
00:50 good_news_everyon joined #mojo
00:50 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/XFOYng
00:50 good_news_everyon mojo/master 0167391 Sebastian Riedel: bump version
00:50 good_news_everyon left #mojo
00:51 jnbek orly
00:51 sri yarly
00:52 sri already had two complaints today about that bug
00:54 jnbek well, all that matters to me is that the pkgbuild is up to date :D
00:54 jnbek probably the fastest I've done it yet :D
00:54 jnbek 3 minutes not bad :D
00:54 jnbek but thanks for fixing that :)
01:03 jberger preaction: do you think we could get a company logo on there?
01:04 jberger sure would be a nice one to add, even if we (you) only use it in certain places
01:04 preaction_ it probably has to go through a whole rigamarole
01:04 jberger I would think so too
01:07 jberger Golliath National Bank -- "Mojo is awesome, if you like that kind of thing"
01:08 preaction oh, yeah, you or me speaking ex cathedra for the bank will _never_ happen
01:10 jberger mjb152/woz: if I may self-promote: http://blogs.perl.org/users/joel_berger/2013/10/writing-non-blocking-applications-with-mojolicious-part-1.html
01:13 jberger and then be sure to go at least to part 2: http://blogs.perl.org/users/joel_berger/2013/11/writing-non-blocking-applications-with-mojolicious-part-2.html
01:15 zivester joined #mojo
01:16 jberger eeek, I think I have outdated code in that one!
01:20 jberger fixed
01:20 jberger ahhhh, that's better
01:58 mib_z95pjy joined #mojo
02:08 jnbek jberger: you're the Convos guy right?
02:11 jnbek no maybe not
02:11 davido__ joined #mojo
02:15 preaction i want to say it's batman and marcus, but since we're just pinging everyone, might as well add tempire to that list ;)
02:16 noganex_ joined #mojo
02:25 anon2422 joined #mojo
02:29 meshl Hey, I am calling app->secrets() but still receive the message "Your secret passphrase needs to be changed". What could cause this?
02:41 Zx3 joined #mojo
02:41 woz joined #mojo
02:43 anon2422 joined #mojo
02:44 omega jnbek: batman and marcus are convos guys I think
02:44 jnbek omega: thanks
02:51 jberger jnbek: i have only made tiny contributions, mostly to Linkembedder
02:56 anon2422 joined #mojo
03:02 sri think if the user quotes thing fails i'm going to do something drastic
03:03 sri i'll call out some of the corporate help vampires
03:10 sri "these big corporations won't even admit to using perl, but have no problem with using up your community resources"
03:10 sri if i can make recruiting just a little harder for them it might make a difference
03:14 woz joined #mojo
03:15 basic6 joined #mojo
03:16 sri maybe maintain a public list of open source friendly and unfriendly companies
03:17 sri give some incentive to change
03:18 doublelel joined #mojo
03:26 sri "it's hard to recruit perl programmers"... "no you are not allowed to tell anyone we use perl"
03:32 anon2422 joined #mojo
03:39 meshl what's render_partial replacement please?
03:40 preaction render_string or render_to_string i think
03:41 anon4222 joined #mojo
03:41 meshl ok looking at it now...
03:46 woz joined #mojo
03:49 meshl in fact it is render_to_string
03:52 woz joined #mojo
03:59 howitdo joined #mojo
04:09 brainbuz joined #mojo
04:13 anon2422 joined #mojo
04:23 woz joined #mojo
04:25 anon4222 joined #mojo
04:47 tempire Someone should contact startsiden for a quote
04:47 tempire marcus, batman ^
04:55 woz joined #mojo
05:27 woz joined #mojo
05:43 preaction joined #mojo
05:58 mr-foobar joined #mojo
05:58 doublelel joined #mojo
06:03 ashimema hello
06:03 purl hi, ashimema.
06:03 sujithm joined #mojo
06:12 KCL_ joined #mojo
06:14 * batman is back from vacations
06:16 woz joined #mojo
06:20 tempire how many vacations?
06:21 dod joined #mojo
06:22 marcus long weekends for fun and profit
06:22 marcus batman: I'm jelly of your Berlin.
06:24 batman jelly?
06:24 purl Must be jelly, 'cause jam don't shake like that!
06:24 batman tempire: at least two
06:24 purl at least two are already involved in this argument
06:37 jamesaxl joined #mojo
06:38 Dandre joined #mojo
06:43 batman sri: i've asked telenor if we can be added to the User-quotes page now
06:44 batman jnbek: what's up? got any convos feedback? it's me and marcus that do the heavy lifting, but there are several other contributors
06:47 batman sri: about the front page example, could you do use Mojolicious::Lite "experimental"; or use Mojolicious::Lite "bleed"; ? :)
06:47 batman or maybe just use Mojolicious::Lite "signatures";
06:47 batman -signatures;
06:47 * batman stops
06:47 ashimema sri: thanks for letting me know master fixes my bug.. I thought it was just me completely misusing somthing.. it works now :)
06:48 anon2422 joined #mojo
06:53 Vandal joined #mojo
06:54 tianon anyone know what's "relaxed" about the RFC 6265 implementation in Mojo::UserAgent::CookieJar?  ("Mojo::UserAgent::CookieJar is a minimalistic and relaxed cookie jar used by Mojo::UserAgent and based on RFC 6265.")
06:54 tianon I've been reading the code trying to grok what's relaxed about it for about an hour now and I'm going cross-eyed :>
06:56 sugar_ joined #mojo
07:06 mr-foobar joined #mojo
07:14 tianon it seems like ->find being potentially destructive is a "relaxed" bit, but I've been staring at this too long now >_<
07:16 woz joined #mojo
07:20 rawler joined #mojo
07:20 anon2422 joined #mojo
07:25 trone joined #mojo
07:32 anon2422 joined #mojo
07:35 jamesaxl joined #mojo
07:51 ashimema anyone here using the template toolkit renderer plugin?
07:51 ashimema think i've found a bug..
07:54 nicomen batman: how do I not move around the active tab in convos?
07:54 batman nicomen: i don't get the question
07:54 batman do you mean the order of the tabs in the navbar?
07:56 nicomen batman: yes, the top tabs with channel names, when I click a channel it is moved to the left?
07:56 nicomen I would like them to be static (in the order channel was joined)
07:56 marcus yeah, it's sorted by last visited.
07:56 nicomen or some order, Ijust couldn't find the js bit that re-arranges it
07:56 batman nicomen: it's on server side
07:57 aleksey joined #mojo
07:57 nicomen ooooh
07:57 batman it makes sense. i guess it needs some getting used to, but it's really nice when you have more than two conversations
07:57 batman especially on the phone.
08:01 woz joined #mojo
08:01 anon2422 joined #mojo
08:03 basiliscos joined #mojo
08:03 nicomen batman: maybe on phone yes
08:07 batman did i mention it's also awesome on the desktop?
08:07 batman ;)
08:09 nicomen two out of two people complained about the tabs
08:09 nicomen ;)
08:13 fhelmber_ joined #mojo
08:20 mr-foobar joined #mojo
08:50 nic joined #mojo
08:52 ver joined #mojo
09:03 dp_ joined #mojo
09:03 ryozi joined #mojo
09:05 marcus nicomen: tenkt på det som cmd-tab liste for kanalene dine ;)
09:05 dod joined #mojo
09:09 nicomen marcus: hva er en cmd-tab liste?
09:09 nicomen sorry, what is a cmd-tab list?
09:12 anon2422 joined #mojo
09:15 doublelel joined #mojo
09:19 marcus nicomen: alt-tab på linux?
09:19 marcus vi sorterer vinduene på samme måte som oset
09:20 marcus I'm having some trouble with a misbehaving hypnotoad setup. Seems the workers all look like this https://gist.github.com/marcusramberg/b038ed1edac0fd3d1624
09:22 marcus Looks like a lot of request timeouts
09:22 sujithm joined #mojo
09:22 batman nicomen: who's the other one? i know at least 50 people who doesn't want to change the order.
09:23 batman i think it's more a "getting used to" issue, than a real issue.
09:28 ghandi|work joined #mojo
09:29 arthas joined #mojo
09:32 marcus hrm, seems they are not using libev. guess that will help quite a bit.
09:33 anon4222 joined #mojo
09:41 sugar joined #mojo
09:44 nicomen batman: espen at work ;)
09:45 batman ok
09:45 nicomen also never seen this tab behaviour in any other application, so you are right that it is something one needs to get used to ;)
09:47 dod joined #mojo
09:56 batman did you get marcus' comment?
09:56 batman about the alt+tab order?
09:56 batman nicomen: have you also discovered shift+enter to quickly change conversation?
10:04 mr-foobar joined #mojo
10:04 morton joined #mojo
10:06 morton hello
10:08 nicomen batman: yup ;)
10:08 batman good
10:08 morton how to use mojo write live chat
10:08 nicomen I remember having years in opera insisting to sort tabs this way too
10:09 nicomen idealistic, but noone got it ever
10:09 batman so... why are against it?
10:09 batman *are you
10:09 nicomen because noone got it?
10:09 nicomen I meant, some people in opera insisted on it
10:09 nicomen but, actually changing the order, at least shows you the order it will sort in
10:10 nicomen in opera the tab interface was using the mdi interface model that windows introduced back 3.x
10:10 nicomen you close a tab, and you end up "seemingly" random
10:10 nicomen all other browsers went with go to the left tab
10:10 bodgix joined #mojo
10:10 nicomen not last visited
10:11 bodgix left #mojo
10:12 dod joined #mojo
10:12 batman but i think it's different, since you can actually move the tabs around
10:12 batman physically
10:13 nicomen in opera?
10:13 nicomen or in browsers?
10:14 batman browsers
10:14 purl browsers are just smart enough to read the file or interesting
10:14 batman or did i misunderstand something..?
10:14 nicomen no no, you are right
10:18 TitanOfOld joined #mojo
10:23 dod joined #mojo
10:29 aleksey joined #mojo
10:31 meshl joined #mojo
10:57 sugar joined #mojo
10:58 aleksey_ joined #mojo
11:25 anon4222 joined #mojo
11:32 anon2422 joined #mojo
11:44 anon2422 joined #mojo
11:53 jberger ashimema:  as you might be able to guess by now, i don't think many people use that renderer
11:54 jberger At least not people who hang out here
11:54 jberger Might want to contact the author directly
11:55 jberger morton: if you restrict it to a single server, it's not too hard
11:55 jberger To write it well though you need to use some kind of pub-sub to connect all the servers
11:56 jberger Redis and mongo both have ways to do that
11:57 ashimema thanks jberger, I've added an issue to the authors github ;)
11:57 ashimema just ened to provide some example code now.
11:57 jberger ashimema++
11:57 ashimema I take it most people stick to .ep then?
11:57 ashimema I've been using tt for years.. so I felt natural to stick with what I knew
11:57 jberger At least the one who hang out here i think
11:58 * jberger never got used to tt
11:58 jberger And ep is so natural
11:58 ashimema I should probabyl go to the effort to learning ep then..  i'm not doing anything especially clever with templates in this project anyways
11:58 jberger But always, use what you know and use what works for you
11:59 jberger Timtowtdi
11:59 purl There Is More Than One Way To Do It or a crappy way to write a tutorial
11:59 * Lee is using TT renderer
11:59 Lee ashimema: what bug have you found?
12:00 ashimema If you nest a template more than one level deep in a directory, then mojo only looks for .ep.. not .tt files..
12:00 ashimema i.e
12:00 ashimema /template/list/thing.html.tt is ok..
12:00 ashimema but
12:00 mr-foobar joined #mojo
12:01 ashimema /template/list/parts/smallthing.html.tt is not
12:01 ashimema of course.. I could well just be structuring my directories against the norm ;)
12:01 Lee that might be your TT config, we're using templates several directories deep
12:02 ashimema interesting..
12:02 ashimema I've left the config as comes default with tt_renderer
12:03 Lee https://gist.github.com/leejo/b24ddb077b8b226569f7 # our config looks like this
12:03 ashimema cheers.. I'll take a look
12:04 anon2422 joined #mojo
12:06 ashimema yeah.. looking back..
12:06 ashimema I've simply called: $self->plugin('tt_renderer');
12:07 ashimema and didn't set any additional config.. I would have assumed the default config to work as closely as possible to the ep renderer
12:07 ashimema and therfore traverse
12:08 Lee that's possibly a legitimate issue in the TT renderer then
12:08 Lee arguable though
12:08 ashimema indeed...  you've found me a workaround for now thuogh :) thanks
12:12 jberger Not that i use tt, but i would think that the renderer should at least setup the handler
12:12 _eugen joined #mojo
12:15 Akron joined #mojo
12:15 marcus jberger: I think maybe the tt renderer isn't that well maintained.
12:16 __eugen joined #mojo
12:18 ashimema the author replied very quickly to my issue ;)
12:18 ashimema so maybe it's not used very prolifically.. but I was impressed by his responsivness
12:19 ashimema I think it's the default hander directive Lee has in his code that makes the difference..
12:19 ashimema as apposed to the tt config
12:19 __eugen joined #mojo
12:24 denis_boyun joined #mojo
12:35 anon4222 joined #mojo
12:48 sanya_com_ua joined #mojo
12:51 anon2422 joined #mojo
12:58 anon2422 joined #mojo
13:05 neilhwatson joined #mojo
13:06 doublelel joined #mojo
13:07 anon2422 joined #mojo
13:08 aleksey joined #mojo
13:15 sri the new maintainer seems pretty active, i think the problem was that the old didn't choose the best defaults
13:19 Averna joined #mojo
13:21 ashimema cool.. well I did him an example so hopefully he'll be able to get ot the bottom of it.. thus far I'm too new to mojo in general to suggest a resolution to him :(
13:28 marty joined #mojo
13:29 genio joined #mojo
14:01 meshl joined #mojo
14:29 batman can someone let me know if they think this is a good idea or not? https://github.com/jhthorsen/mojolicious-plugin-assetpack/pull/28
14:29 batman it doesn't seem right :(
14:31 Averna left #mojo
14:38 genio honestly, I don't see that as something that's needed
14:40 Akron batman: Why?
14:40 _eugen joined #mojo
14:40 Akron I can't see any downside.
14:41 batman genio: neither can i :/ I think it's weird to generate dynamic assets, without an external pre-processor
14:41 batman Akron: every line of code is a downside.
14:42 batman the only way to accept additional code is if the code has a higher value than the initial downside.
14:43 batman it's not that the code is bad. just that all code has a cost.
14:45 Akron I see the maintainence cost. When I say, I see no downside, I already calculated with the upside, which is support for dynamic assets. And in the given use case you would have to provide a static assets in advance to make it work with assetpack - which would make the user of dynamic assets have higher maintenance cost.
14:48 batman i don't get what "the Script" is Akron. can you explain further?
14:48 batman also, obfuscation of email is pretty broken i every way...
14:48 Akron That's not the point, see the description of the plugin.
14:49 Akron "And please keep in mind that it's arguable if email obfuscation is useful at all."
14:49 Akron ;)
14:50 Akron It's just one use case for dynamic assets where the problem came up. It wasn't obvious to me that AssetPack doesn't support it. It's not documented.
14:50 batman but i need to see some point of why i should accept the pr :/
14:51 batman why can't you just create the asset up front?
14:53 Akron I can and I would have to do that everytime I modify the parameters. I thought AssetPack would be of assistance. If it's not, I will remove the recommendation, but you should mention in the POD that only static assets are supported.
14:54 arthas joined #mojo
14:56 batman well, the assest are only generated when you start your script. It's not calculated on request time.
14:57 batman Akron: "This plugin will compress scss, less, css, javascript and coffeescript with the help of external applications on startup" <-- it can't make anything on "run time"
14:58 Akron On startup. That's the point.
14:59 Akron The patch does nothing more than passing the app to the UserAgent so on startup it can also follow established paths.
14:59 batman i think you need to make real-world example in the unit test to convince me.
14:59 batman https://github.com/jhthorsen/mojolicious-plugin-assetpack/pull/28/files#diff-2d7fbc73df5d69af5a582e03bfb5a96bR13 # is not very dynamic
14:59 thomasoniii joined #mojo
14:59 Akron Okay.
15:00 Akron I agree with that.
15:00 thomasoniii Is there a preferred method to see what server a mojo app is running under? For now I just need to differentiate between hypnotoad and morbo.
15:01 thomasoniii $ENV{_} ?Explicitly checking for $ENV{MORBO_REV} or $ENV{HYPNOTOAD_REV}? Something else?
15:01 batman thomasoniii: no. but please convince sri that it would be a good idea :)
15:01 batman thomasoniii: i got a super ugly hack in Convos to get which server i'm running under :/
15:03 sri batman: make a real proposal
15:03 batman oh. i thought you said it was out of question.
15:03 sri i think there is no clean way to do it
15:04 sri all i'm saying now is that ugly solutions are out of the question
15:04 thomasoniii Should I not be checking those environment variables I suggested? I wasn't sure if that was a best practice or not.
15:04 thomasoniii I really just want to differentiate between dev or prod environments, which I could also do by setting a flag in my conf file on the different sites, but if I had a way to do it automatically, that'd be keen.
15:04 sri if it's pretty and you've considered all the PSGI/CGI/daemon/prefork/morbo/hypnotoad possibilities... well why the hell not
15:04 batman :)
15:04 batman cool. i'll think about it.
15:05 sri thomasoniii: if an environment variable is not documented it can change in any minor release
15:05 batman can i use %ENV in the solution?
15:06 batman like $ENV{MOJO_SERVER_BACKEND} = "Mojo::Server::Hypnotoad"; or something?
15:06 sri does that seem clean to you?
15:06 sri having shit like if ($ENV{MOJO_SERVER_BACKEND} eq 'Mojo::Server::Hypnotoad') {...} in the docs?
15:07 thomasoniii What about the MOJO_MODE variable for my purposes? Since I just need dev vs prod.
15:07 batman thomasoniii: then use $app->mode
15:07 sri rofl
15:07 thomasoniii perfect. :-)
15:08 thomasoniii Is there a canonical list of mojo environment variables anywhere? I dug out this: http://larig.wordpress.com/2012/06/26/environment-variables-for-mojolicious/, but I'm guessing it's not quite canon.
15:08 batman sri: i think it's such a special case, so i'm not sure if it's bad to have it in %ENV, but i will think about alternatives.
15:08 sri really not a good start for a feature proposal
15:09 batman :)
15:09 sri the fact that thomasoniii would have used it so wrong really pushes my vote to -1 on this
15:09 batman thomasoniii: it's "production" or "development" or whatever $ENV{MOJO_MODE} is set to
15:10 batman sri: let's not discuss it further until i have a real proposal
15:10 batman :)
15:10 batman travis is making my life miserable :( https://travis-ci.org/jhthorsen/mojolicious-plugin-assetpack/jobs/36054142#L215
15:10 sh4 joined #mojo
15:10 sri i better make a note so i remember the potential for it being used wrong when you bring it up again ;p
15:11 batman ...
15:11 thomasoniii heh. FTR, as long as it's properly documented, I wouldn't use such a thing. As long as the docs say something like "This is how you figure out which server you're running on. If you merely want to determine dev vs prod, look at app->mode instead."
15:11 sri thomasoniii: it's literally part of the tutorial
15:17 thomasoniii No, the ->mode flag is part of the tutorial, which is something I read months ago back before I even had a real mojo project to work on. I'm sure I've forgotten large chunks of it.
15:17 thomasoniii But nowadays if I search for "what mojo server am I running?" I find no help. Bad idea to search for the specific server instead of a dev/prod flag? Absolutely. Doesn't help if you get a stupid idea in your head and pursue it.
15:17 thomasoniii I just think it's silly not to include a feature for fear of people using it incorrectly. My point was just that if it were to be included, and there's concern about confusion with it, then add a note to the docs saying "Hey, you probably don't want this. Go use this other thing instead" would alleviate any confusion.
15:17 thomasoniii I don't have a need for the feature, so I'll defer on its merits, though. :-)
15:19 batman thomasoniii++ # real world example :)
15:21 nicomen thomasoniii: I use this myself:     $self->app->mode('testing') if Module::Loaded::is_loaded('Test::Mojo');
15:24 nicomen Should probably have using the $ENV{HARNESS_ACTIVE} instead of if Test::Mojo is loaded though
15:29 mr-foobar joined #mojo
15:31 doublelel joined #mojo
15:39 disputin joined #mojo
16:13 _eugen joined #mojo
16:16 nicomen this is strange, I'm trying to do a Mojo::UserAgent->post to an SSL page inside a non blocking application (convos), but I get a "premature connection closed", I can do this just fine using "$ mojo get ..."
16:17 nicomen the error message is instant
16:17 batman nicomen: maybe $ua goes out of scope?
16:19 nicomen aaaaaah
16:19 nicomen haha
16:20 nicomen thanks!
16:20 nicomen that's such a confusing thingybigny
16:22 sri there is clearly demand for perl related memes on social media
16:22 nicomen batman: any specific reason why almost everything is ENV based instead of using a config?
16:23 sri posting animated gifs to twitter is kinda shitty though
16:23 batman nicomen: i will make a wild guess... are you talking about convos?
16:23 sri the imgur looked better than native twitter images
16:24 d4rkie joined #mojo
16:25 nicomen batman: haha, yes, did you guess it based on my previous sentence that mentioned convos?
16:26 nicomen :-P
16:26 nicomen I was wondering, trying to extract some bits out, but maybe it doesn't make sense at all
16:26 batman no. i guessed it because we're crazy about %ENV in convos
16:27 batman the reason why we have %ENV is because of docker i think.
16:27 batman but i have been thinking about supporting convos.conf as well.
16:28 batman we already support this: https://ssl.thorsen.pm/paste/d95f91cb73b7
16:29 batman it's not documented though.
16:29 batman i'm thinking about supporting this: https://ssl.thorsen.pm/paste/9bf4519d1c69 (because it's easy)
16:29 batman what do you think marcus ?
16:31 marcus batman: I think our goal was to make the system as self configuring as possible, and moving the things we had to have on startup to ENV. It certainly makes it easier for PAAS/docker stuff.
16:31 batman i agree. but would you mind that second paste i made?
16:32 marcus batman: I dunno. What would it accomplish? Doesn't it just confuse users?
16:32 marcus (Having multiple ways to set the same config)
16:32 nicomen batman: yews, I already set name, with the config, now also auth backend
16:32 batman it makes it possible to start two convos applications using toadfarm or the mount plugin
16:32 nicomen and log
16:33 batman nicomen: auth backend..?
16:33 nicomen yeah, authorizing with Attlassians crowd
16:33 marcus nicomen: afaik we don't support any auth backends.
16:33 batman huh? what does atlassians have to do with convos?
16:33 nicomen yes it was a small tweak
16:33 nicomen why are you guys always trying to not understand?
16:34 marcus we do have an open issue for it tho.
16:34 nicomen I, me, myself, have added authorization to convos
16:34 nicomen tweaked it into lib/Convos/Core.pm
16:34 nicomen it's a bit ugly, and should be abstracted away a bit further, but it works
16:35 marcus nicomen: Ok, we'd love to see a pull request for that if you're willing to clean it up.
16:35 nicomen I was wondering where to put appkey, password and such for the auth backend, and ended up using a convos.conf
16:35 batman marcus: maybe we need to change the LICENSE to something share-back-alike :/
16:35 nicomen marcus: sure, I was asking about ENV in case that is a preferred way
16:35 marcus batman: Fuck that
16:36 marcus I'm never doing GPL software
16:36 batman ok.
16:36 nicomen hehe
16:37 batman marcus: did you get the response to why we want to support config file?
16:38 marcus batman: Ya. I wonder, if you do it like that, and set both the ENV and config, what takes precedence?
16:39 batman ENV
16:39 batman at least in my world, it's: 1. config, 2. env, 3. command line options
16:40 marcus Ideally I'd want the critical bits to get the app to talk to a backend to be in env, and everything else in a gui admin tool.
16:40 batman my world is seeming broken though :P
16:40 batman i agree
16:40 marcus I don't even your world, batman.
16:40 marcus :)
16:40 nicomen I would normally allow ENV override conf which can override hardcoded defaults
16:40 batman nicomen: me too
16:40 nicomen if you skpi a conf, you got the current situation, noone gets harmed ;)
16:41 batman marcus: i would not bundle a config with convos. i would just document how to use it if you want one.
16:41 marcus batman: sounds ok to me.
16:41 nicomen gtg, it seems to be very nice stuff
16:41 batman marcus: ok. i'll do it...one day :P
16:41 nicomen batman++
16:42 batman marcus: sounds like we want https://github.com/Nordaaker/convos/issues/99 :)
16:42 marcus batman: add an issue to our growing backlog? :)
16:42 batman nah, i'll just do it some day.
16:42 batman it's very NOT important
16:43 marcus So it'll probably be done before the very important stuff I guess :)
16:43 batman of course!
16:43 marcus Because it's probably very easy.
16:43 batman that's how we roll
16:43 batman have you had more time to look at the delete profile pr?
16:44 marcus I think I pushed an update to that? It can be merged I guess?
16:44 batman it would be awesome if we could suggest the kiosk mode for metacpan.
16:44 batman you're assigned https://github.com/Nordaaker/convos/pull/202
16:45 marcus All done
16:46 batman marcus++
16:49 marcus Wonder if I should update my Linux to 14.10
16:49 marcus (beta)
16:51 bobkare joined #mojo
16:56 tempire whoa
16:56 tempire heroku has a "Deploy to Heroku" button
17:03 batman yeah. to bad they don't have a "don't restart my service" button :)
17:03 batman too
17:14 nicomen batman: marcus: can I log the actual IRC network output easily?
17:14 batman nicomen: MOJO_IRC_DEBUG=1
17:14 nicomen doh
17:14 nicomen thanks ;)
17:14 batman gives you output to stderr
17:15 batman you can also do "redis-cli -n 1 monitor" but it's not quite the same
17:15 fhelmber_ joined #mojo
17:34 batman marcus: i need help with https://github.com/Nordaaker/convos/pull/200
17:35 batman not quite sure where to take it from here. i need help with 1) is the iframe idea any good? 2) how do you delete an idle user?
17:52 dod joined #mojo
17:56 sri quick reminder that we need more! https://github.com/kraih/mojo/wiki/User-quotes
17:59 * genio kicks people at ThoughtWorks.
17:59 genio Mingle--
18:12 KCL joined #mojo
18:20 dp_ joined #mojo
18:22 risugg joined #mojo
18:36 doublelel joined #mojo
18:53 mael joined #mojo
18:57 mael Hi there! Is there a regular way to return early from within a template (e.g., to render the template up to a certain point for summarization) ? SO suggests return $_M but that I couldn't find a doc reference.
18:59 jberger_ mael: no no no no, that is very private
19:00 jberger_ Break your template into smaller ones and only include what is needed
19:04 mael hmm okay, I'l see into that. Thanks!
19:08 dvinciguerra joined #mojo
19:10 jzawodn hmmm
19:11 jzawodn is there some sort of, for lack of a better term, time penalty associated with starting the event loop in code designed for both sync and asnc use?
19:11 jzawodn I'm using the idiom in the docs: Mojo::IOLoop->start unless Mojo::IOLoop->is_running;
19:12 jzawodn seems like everytime I do, there's abot a 1 second pause *after* the event has finished and event loop should be empty
19:13 sri yes, it doesn't stop automatically right away
19:14 sri delays are the commonly used solution
19:16 jzawodn ahh, ok. interesting
19:16 sri Mojo::IOLoop->start unless Mojo::IOLoop->is_running is not a good idiom
19:16 jzawodn got a better on in mind?
19:16 sri delays
19:17 jzawodn interesting... ok.  I'll ponder that and fix my code.  thanks for the quick sanity check.
19:17 jzawodn (I was about to dig into the reactor code next)
19:18 sri depending on keep alive connections it may take 15 or more seconds before the event loop stops automatically
19:19 jzawodn got it.  this in particular is client code using Mojo::UserAgent to fetch stuff async (or not) from some HTTP servers
19:21 sri guess it would have been better for me not to explain it... now nobody will look into it and suggest doc improvements :(
19:21 jzawodn oh, wow.  the keepalive thing may actually explain a slow hypnotoad shutdown issues I'm seeing in other code.  you may have just answered a question I hadn't begun to look into yet
19:22 jzawodn sri is psychic
19:23 jnbek batman, I just wanted to see if there were any plans to extend Convos to allow for full bouncer behavior, like znc. I think it'd be a great addition overall, for Perl, for Mojolicious and IRC... all the IRC bouncers, web interfaces, etc are so old and ugly to use.... having something written in Perl/Mojo could energize the community overall. At least in my opinion.
19:26 Nei what's full bnc behaviour?
19:27 jamesaxl joined #mojo
19:27 jzawodn that'd be a lot more stuff to add to Convos if you want all of znc, I suspect
19:27 jzawodn (said as a very basic znc user)
19:29 * jzawodn notices this in the Delay manpage, $delay->wait unless Mojo::IOLoop->is_running;
19:29 Nei I like my irssi =)
19:30 Nei with mojo it gets a web interface too
19:30 jnbek oh, I like my weechat/xchat/quassel too, but, I want my cake and eat it too :-P
19:33 sri jzawodn: then you're using an ancient version
19:36 * sri notes that jzawodn has not given us a user quote yet
19:36 thomasoniii I'm sure such things have been done before, but nonetheless: http://pastebin.com/rfaqSGEz
19:36 thomasoniii snippet to use an after_static hook to do gzip compression of static files, while caching the gzipped file for future use. I'm content with the performance.
19:36 jzawodn sri: guity on both counts... I need to upgrade or production Mojo install to something newer.  And I should find something witty we can say about Mojo. :-)
19:36 sri \o/
19:38 Nei convos seems great for mass hosting, not necessarily for the individual geek
19:38 jnbek Mojolicious: The zero calorie guilt free Web Development tool for the Modern Programmer.
19:38 jnbek :D
19:39 batman jnbek: yeah, there's a plan, but not much time :( https://github.com/Nordaaker/convos/tree/proxy
19:39 jzawodn the delay thing works great, too... just changed that and my little test script runs nice and fast now for testing both the async and sync calls
19:39 jnbek batman: w00t!! a'ight
19:40 jzawodn Mojolicious: freeing us from the tyrany of Apache and mod_perl!
19:40 jnbek ( and dependency hell )
20:00 Akron batman: Am I wrong about what AssetPack tries to do with remote assets?
20:15 batman Akron: it's not quite the same :/ anyway... I will look at your last comment tomorrow.
20:15 batman Need to get some sleep.
20:18 batman Akron: I think maybe you're trying to solve a problem with the wrong tool :(
20:19 batman I'm reading a whole lot of "how" instead of "why".
20:19 batman I may just be tired though.
20:19 batman (And I don't like storing the $app inside the plugin)
20:20 sri batman: sounds like a fancy way to do caching
20:21 Akron You don't really need the _app though.
20:21 sri like those static blogs used to do, pre-generate the whole blog from a dynamic app
20:21 Akron batman: However, thanks.
20:24 abhishekisnot joined #mojo
20:26 garu joined #mojo
20:27 garu joined #mojo
20:31 garu joined #mojo
20:36 garu joined #mojo
20:41 garu joined #mojo
20:57 neilhwatson joined #mojo
21:13 disputin joined #mojo
21:14 sri the vanishing join/part messages in convos are driving me nuts
21:24 basiliscos joined #mojo
21:25 neilhwatson joined #mojo
21:38 Nei lol
21:39 Nei didn't you add a ignore feature to turn them off?
21:57 meshl joined #mojo
22:24 dvinciguerra joined #mojo
22:57 disputin joined #mojo
23:06 brainbuz joined #mojo
23:11 berov joined #mojo
23:12 berov1 joined #mojo
23:30 Jonneh joined #mojo
23:39 Bender joined #mojo

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