Camelia, the Perl 6 bug

IRC log for #mojo, 2012-10-08

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

All times shown according to UTC.

Time Nick Message
00:01 mandreacchio joined #mojo
00:01 mandreacchio joined #mojo
00:04 mandreacchio joined #mojo
00:46 laouji joined #mojo
00:52 kitt_vl joined #mojo
01:29 ObseLeTe joined #mojo
01:54 mandreacchio joined #mojo
02:20 noganex_ joined #mojo
02:36 mandreacchio joined #mojo
03:19 Foxcool joined #mojo
04:37 buu Is there anyway to access the actual stash variable inside a template from mojo?
04:54 mandreacchio joined #mojo
04:59 laouji joined #mojo
05:00 buu Or better yet
05:00 purl i guess better yet is there a way to reintall modules?
05:00 buu Can I run some code before every route?
05:46 crab "before every route"? like a before_dispatch hook? or something else?
05:46 crab and what do you mean "
05:46 crab actual stash variable"?
05:46 crab $variable isn't good enough?
05:47 ovnimancer joined #mojo
05:47 Foxcool joined #mojo
06:00 arthas joined #mojo
06:05 zpmorgan joined #mojo
06:13 Adura How to cleanly be unloading a helper, go!
06:15 crab huh?
06:15 purl huh is it you? I should try this on linux first... :-)
06:15 Adura Asked before, just wondered if there's a clean way of unloading a helper.
06:16 Adura A DB helper, for instance, that would disconnect on unload, as an example.
06:18 crab weird. no, i don't know of a way to do that.
06:18 Adura I hacked something up, was hoping for a kosher way.
06:19 Adura I am rewriting something that is in PHP, would like to have most of the code behave the same.
06:22 keedi joined #mojo
06:23 Foxcool joined #mojo
06:26 dpetrov_ joined #mojo
06:42 Ulti anyone have tips for avoiding Proxy Errors with Apache2, I have some requests that take upto 20/30 seconds to return setting timeout and keepalive hasn't helped :(
06:48 Vandal joined #mojo
06:48 buu Adura: Perhaps you could take this opportunity to redesign it in a sane way?
06:48 buu =]
06:48 Adura Yes, that's the point.
06:49 buu I'm not sure unloading helpers is a sane way..
06:49 Adura Separation of presentation and logic.
06:50 Adura Well, it'll reload per-request, as development.log says. Might as well unload at the end of a request.
06:50 buu Uh, why? What advantage does that give you?
06:50 Adura Less total connections to the mysqld.
06:50 buu Adura: You should probably have a connection pool.. just hand out connections as needed..
06:51 buu Then you can more usefully control their lifespan
06:51 buu Barring that, just store the handle in something that is reset each request, like say, the stash.
06:51 Adura Was thinking the stash, but... seemed more a helper-y job.
06:53 buu Adura: Really you should just make sure you have one dbh per thread/process..
06:54 Adura Well, two... sometimes, one for the write server, one for the read server
06:55 Adura I'd prefer not to have a maximum of 1600 DB connections never go down.
06:56 buu You have .. 800 processes?
06:56 Adura It's a popular site...!
06:56 Adura He had 1m visitors a day recently.
06:57 buu How many frontend servers are you running?
06:57 Adura 2
06:57 Adura The PHP load is fine, not so much with the mysql load, hah.
06:57 buu But I mean, 1m hits a day is like 11 per second, obviously you have spike loads and stuff
06:58 Adura Yes.
06:58 buu 800 processes seems completely and utterly insane.
06:58 Adura The Mojo version will avoid unneeded mysql connections/queries.
06:58 Adura 1000 php-fpm children works fine.
06:59 buu Can they all actually execute at the same time?
06:59 Adura Sure, run out of them all the time because mysqld gets clogged.
06:59 buu I mean, it's trivial to launch 1k, I'm having difficulty imagining them all executing
06:59 buu Oh, they're all just sleeping?
07:00 Adura Pretty much.
07:00 Adura PHP doesn't do anything intensive.
07:00 Adura Nor will Mojo.
07:00 Adura I just need to minimize mysqld usage.
07:00 Adura memcached and less queries on!
07:02 buu Well, yeah!
07:02 buu Does mysql actually care if it has 1600 connections? I'm sure there's an upper limit but is that it?
07:02 buu well, 800 really
07:03 buu Assuming they aren't all talking to it
07:03 Adura I don't... know. but 1600 really crap queries at once is probably going to make the server unresponsive.
07:03 buu From what you said it sounds more like the sheer number of queries is overwhelming, regardless of how many connections
07:03 buu I guess what I'm saying is be sure you're optimizing in the right spot!
07:03 Adura Yeah, and crappiness of the queries.
07:04 Adura Might as well plug the site: http://totaljerkface.com/
07:05 Adura Expect slow loading times!
07:05 Adura Though 3am E does make for a fine time to play Happy Wheels.
07:08 Adura Hope Hypnotoad acts the way I want it to when the code goes live...
07:14 yakudza joined #mojo
07:21 Mike-PerlRecruiter_ joined #mojo
07:23 batman joined #mojo
07:26 nicomen joined #mojo
07:36 fhelmber_ joined #mojo
07:40 ovnimancer joined #mojo
07:52 spleenjack joined #mojo
08:30 pau4o joined #mojo
08:35 mandreacchio joined #mojo
08:47 baton8 joined #mojo
08:48 Foxcool joined #mojo
09:10 d4rkie joined #mojo
10:01 D4RK-PH0ENiX joined #mojo
10:03 daxim joined #mojo
10:30 AmeliePoulain joined #mojo
10:31 lukep joined #mojo
10:36 mandreacchio joined #mojo
10:54 Foxcool joined #mojo
11:02 rem_lex|pivo joined #mojo
11:08 cosmincx joined #mojo
11:08 Foxcool_ joined #mojo
11:19 asarch joined #mojo
11:28 Britzel_ joined #mojo
12:11 memowe_ joined #mojo
12:14 Lucas1 joined #mojo
12:22 swkide joined #mojo
12:24 swkide Greetings, how to prevent mojo with cpan install beeing installed to local::lib - even as root?
12:25 daxim http://p3rl.org/local::lib#deactivate-all
12:27 swkide thx a lot
12:29 yakudza hello ppl. how can I use mojo cache inside of controller ? is there any helper for it like $c->cache ?
12:34 crab there's no helper afaik.
12:39 swkide hmm whatever I do - Mojo is installed to /root/perl5/bin/mojo on Ubuntu 12.04.1 LTS - any ideas?
12:39 swkide with cpan and curl get.mojolicio.us | sh it ends up the same
12:40 daxim show output of perl -V, section under %ENV
12:42 swkide Summary of my perl5 (revision 5 version 14 subversion 2) configuration: - no %ENV
12:56 swkide ok now I found it with perl -V as root:  %ENV:
12:56 swkide PERL5LIB="/root/perl5/lib/perl5/x86_64-lin​ux-gnu-thread-multi:/root/perl5/lib/perl5"
12:56 swkide PERL_LOCAL_LIB_ROOT="/root/perl5"
12:56 swkide PERL_MB_OPT="--install_base /root/perl5"
12:56 swkide PERL_MM_OPT="INSTALL_BASE=/root/perl5"
12:57 daxim unset those variables
12:57 swkide ok thx
12:59 swkide cool! - Problem solved - thx @daxim
13:04 sri please don't paste into the channel
13:35 swkide_ joined #mojo
13:36 jnap joined #mojo
13:54 gryphon joined #mojo
14:18 Jason__ joined #mojo
14:22 Leandr joined #mojo
14:36 knshaum joined #mojo
14:40 rhaen k, submitted talks for LPW 2012, and I will blame Mojolicious for my interest in Perl.
14:50 inokenty joined #mojo
15:20 sh4 joined #mojo
15:59 andrefs joined #mojo
16:03 xaka joined #mojo
16:12 andrefs joined #mojo
17:02 yakudza joined #mojo
17:13 dpetrov_ joined #mojo
17:14 batman joined #mojo
17:37 davido joined #mojo
17:38 andrefs joined #mojo
17:39 pau4o left #mojo
17:56 asarch joined #mojo
18:10 bobkare joined #mojo
18:47 bluescreen joined #mojo
18:48 yakudza joined #mojo
18:54 Jason__ joined #mojo
19:20 Mike-PerlRecruiter_ joined #mojo
19:26 memowe joined #mojo
20:04 xaka joined #mojo
20:24 ObseLeTe joined #mojo
20:34 lukep joined #mojo
21:01 memowe joined #mojo
21:18 davido joined #mojo
21:45 ObseLeTe joined #mojo
22:19 jzawodn joined #mojo
22:31 kevouze joined #mojo
22:32 * sri wonders if the first feature description on http://mojolicio.us should be modified a little
22:32 sri "An amazing real-time web framework supporting a simplified single file mode through L<Mojolicious::Lite>."
22:32 sri vs
22:32 sri "An amazing real-time web framework allowing you to grow single file L<Mojolicious::Lite> prototypes into well structured web applications."
22:37 sri maybe
22:37 sri "An amazing real-time web framework, allowing you to easily grow single file L<Mojolicious::Lite> prototypes into well structured web applications."
22:38 * sri pokes tempire
22:39 kd joined #mojo
22:42 sri i think the growing part gets a bit lost in the current description, the lite focus may give the impression that mojolicious is only for small apps
22:42 sri would be nice if we could bring that back in one simple sentence :)
22:43 sri maybe even throw in the word enterprise ;p
22:54 good_news_everyone joined #mojo
22:54 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/vzCtbw
22:54 good_news_everyone [mojo/master] mention growing in framework description - Sebastian Riedel
22:54 good_news_everyone left #mojo
22:57 kd morning
22:58 * sri waves
22:58 kd kevouze is doing a PhD on newcommers experience in open source projects
22:58 kd http://blogs.perl.org/users/kevin_carillo/2012/1​0/newcomer-experience-and-contributor-behavior-i​n-perl-and-other-foss-communities---survey.html
22:58 kd are there people here who can fill in the survey, less than two years involvement with the project .. should privide the perl community with some valuable information about how things work, whether they can be improved
22:59 kd sri: can you bug people who might be good candidates, <= 2 years involvement in mojo
22:59 sri i'm sure we have more than a few candidates for that here
23:00 kd is this the best place to recruit?
23:00 kd what time of day is likely best
23:01 sri right now might be the worst time :)
23:01 sri will be more active in about 12 hours
23:02 sri the mailing list might work better though
23:04 kd ok I passed htat on, but I'll get him to come and re-announce in here in ~ 12 hours
23:04 kevouze joined #mojo
23:04 human39 joined #mojo
23:16 ObseLeTe joined #mojo
23:31 motoboi joined #mojo
23:37 motoboi Is this a bug? https://gist.github.com/3855636
23:39 motoboi Or a  misusage of Mojo::UserAgent API??
23:40 Adura Huehue.
23:40 Adura It looks like you're trying to set a request header.
23:42 motoboi Is there a proper way to set Referrer header?
23:44 Adura Well, I'm not entirely sure. Perhaps before calling to_string.
23:45 bpmedley Am amazing real-time web framework supporting both micro-web Mojolicious::Lite applications and MVC based applications?
23:46 sri how is Mojolicious::Lite not MVC? Oo
23:46 bpmedley hrrm
23:47 bpmedley Am amazing real-time web framework supporting both micro-web Mojolicious::Lite applications and multi-file based MVC applications?
23:47 Adura *I am an
23:48 bpmedley An amazing real-time web framework supporting both multi-file based MVC applications and micro-web based applications.
23:49 Adura But that makes it sound like it's referring to itself in the third.
23:49 bpmedley An amazing real-time web framework support both multi-file and micro-web based MVC applications?
23:49 * sri likes the current version more
23:50 bpmedley :)
23:51 Adura "I am amazing, a real-time web framework that supports single-file "Lite" apps that are one command line away from a well-structured web application."
23:51 Adura Now it doesn't sound crazy.

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