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

IRC log for #mojo, 2014-05-29

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

All times shown according to UTC.

Time Nick Message
00:28 sri i guess removing list context from Mojo::Headers::header is really simple
00:28 sri the actual values are still available through Mojo::Headers::to_hash
00:37 laouji joined #mojo
00:39 good_news_everyon joined #mojo
00:39 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/w93fJQ
00:39 good_news_everyon mojo/master 90fac4b Sebastian Riedel: removed list context support from header method in Mojo::Headers
00:39 good_news_everyon left #mojo
00:42 shmuel joined #mojo
00:42 sri 6 of the remaining 7 are for param, upload and cookie now... the other is Mojo::Message::error
00:44 rem_lex|pivo joined #mojo
00:47 zivester joined #mojo
01:05 thowe How are plugin systems for web applications generally written?  I'm just trying to figure out how I would provide a method for extending something like a CMS.  I was surprised at not finding more info via a simple search.
01:27 preaction depends. webgui requires you to extend WebGUI::Asset and keeps class names in the database, along with a couple other things. for a mojolicious plugin system, i'd list my apps and during startup, send the router to a method on that app so the app can add its own routes (i'll probably be doing this soon, so i'll be able to see how it works)
01:39 thowe INteresting.  Will the app be on github?  I'm having a hard time wrapping my head around Mojolicious stuff, but I find reading code from people who know what they are doing to help a lot.
01:41 preaction it will, but probably not for a while. i'm working on the static site generator portion right now, eventually i'll get to the dynamic editor that allows editing of the static site. http://github.com/preaction/Statocles is the static bit
01:55 klapperl_ joined #mojo
02:04 btyler joined #mojo
02:11 good_news_everyon joined #mojo
02:11 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/-EBN-A
02:11 good_news_everyon mojo/master 79823db Sebastian Riedel: merged a few entries in Changes file
02:11 good_news_everyon left #mojo
02:19 mire joined #mojo
02:49 Adura joined #mojo
03:01 zivester joined #mojo
03:12 laouji joined #mojo
03:17 laouji joined #mojo
03:26 tempire joined #mojo
03:29 tempire joined #mojo
03:32 zivester joined #mojo
03:53 jberger preaction: Statocles sure has a lot more code than the last time I saw it! I'm looking forward to checking it out sometime soon
03:55 preaction jberger: yep! things are going rather smoothly now. i'm just about ready to switch chicago.pm.org over to it (minus a bunch of planned features, but without needing to set up ruby, using the Perl that most Perl Mongers should already have installed)
03:57 jberger preaction += 3
03:58 jberger tell Amanda to give me an afternoon to look at it with you (no don't do that)
04:00 preaction heh
04:04 russum joined #mojo
04:10 irq joined #mojo
04:10 laouji joined #mojo
04:19 russum joined #mojo
04:20 genio joined #mojo
04:30 cfedde can a mojo::dom object be pretty printed?
05:01 Guest-quest joined #mojo
05:02 Guest-quest hi, why $c->req->url->host not work?
05:08 crab Guest-quest: something must be wrong
05:09 denis_boyun joined #mojo
05:09 Vandal joined #mojo
05:13 Guest-quest crab: the request is ajax
05:19 laouji joined #mojo
05:19 Guest-quest what must be wrong?
05:19 denis_boyun joined #mojo
05:24 denis_boyun_ joined #mojo
05:30 Guest-quest okay ->to_abs, thanks
05:33 denis_boyun joined #mojo
05:33 ver joined #mojo
05:44 crab hmm.
05:44 crab isn't the format() example in Mojo::Log wrong?
05:44 crab as far as i can tell, you have to call ->format(sub { return ref-to-real-sub })
05:45 crab or am i on crack?
05:46 crab guess i'm on crack.
05:49 crab yep.
05:50 preaction well, you've got that going for you, which is nice
06:04 cpan_mojo Statocles 0.006 by Doug Bell - http://metacpan.org/release/PREACTION/Statocles-0.006 (depends on Mojolicious)
06:04 preaction nice, cpan_mojo beat GumbyPAN
06:07 laouji_ joined #mojo
06:07 crab sri: "fixed ";" handling in Mojo::Parameters to be compliant with the HTML Living Standard" (commit 2d1cf0)
06:08 crab sri: out of curiosity, can you explain what motivated that change? i'm not objecting, i just want to understand, because i can't see where the html living standard says anything about it.
06:17 Claudio joined #mojo
06:19 preaction the whatwg URL standard is convoluted, but it seems to say that the URL query string must conform to application/x-www-form-urlencoded (which requires &). i seem to remember that w3c's URLs could have both, but form post data still required &
06:20 laouji joined #mojo
06:20 preaction i switched back to & because a few bits of MS software do not recognize ; as a pair separator at all
06:21 crab preaction: got a link to said text?
06:21 crab i stumbled over this because i had some foo=bar;baz=quux parameters in a test.
06:22 crab i've already switched to using &. i don't really care. but i'm curious.
06:22 preaction it's convoluted, but this link defines the URLSearchParams object http://url.spec.whatwg.org/#concept-uq-new, and at the end it says the "stringifier must return the _serialization_ of the URLSearchParams object's..."
06:22 preaction _serialization_ is a link to the definition of application/x-www-form-urlencoded
06:23 crab and for serialization, it says: "If this is not the first pair, append "&" to output."
06:23 preaction which, in section 6.1, defines only & as a valid pair separator
06:23 crab i get it now. thanks.
06:23 preaction yeah
06:23 preaction took me since you asking the question to find it all :p
06:24 * preaction still pissed that & and not ; is the separator
06:25 crab yeah
06:25 crab ; is much nicer
06:36 dexteruk joined #mojo
06:45 irq joined #mojo
06:58 eugen joined #mojo
07:08 edestler joined #mojo
07:10 dotandimet joined #mojo
07:32 ver joined #mojo
07:43 trone joined #mojo
07:47 Ralesk yep
07:47 Ralesk doesn't clash with SGML/XML entities either
07:50 Ralesk but hey, as a friend of mine says: Humans will always choose VHS.
07:51 preaction i just spent the last two hours waxing philosophical about the bass-ackwards direction the web seems to be taking: towards rigidity and content providers "visions" and away from users consuming content however they want
07:52 preaction there's an HTML5 proposal for giving a website your device's battery status
07:53 preaction there's also one for allowing a web page to adjust itself for the ambient light conditions
07:53 Ralesk heh
07:54 preaction http://status.modern.ie/ <- some of this stuff is really cool, but a couple of them are just "WTF"
07:57 preaction others are more "I remember this when it was called SMIL"
07:57 preaction the barrier to entry for a web rendering engine is amazingly high these days...
08:00 shmuel_ joined #mojo
08:11 crab SMIL!
08:11 crab wow, preaction, you must be an old fart. :-)
08:17 basiliscos joined #mojo
08:39 dotandimet joined #mojo
08:44 omega is there a way to make a catch-all route?
08:45 laouji joined #mojo
08:51 laouji joined #mojo
08:55 batman omega: get('/*everything', [ everything => '' ]) iirc
08:56 batman it might be get('/*foo', { foo => '' }); though
08:56 nic omega: http://mojolicio.us/perldoc/Mojolicious/Guides/Routing#Wildcard_placeholders
08:57 batman omega: i think you could also do around_render which does things when not_found template is supposed to be rendered
09:03 omega hm, ok
09:03 omega I tried get '*', but that gives 404 for /
09:04 batman "*" isn't a placeholder. you need a name
09:04 batman "/*foo" and a default value to catch just "/"
09:05 batman $r->get("/*foo")->to("catchall#wildcard", foo => "");
09:06 omega ok
09:09 omega batman: what surprised me is that get '*' will catch anything except /
09:09 omega that's why I was wondering
09:12 meshl joined #mojo
09:15 omega but thanks, get '/*foo', { foo => '' } works
09:15 omega batman++
09:16 batman \o/
09:16 batman omega: you're welcome
09:26 mport joined #mojo
09:37 Jonneh joined #mojo
09:38 laouji joined #mojo
09:40 Jonneh joined #mojo
09:41 laouji_ joined #mojo
09:54 arthas joined #mojo
10:11 nic Anyone got their naming head on?
10:11 nic Got two 'load' methods: one completely splats the previous data, one adds incrementally
10:12 nic I guess it should be the same method, with a param
10:13 riche Did 5.0 get released?  I am anxiously awaiting the new form validator
10:20 jnbek joined #mojo
10:26 bc547 nic: load_all  and load_incr(emental) ?
10:43 mire joined #mojo
10:44 nic ta
10:52 alnewkirk joined #mojo
11:10 Jonis riche: I think sri said it might be today.
11:17 riche cool thx
11:23 denis_boyun joined #mojo
11:26 crab is it worth documenting that move_to will overwrite the target if it exists?
11:26 d4rkie joined #mojo
11:27 jberger crab: that is how mv works
11:27 crab yes
11:27 jberger but I guess it can't hurt to be explicit
11:27 crab that's the behaviour i want.
11:27 crab but it took a little effort to make sure that's how it always behaves.
11:35 mire joined #mojo
11:46 neilhwatson joined #mojo
12:06 sri yea, i think we'll release 5.0 today
12:06 sri unless too many changes happen ;)
12:07 oetiker joined #mojo
12:09 riche okays .. I am buried with work, so it probably is wishful thinking to discover it "ASAP"
12:09 rblackwe joined #mojo
12:11 riche verifying I can use mojo for a pretty serious govt system
12:18 sri specifically i've been looking for an implementation of Mojo::Message::error that doesn't involve wantarray http://mojolicio.us/perldoc/Mojo/Message#error
12:19 sri and of course i'm still thinking about the other uses of wantarray for param-ish stuff
12:19 marcus jberger: lets still do Mojo::Pg, I really hate that PgAsync is a plugin.
12:19 sri +1
12:19 purl 1
12:22 jberger marcus: agreed, I finally have some time tonight to look at it for real
12:34 * Ralesk is such a noob, but how will a non-plugin be different? :)
12:37 Ralesk or better or something
12:39 sri plugin means it doesn't work standalone
12:39 dod joined #mojo
12:39 sri minion is an example for how to do it right, standalone *and* plugin
12:39 sri hmmmmmm
12:40 sri i guess $msg->error({msg => 'Something went wrong.'}) would be the only way to make it work without wantarray
12:40 sri $msg->error({msg => 'Something went wrong.', code => 312});
12:42 sri if (my $err = $msg->error) { say "Bad status $err->{code}" if $err->{code}; say "Error $err->{msg}"; }
12:43 * sri shrugs
12:48 r0b3rt make a new class?   Mojo::Message::Error  if(my $err = $msg->error) { say "Bad status $err->code() if $err->code(); say "Error $err->message()"; }
12:49 sri and what's the advantage of that?
12:49 purl the advantage of that is that you can choose to refactor DBIx::Class et al, moving code from dduncan's glue module to my own, without worrying about licensing implications
12:49 r0b3rt defined API instead of special hash keys
12:51 sri whatever i define is a defined API
12:59 gryphon joined #mojo
13:01 cpan_mojo Mojolicious-Plugin-PlackMiddleware 0.30 by Sugama Keita - http://metacpan.org/release/JAMADAM/Mojolicious-Plugin-PlackMiddleware-0.30
13:02 riche i would have to agree with sri, imo it's doubtful an error message has behavior itself ...
13:06 dexteruk joined #mojo
13:07 btyler joined #mojo
13:14 jb360 joined #mojo
13:29 asarch joined #mojo
13:30 zivester joined #mojo
13:40 sri this would be the full patch for changing it http://pastie.org/9235273
13:40 riche marcus: before adding web-mode reference to mojo wiki, did you try to use it?
13:41 riche emacs web-mode
13:41 marcus riche: I don’t use emacs ever
13:41 riche the default extension is 'epl'
13:42 marcus old school
13:42 purl somebody said old school was ONE SCRIPT PER RUNLEVEL
13:42 sri marcus, jberger, tempire, crab: i'm interested in your opinion on the patch, it removes the last non-param-ish use of wantarray
13:43 marcus sri: +1 from me
13:43 marcus Going to a bbq now
13:44 crab sri: i just finished reading the diff.
13:44 crab it looks ok i suppose
13:44 crab i suppose this is just to encourage good behaviour? because in a way non-param-ish uses of wantarray are the harmless ones, aren't they?
13:45 sri well, using it as an attack vector is unlikely, but you never know
13:46 sri i can totally see people do $self->render(json => {error => $tx->error})
13:47 crab hmm, that would fail to render as valid json, right?
13:48 sri depends if it's just an error message or a message and a code :)
13:48 crab the latter
13:48 purl the latter is better
13:48 crab no, the latter is worse
13:48 purl okay, crab.
13:48 crab !@#
13:48 crab sri: no objection (to the patch) from me.
13:48 sri uneven number of elements, BOOM
13:49 crab i have one line of code in multiple projects that would be broken by that change, but it's easy to grep for and change
13:49 btyler joined #mojo
13:49 crab (as long as you grep -v "log->error", of course)
14:02 good_news_everyon joined #mojo
14:02 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/0cs4xA
14:02 good_news_everyon mojo/master 862b766 Sebastian Riedel: changed return value and arguments of error method in Mojo::Message
14:02 good_news_everyon left #mojo
14:02 sri positive side effect is that the hash allows us to store more meta information about parser errors
14:02 sri we can now differentiate between actual error codes and codes the parser recommends for the response to an error
14:03 sri now code and advise
14:03 wait4it joined #mojo
14:09 good_news_everyon joined #mojo
14:09 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/UMDfEQ
14:09 good_news_everyon mojo/master 81ea5fa Sebastian Riedel: link to success method in description of error method
14:09 good_news_everyon left #mojo
14:11 crab sri: sounds good to me
14:11 crab sri: what did you think about my question earlier about documenting that move_to overwrites the target if it exists?
14:11 crab (to be clear, that's the behaviour i want.)
14:12 sri crab: is it tested?
14:14 crab nope. but i contend that it should be.
14:15 sri ok, i'm indifferent on making it a feature
14:15 mport joined #mojo
14:15 crab afaict, the intention is such, and the two implementations do behave that way.
14:20 sri oh, marcus is so close to filtering out those annoying twitter search results :)
14:20 marcus sri: I managed now.
14:21 sri OMG
14:21 D4RK-PH0ENiX joined #mojo
14:21 marcus Am a bit on the fence on wether I should filter out non english results or not
14:21 marcus I kind of like those smatterings of .jp and .ru - at least they are relevant.
14:23 crab filter out of what?
14:24 wait4it left #mojo
14:26 genio
14:31 marcus crab: my twitter search for mojolicious
14:40 cfedde I have an app that uses Mojo::IOLoop.  How do I get Test::Mojo to wait for outstanding callbacks?
14:45 dexteruk joined #mojo
14:47 Ralesk good question which one, that's all I remember from his name. Thin with a small beard, writes some editor in ncurses and P6 :)
14:47 Ralesk not here
14:47 Ralesk bad up+enter
15:05 sri marcus: BUT HOW?!
15:05 cpan_mojo Mojolicious-Plugin-Util-Callback 0.04 by Nils Diewald - http://metacpan.org/release/AKRON/Mojolicious-Plugin-Util-Callback-0.04
15:06 marcus sri: search for mojolicious -@mojolicious_ -from:@mojolicious_
15:06 sri marcus++
15:06 sri \o\
15:06 sri /o/
15:07 cpan_mojo Mojolicious-Plugin-PubSubHubbub 0.11 by Nils Diewald - http://metacpan.org/release/AKRON/Mojolicious-Plugin-PubSubHubbub-0.11
15:10 sri allright, now all we need is a solution for the wantarray param thing -.-
15:25 bluescreen joined #mojo
15:29 * cfedde shouts into a well.
15:34 bjoernfan What terminal do you osx guys use?
15:34 good_news_everyon joined #mojo
15:34 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/xxwDxQ
15:34 good_news_everyon mojo/master 3c74b0e Sebastian Riedel: better tests for message parser
15:34 good_news_everyon left #mojo
15:35 sri default terminal with custom theme
15:35 dotandimet joined #mojo
15:35 dotan bjoernfan: iterm2
15:36 dotandimet joined #mojo
15:36 dotan it has split windows and stuff.
15:37 bjoernfan I'm using tmux for that, when tabs arn't enough
15:39 dotan I saw Akron uses emacs for that, looked very hardcore.
15:40 eugen joined #mojo
15:40 bjoernfan Well I do have splits in vim as well, but maybe he's running shells in emacs?
15:41 crab sri: what does advise => 400 mean?
15:41 sri what the parser thinks the framework should use for the response
15:41 D4RK-PH0ENiX joined #mojo
15:41 crab ok, then it should be advice, everywhere.
15:42 crab but it's not a very good name, i think.
15:42 * crab thinks
15:45 crab can't think of a short name. only recommended_code or such. sucks.
15:45 crab advisory_code might be good, though.
15:46 good_news_everyon joined #mojo
15:46 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/dvvocQ
15:46 good_news_everyon mojo/master d2a4eb5 Sebastian Riedel: fixed typo in error structure
15:46 good_news_everyon left #mojo
15:47 cpan_mojo Task-MojoliciousPlugins-PerlAcademy 0.01 by Renee Baecker - http://metacpan.org/release/RENEEB/Task-MojoliciousPlugins-PerlAcademy-0.01
16:00 dotandimet joined #mojo
16:17 edlm10 joined #mojo
16:24 tempire error modification seems good to me
16:24 tomboh joined #mojo
16:24 tempire the ability to store more metadata is ideal
16:24 tempire and the eventual destination of logging
16:27 * tempire doesn't understand  Mojolicious::Plugin::Util::Callback
16:30 * tempire is learning why training is always targeted towards corporate clients
16:32 riche training business is tougher than you think, we've been in it for years
16:34 riche delivering training is the easy part. selling is the hard part.
16:34 perk joined #mojo
16:37 basiliscos joined #mojo
16:38 rblackwe /whois tempire
16:38 tempire whois, indeed
16:38 rblackwe heh
16:39 rblackwe I had a brain misfire and forgot your name :)
16:39 rblackwe (and a space)
16:39 sh4 joined #mojo
16:39 rblackwe working one a hardware thing for YAPC::NA that I will be sending you email about.
16:40 tempire I was just now looking at drones.
16:40 rblackwe Woot!
16:41 rblackwe did you see Timm has a talk on them and will be at the hardware hackathon with drones
16:41 tempire cool
16:41 tempire Especially after seeing tweets about droning at JSConf
16:41 tempire I want to have a drone-tastic talk next year @ mojoconf
16:41 rblackwe I was at this talk. http://vimeo.com/72709097
16:41 rblackwe Friendly Flying Robots with Ruby
16:41 rblackwe The audience was thrilled.
16:42 tempire No doubt.
16:42 tempire I need to get comfortable with drones so that I can apply some machine learning to them.
16:42 rblackwe I have some more tuits and trying to launch :) http://hardware.pm.org/ again.
16:42 tempire SOMANYTHINGS
16:42 rblackwe Oh I know. TOOMANYTHINGS.
16:43 rblackwe The Internet of Things is here and has been since the Internet was started.
16:44 rblackwe That said I want to prepare the Perl for the Internet of Things and such and apply our community on IofT.
16:44 rblackwe you know mojoify the IofT and such.
16:44 rblackwe Everything thing is hard until someone makes it easy.
16:44 tempire indeed
16:45 rblackwe The hardware/software lines have long been blured but traditional EE still catching up and most SE have no clue.
16:45 rblackwe Ugg I have a 1:00 meeting
16:46 rblackwe Is the email on your github good to send to?
16:47 tempire yes
16:51 mire joined #mojo
16:54 oetiker joined #mojo
17:01 irq joined #mojo
17:05 cfedde are my posts visible here?
17:06 Adura Posts... where?
17:06 purl posts are no big deal. actually :)
17:07 cfedde thanks.
17:07 Adura Confusing.
17:07 purl i heard confusing was there is also a SHA1 that isn't core, IIRC
17:10 dotan jberger talked about stacktraces from callbacks - I saw this in the YAPC program http://www.yapcna.org/yn2014/talk/5376 which talks about Callback::Frame
17:11 asarch joined #mojo
17:13 denis_boyun joined #mojo
17:19 disputin joined #mojo
17:33 sri allright, i guess unless someone has a last minute idea for getting rid of wantarray, i think we'll very soonish release 5.0
17:36 Akron joined #mojo
17:37 sri in case anyone wants to try, i guess Mojolicious::Controller::cookie and Mojolicious::Controller::signed_cookie are the easiest targets
17:38 sri Mojolicious::Validator::Validation::param might be even easier
17:38 Akron tempire: M::P::U::Callback is just a convenient pattern for plugin communication. Has nothing to do with non-blocking or other magic.
17:40 Akron dotan/bjoernfan: Jepp - most of the time I've got at least one shell buffer in my emacs.
17:46 jim joined #mojo
17:47 Adura param('foo') and params('foo', 'bar') separates scalar and list nicely.
17:48 jim Hello: I have a plugin created for app1 and want to use it for app2. Whhat's the best way of reusing this kind of inhouse plugins?
17:48 jim what kind of directory structure should I be creating among many mojo applications?
17:50 sri Adura: param/params, upload/uploads, cookie/cookies, signed_cookie/signed_cookies?
17:50 Adura If you want each method to be as lean as possible... I guess?
17:50 sri not to mention the fact that upload/uploads and cookie/cookies already exist on lower layers
17:51 Adura Well, that's a problem.
17:56 riche jim: if you can't install it to your perl site then I would just add it to INC in BEGIN block
17:58 jim riche: I have app1 app2 ... in mojo directory, so should I create a directory called shared in mojo directory as well?
17:58 jim I can't install the plugin to perl's installation directory
17:59 riche yes, I do the same thing not just to share code but to switch between versions, and use environment variable to control which one
17:59 mire_ joined #mojo
18:01 jim Thanks Riche, will do.
18:17 Adura Some sort of var binding dealy? $v->param(@names); $v->param($foo, 'foo'); $v->param(@foo, 'foo'); $v->param(@foobar, 'foo', 'bar');
18:20 Adura Yes, forgot the \ in front of the sigils.
18:21 Adura If the first argument isn't a ref, you can still do the former behaviour and warn it's deprecated.
18:22 disputin joined #mojo
18:50 meshl joined #mojo
18:50 sri hmm...having trouble figuring out how to embed my speakerdeck slides on tumblr :S
19:02 Akron joined #mojo
19:07 Akron jim: You can add plugins from various namespaces using $mojo->plugins->namespaces .
19:08 Akron http://chrisdone.com/posts/haskell-lang has some pretty good points regarding language/framework sites.
19:19 riche Akron: he's not asking that
19:21 Akron riche: I thought he asked for reusing inhouse-plugins: http://irclog.perlgeek.de/mojo/2014-05-29#i_8791638
19:22 riche yah he just wants to share them via filesystem, he just needs to add to INC because he can't install to the perl site dir
19:23 riche the plugin is either a) already in the std namespace or b) it's not in the std namespace and he's already using that method
19:23 Akron Ah - okay. Sorry.
19:23 riche so he just need to pull it out of app1 and put it in a 'shared' dir and and that to INC
19:24 riche eh nothing to be sorry ;) I just didn't want to confuse him
19:26 Akron riche: Sure. Yes - makes sense.
19:27 riche hey you know yesterday sri said render_partial had been in mojo for a while ... but I can't find it, at least in 4.99
19:28 riche Now I have a case for it since I want to reuse template snippet
19:31 Akron The functionality is render(partial => 1) in current versions. And "include" in templates.
19:32 riche thx ... I just never had a case for it before but I will need it for this tender I'm working on
19:36 jim Akron and riche, thank you, i'll look at the link, quick question, in what case do you create a new app in what case do you create a new controller?
19:36 Akron render_partial() was removed in the last major version - also without deprecation. That's funny.
19:37 jim if I have just one app and multiple controllers I can avoid lots of code sharing problem.
19:37 riche jim: the question i would have is what constitutes an app in your context?
19:37 jim currently I have many small or medium sized apps
19:38 jim many of my apps right now is only single page, and it does one specific task, for example, updating some configuration files.
19:38 Akron I like one app to rule them all. ;)
19:38 riche lol
19:38 jim some other apps do some other chores
19:39 jim and now I use the mount plugin to launch them all
19:39 * sri writes the 5.0 release announcement
19:39 sri NO MORE CHANGES, MASTER IS FROZEN!
19:39 riche maybe I work too much in the enterprisey world, but i can only say you should group them in domain -> components as part of your inventory and then you will have a better idea where consolidation can happen
19:40 jim one app can be as big as a whole website correct?
19:40 riche cagrats sri
19:40 sri don't jinx it :)
19:41 riche jim: not going to say one way or the other unless there is domain->component analysis
19:41 riche we have one app where the route list is huge and it is really annoying to manage
19:41 jim riche: they are currently accessed like this host:8080/app1 host:8080/app2 etc...
19:42 mire_ joined #mojo
19:43 jim and app1 and app2 etc may have a few routes, we use one single domain, and each app is a component.
19:44 tianon cagrats sound kind of scary
19:44 jim wow 5.0 is out? i need upgrade now
19:44 tianon I wouldn't want to meet a cagrat in a dark alley
19:44 riche do they all perform the same kind of work, like config file work?
19:44 jim riche, no, it is pretty diverse
19:45 jim riche: but hey are all internal toos
19:45 jim tools
19:45 jim some are monitoring dashboards for example
19:46 riche tianon: thanks for noticing my sloppy typing
19:46 tianon :D
19:47 Akron \o/
19:48 jim so for app1 and app2 I am now having two copies of the same jquery.js and other external libraries residing in public causing some duplication.
19:48 riche jim: if it's not too much trouble I would keep them separate.  sharing the plugin is not a bit deal, and combining them is a lot of work
19:49 riche and if you make a change to one "app" ... you taint the whole load
19:49 riche just my opinion
19:49 jim I see, we have lots storage, so that's not problem:P will do.
19:49 cooper joined #mojo
19:53 dvinciguerra joined #mojo
19:56 marcus sweet, they added mojo to https://github.com/showcases/web-application-frameworks
19:57 sri \o/
19:57 sri Jonis++
19:58 sri guess that's how it works after all :)
19:59 marcus I also nudged a github employee on an irc channel, but I’m not sure what worked
20:02 denis_boyun joined #mojo
20:05 disputin joined #mojo
20:15 good_news_everyon joined #mojo
20:15 good_news_everyon [mojo] kraih tagged v5.0 at 5407b76: http://git.io/feJtvA
20:15 good_news_everyon left #mojo
20:15 bjoernfan \o/
20:16 Jonis bjoernfan: I use iterm
20:16 cpan_mojo Mojolicious 5.0 by Sebastian Riedel - http://metacpan.org/release/SRI/Mojolicious-5.0
20:16 neilhwatson And there was much rejoicing.
20:16 purl yay.
20:16 bjoernfan Jonis: For any particular reason?
20:16 Jonis bjoernfan: nice tabbing and split screens
20:17 good_news_everyon joined #mojo
20:17 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/Kj3o9w
20:17 good_news_everyon mojo/master 5ee483d Sebastian Riedel: bump version
20:17 good_news_everyon left #mojo
20:17 Jonis ooooh
20:17 Jonis 5.0 !
20:19 dotandimet joined #mojo
20:22 batman 5.0 breaks -a-lot- of my code :/
20:22 * batman need to start fixin
20:22 sh4|2 joined #mojo
20:32 sri http://blog.kraih.com/post/87229338726/mojolicious-5-0-released-perl-real-time-web-framework
20:32 sri i wanted the speakerdeck at the top... but couldn't get that to work
20:34 Jonis sri: I guess it pulls info about what to put on that page based on the description of the repo, so if a bit more PR is wanted that could be upated? :)
20:34 batman https://twitter.com/marcusramberg/status/472113034924916737 :)
20:34 Jonis re: github webapp frameworks
20:34 denis_boyun joined #mojo
20:37 marcus I use iTerm too btw
20:38 marcus lol, according to github, 5.0 was the 400th release
20:38 marcus fun coincidence
20:39 Jonis :D
20:39 Jonis jonis@jonis:~$ sudo cpanm Mojolicious
20:39 Jonis --> Working on Mojolicious
20:39 Jonis yay
20:40 neilhwatson Congrats on 5.0. Looking foreward to bring my app to its knews with 5.0 ;)
20:40 Jonis wait, there's a mailing list?
20:40 Jonis me--
20:41 Jonis oh, the google forums
20:41 Jonis me++
20:42 sri you know... if i was more into email i would totally build a better google groups
20:43 neilhwatson Would be hard pressed to build a worse one :P
20:43 sri :D
20:44 Jonis sri: probably good to make a Mojolicious 5.0 post in the group so it goes out in mail as well :)
20:44 neilhwatson Would like to see a mojolicious alternative to Wordpress.
20:45 sri Jonis: i've not done that since like 0.8 or so ;p
20:45 sri but yea, a topic would be good for collecting upgrade problems
20:46 denis_boyun joined #mojo
20:46 sri i bet render_to_string will cause a few questions
20:54 sri https://groups.google.com/forum/#!topic/mojolicious/PYfjHyVj26w
20:57 good_news_everyon joined #mojo
20:57 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/u0-d4Q
20:57 good_news_everyon mojo/master 0424b5c Sebastian Riedel: a new Perl has been released
20:57 good_news_everyon left #mojo
20:59 marty wow, 5.0!!  Whoopie!!  sri++
20:59 sri are we doing hackernews?
21:00 marty seems like just yesterday sri was announcing 1.0 .   How time flies
21:00 sri oh well, i've submitted it to hackernews
21:00 marty or perhaps, how mojolicious flies.   wakka wakka
21:00 tempire ah
21:00 tempire I was about to do it
21:00 sri https://news.ycombinator.com/newest
21:00 sri tempire: HAHA
21:01 sri all the precious karma
21:01 sri you can have reddit if you like
21:01 tempire hmm
21:01 tempire self-hosted evernote
21:02 tempire neat
21:02 tempire reddit and I are not friends
21:02 perk joined #mojo
21:03 sri Oo
21:07 Jonis I reaped all the beautiful perl 5.20 karma off /r/perl :D
21:11 sri oh well, give me all your karma! http://www.reddit.com/r/perl
21:12 basic6 joined #mojo
21:13 sri and http://www.reddit.com/r/programming/
21:13 sri phew
21:14 Jonis oh, Mojo::IRC broken because generate_port
21:14 * Jonis goes to look
21:14 sri btw. if you want to upvote mojolicious on hackernews, do not follow links, it tracks the referrer and ignores your vote
21:14 sri and many more such tricks...
21:15 sri Jonis: for a quick fix there's still Mojo::IOLoop::Server->generate_port
21:15 Jonis sri: thanks, just found it in the history :)
21:16 sri but long term i recommend listening to a random port http://mojolicio.us/perldoc/Mojo/IOLoop#server
21:21 sri oh, hackernews frontpage
21:22 tempire We never put mojoconf on there, did we?
21:22 tempire I never think about hackernews anymore. not since all the stress I had with the mojocasts
21:24 edlm10 left #mojo
21:24 sri mojoconf had pretty much no marketing whatsoever
21:32 tempire Well
21:33 tempire I think it should be in Norway next year
21:33 tempire And we'll start marketing it 5 months in advanced
21:33 tempire *advance
21:33 tempire I'd like to have a non-blocking and basics training track
21:33 tempire And the non-blocking will cover supplies, because sri is going to figure that one out
21:34 Jonis mojocasts were my intro to basic mojo stuff, I thoroughly enjoyed them
21:35 russum1 joined #mojo
21:38 sri tempire: you're right, that image at the top makes the posts pop :) http://ironman.enlightenedperl.org/
21:38 tempire ha
21:38 tempire bam
21:38 tempire leave it to the mojolicious people to figure out the marketing first
21:40 * tempire sprinkles magic rainbow dust on sri to figure out the memory leak issue with supplies
21:40 Jonis next time I'm bringing edible glitter
21:41 Jonis I know it exists
21:41 sri i still got the whole bottle ;)
21:41 tempire I have some edible glitter on my desk
21:41 tempire ordered 2 types
21:41 tempire the kind I got turned out not to be real glitter
21:42 tempire it's more like little flakes
21:42 tempire I was disappointed
21:43 Jonis :(
21:43 Jonis tempire: there is edible flakes of gold
21:43 sri TIL edible glitter is a thing
21:43 Jonis well, there are
21:45 stephan48 the next mojoconfs motto: edible glitter
21:46 sri tempire's favorite drink http://www.neonsource.com/point-of-purchase-displays/wp-content/gallery/bottle-glorifiers/bottledisplay_goldschlager.jpg
21:46 tempire You know
21:46 tempire coincidentally, goldschlager was the first alcohol I ever tasted
21:46 tempire I enjoyed the burn
21:46 stephan48 haha
21:46 sri haha
21:47 Jonis haha
21:47 tempire haha
21:47 bluescreen_ joined #mojo
21:48 sri glitter, the herpes of crafting supplies
21:52 sri i did not actually open the box, but somehow it found its way into all the corners of my bag
21:53 punter joined #mojo
21:55 Jonis I dated a girl many years ago wore a lot of UV glitter.
21:56 Jonis Woke up with glitter in the most unexpected places
22:01 basic6 joined #mojo
22:03 disputin joined #mojo
22:13 sri :D
22:46 d4rkie joined #mojo
22:48 Jonis here I am trying to figure out testing with IOLoop when I should be sleeping.
22:50 * sri is reading up on tornado
22:51 sri apparently they've done some neat things for async debugging... but i can't quite grok it yet https://github.com/tornadoweb/tornado/blob/master/tornado/stack_context.py
22:52 disputin joined #mojo
22:53 Jonis I could hear the whoooosh as that flew straight over my head.
22:53 Jonis "This is slightly magic"
23:04 * sawtooth is Building and testing Mojolicious-5.0 ...
23:09 lb joined #mojo
23:16 tianon ooh, one of sri's favorite debates: https://code.google.com/p/go/issues/detail?id=4800
23:17 tianon which headers to propogate on POST redirect
23:21 sri oh noes
23:26 Jonis If you'd want to test a failed connection, is Mojo::IOLoop::Server->generate_port the best way to get a port that's not in use?
23:26 sri as in failed connect?
23:26 Jonis yeah
23:26 sri it's what i use for that case
23:27 Jonis ok :)
23:27 sri it's not 100% reliable though
23:27 sri if you run many tests concurrently there's a race condition where someone else will pick up the port in the meantime
23:28 sri very very rare, but you should be aware of it
23:28 sri that's the reason why Mojo::IOLoop->generate_port is gone, normally you shouldn't do this stuff
23:29 Jonis yeah, I figured it was something like that
23:29 Jonis Some of the tests for Mojo::IRC were broken because of it, so it was a good opportunity to figure out a little bit of IOLoop stuff :)
23:30 sri :)
23:38 good_news_everyon joined #mojo
23:38 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/mgEd5Q
23:38 good_news_everyon mojo/master e3b5881 Sebastian Riedel: added example for listening on random port with Mojo::Server::Daemon
23:38 good_news_everyon left #mojo
23:54 Akron joined #mojo

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