Camelia, the Perl 6 bug

IRC log for #mojo, 2013-02-16

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

All times shown according to UTC.

Time Nick Message
00:02 sri of course the posterous migration tool doesn't work...
00:17 Molaf_ joined #mojo
00:33 sri dammit... i'll just wait for posthaven to have a one click importer -.-
00:34 sri hahaha... of course they are down already
00:48 sri ok, i give up, no more blogging for me :S
00:51 sri marcus: if you want to set up some shared mojolicious blog, now is the time
01:25 phillipadsmith sri: not like the posts have been flying off your typewriter or anything… ;)
01:28 phillipadsmith What are the +/- for running Mojo apps through Hypnotoad vs. one of the Plack options? I'm still a bit fuzzy on this, even more so when the requests are going to be proxied via Apache to whatever is running the app …
01:36 mattastrophe joined #mojo
01:44 asarch joined #mojo
01:59 jberger phillipadsmith, the biggest that I can think of is websockets
01:59 jberger only the mojo servers provide the websockets
01:59 Miked joined #mojo
01:59 phillipadsmith jberger: so if I'm not using WS then no major advantage/disadvantage?
01:59 jberger not that I know of
02:00 jberger other than the obvious reason you would use each in the first place
02:00 phillipadsmith And in terms of Twiggy, Starman, and all that?
02:00 jberger morbo gets the auto-reloading
02:00 phillipadsmith Morbo, or Hypnotoad?
02:00 jberger hypnotoad and the preforking/graceful restart
02:00 phillipadsmith Ah, right, okay… but morbo is more for development, no? That's how I was reading it
02:01 jberger morbo is for dev because you don't have to stop and restart the server when you make changes to the source
02:01 jberger it notices and reloads when necessary
02:02 phillipadsmith Yep. Was using that. Then switched to placket for the debug panels
02:02 jberger I don't know the advantages/disadv of the placky servers
02:02 phillipadsmith (which can also do reloads)
02:02 jberger debug panels?
02:02 phillipadsmith okay, cool, thanks… guess I should do some reading this weekend
02:03 phillipadsmith jberger: yah, Plack has "middleware" that slips in between the request and the app
02:03 phillipadsmith http://search.cpan.org/dis​t/Plack-Middleware-Debug/
02:03 jberger you can use middleware with mojolicious
02:03 jberger oh, but you have to use those servers
02:03 phillipadsmith directly?
02:03 jberger right ok
02:03 jberger no I think you are right
02:03 phillipadsmith that would be a first. :)
02:04 jberger I don't use middleware (not for any reason), so I'm not very familiar
02:04 jberger I just remembered that I had read that you can, but then I remember that you can IF
02:04 jberger :-)
02:05 phillipadsmith Heh
02:06 mattastrophe joined #mojo
02:06 phillipadsmith So, when folks here in #mojo "deploy" an app to production, what's the most common approach?
02:08 sri http://mojolicio.us/perldoc/Mojoli​cious/Guides/Cookbook#REALTIME_WEB
02:08 sri that's what you're missing out on
02:08 sri all of it
02:10 sri hmmm, i might just import everything the hard way into tumblr :S
02:10 sri http://kraih.tumblr.com # starts to look decent
02:14 phillipadsmith sri: I am dealing with a web service that has some latency; so, looking at the first example at that link (the get request to Twitter), what's the material difference? (apologies for being dense here.)
02:15 sri it's non-blocking
02:15 sri with PSGI you don't get non-blocking features
02:16 phillipadsmith meaning the server itself can handle other requests, but that specific request will still need to wait for a response no?
02:16 sri yes
02:16 sri or you could do parallel requests
02:17 sri multiple queries to mongodb with mango
02:17 phillipadsmith And if apache is in front of that scenario and proxying requests to hypnotoad, does all of that fall apart?
02:17 sri no
02:20 phillipadsmith oh, okay, that's cool
02:26 phillipadsmith sri: in terms of performance, let's say in that Twitter example, what's the difference in requests served blocking vs. non-blocking (just out of curiosity)?
02:29 sri depends on latency
02:30 phillipadsmith but, I mean, let's say that you get 100 requests to the same route using a non-blocking get request to Twitter, but Twitter's not responding, what's the upside?
02:33 * phillipadsmith is glad that people are patient. :)
02:36 phillipadsmith I'm mostly asking because I'm literally typing out a subroutine in this mojo app that queries a Web service. The Web service doesn't have a bulk query interface, so I have to hit it 5-8 times just for this one route to get back the required data, and the request time jumps from 3 seconds to 10 if I include this subroutine. So I'm thinking of moving it
02:36 phillipadsmith client-side and doing it after the page renders.
02:36 phillipadsmith I don't think that non-blocking would help here, but I'm curious about the opportunities...
02:39 sri try it
03:40 ryozi joined #mojo
03:44 sri omg, i did it!
03:44 sri http://kraih.tumblr.com # migrated
03:45 sri just the dates are messed up
03:48 inokenty Nice favicon
03:54 jberger sri: nice
03:54 jberger is it just me on my tiny screen or is the column a little narrow?
03:54 * jberger thinks it might just be my tiny screen
03:55 phillipadsmith sri: great, now we can all wait for Tumblr to go under too. :-P
03:58 sri yes it is a little narrow, i'll look at other themes once everything is working
03:59 jberger phillipadsmith, hehe
04:00 jberger I'm usually pretty good on new things, but somehow I missed tumblr for quite a while
04:00 jberger guess I'm getting older/less cool
04:00 * jberger is on IRC on a friday night
04:00 jberger then again so are you all :-P
04:01 sri at least i use feedburner and don't have to fix all the rss aggregators :)
04:05 phillipadsmith #mfbt
04:31 jnbek joined #mojo
04:50 preflex_ joined #mojo
05:01 sherr joined #mojo
05:09 sherr joined #mojo
05:47 yakudza joined #mojo
06:02 rwstaune` joined #mojo
06:04 anaio joined #mojo
06:05 ka2u joined #mojo
06:37 ka2u joined #mojo
06:46 Vandal joined #mojo
07:04 jzawodn joined #mojo
07:09 Mike-PerlRecruiter_ joined #mojo
07:34 Kulag joined #mojo
07:47 marcus hnng
08:41 sh4 joined #mojo
09:03 jamesw joined #mojo
09:24 d4rkie joined #mojo
09:51 BeDa joined #mojo
09:55 BeDa joined #mojo
09:55 dod joined #mojo
10:26 dod joined #mojo
10:44 dhg joined #mojo
10:54 Britzel joined #mojo
10:59 Kulag joined #mojo
11:05 Drossel joined #mojo
11:16 mire joined #mojo
11:23 Kulag joined #mojo
11:25 ka2u joined #mojo
11:32 Kulag joined #mojo
11:55 mattastrophe joined #mojo
12:21 sherr joined #mojo
12:33 ka2u joined #mojo
12:52 mire joined #mojo
13:50 Britzel_ joined #mojo
14:35 Akron joined #mojo
14:41 basic6 joined #mojo
14:50 Miked joined #mojo
15:12 Molaf__ joined #mojo
15:17 nicomen <3 ([]) Perl
15:19 bpmedley joined #mojo
15:22 mattastrophe joined #mojo
15:33 gryphon joined #mojo
15:44 D4RK-PH0ENiX joined #mojo
15:52 crab hmm, is it safe/supported to do $self->plugin(config => { file => "1.conf" }); $self->plugin(config => { file => "2.conf" }), etc?
15:53 crab as far as i can see from the code, it should work fine though
16:08 mattastrophe joined #mojo
16:18 d4rkie joined #mojo
16:32 d4rkie joined #mojo
16:41 sherr joined #mojo
17:02 dpetrov_ joined #mojo
17:37 anaio joined #mojo
18:11 kitt_vl joined #mojo
18:57 rhaen joined #mojo
18:58 rhaen hep
19:08 asarch joined #mojo
19:08 Mike-PerlRecruiter_ joined #mojo
19:24 moltar joined #mojo
19:39 sri new blog seems to be live now http://blog.kraih.com
19:40 sri apparently the feed url is the same as on posterous and everything got reposted to the aggregators :S
19:42 jberger sri: a little free advertising ?
19:43 sri FREE SPAM!
19:43 jberger FREE ALL THE SPAM!
19:45 * jberger still is chuckling about russian.rt.com using the default 500 handler!
19:49 inokenty =)
19:49 inokenty Russians love Mojolicious
19:50 jberger I think that no-one should be allowed to change the 500 page
19:50 jberger new mojo rule
19:51 jberger always use the raptor-corn rainbow-barf!
19:52 inokenty (on the new kraih blog content part is too slim and code doesn't fit on the page http://higgs.rghost.ru/43850860/image.png )
19:52 * jberger realizes how hard it is to type while the Tk test suite is running
19:58 jberger oh thank goodness the avalanche of windows has ended!
20:17 sri phew, dates of all posts are fixed \o/
20:18 sri tumblr is pretty comfortable, just the lack of native gist support is a bit annoying
20:33 crab sri: is calling $app->plugin(config => ...) multiple times supported? (it works fine)
20:33 sri crab: is it tested?
20:36 * sri is pretty sure that it's tested
20:37 crab i don't see such a test offhand. i'll look harder.
20:38 sri even if not directly, it should be tested indirectly
20:38 sri merging configs and all
20:40 mattastrophe joined #mojo
20:42 tagg joined #mojo
20:54 rem_lex| joined #mojo
20:59 Miked joined #mojo
21:32 salparadise joined #mojo
21:36 kthakore joined #mojo
21:36 kthakore hello
21:37 kthakore how can I make my own 'mojo' script that extends mojo generate app
21:37 kthakore I make a lot of bootstrap/riak apps that have the same boilerplate.
21:37 kthakore and I just want to automate genertion
21:48 rwstaune` joined #mojo
21:51 jberger kthakore, are you aware of the commands system? (just asking to know the starting point)
21:51 kthakore I just have been reading Mojolicious::Command::generate
21:52 jberger ok, well if you make a Mojolicious::Commands::mygenerate it will be its own command
21:52 kthakore ok
21:52 jberger which you could make a subclass of ::generate if you want I suppose
21:52 kthakore ok
21:52 jberger does that get you started?
21:52 kthakore yes
21:52 jberger cool
21:52 kthakore but here is the subroutine called
21:52 jberger good luck!
21:52 kthakore where I can install stuff in public
21:53 kthakore and make *.pms
21:53 jberger Mojolicious/Commands/mygenerate.pm
21:53 jberger or you can add to some app var ...
21:54 jberger http://mojolicio.us/perldoc/Mojolicious/Gui​des/Cookbook#Adding_commands_to_Mojolicious
21:54 jberger these are the docs you are looking for
21:54 jberger including how to add your own namespace if you want
21:55 jberger note also that I use this in Galileo, if you need some more guidance
21:57 kthakore cool
21:57 kthakore Galileo? do you have a link for that?
22:01 kthakore how did you do the galileo setup?
22:11 jberger sorry, I stepped away
22:11 jberger github.com/jberger/Galileo
22:12 jberger or on CPAN http://p3rl.org/Galileo
22:12 jberger hmmm let me linkify that first one: https://github.com/jberger/Galileo
22:13 jberger and I really don't do anything that isn't in that cookbook link
22:14 jberger https://github.com/jberger/Galile​o/blob/master/lib/Galileo.pm#L85
22:14 jberger https://github.com/jberger/Galileo/blo​b/master/lib/Galileo/Command/setup.pm
22:54 kthakore cool I am reading now
23:01 kitt_vl joined #mojo
23:09 BeDa joined #mojo
23:10 Adura joined #mojo
23:48 Gedge joined #mojo

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