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

IRC log for #mojo, 2014-05-07

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

All times shown according to UTC.

Time Nick Message
00:15 alnewkirk joined #mojo
00:19 gregf joined #mojo
00:33 ua joined #mojo
00:41 davido___ joined #mojo
00:44 shmuel joined #mojo
00:45 Zmodem joined #mojo
00:49 d4rkie joined #mojo
00:58 laouji joined #mojo
00:58 laouji joined #mojo
01:10 gtodd yay perlr.com :-)
01:26 russum joined #mojo
01:27 russum1 joined #mojo
01:45 klapperl_ joined #mojo
01:47 rem_lex|pivo joined #mojo
01:57 d4rkie_ joined #mojo
02:34 zivester joined #mojo
02:39 fhelmber_ joined #mojo
02:53 russum joined #mojo
03:01 ramo_ joined #mojo
03:09 basic6_ joined #mojo
04:06 irq joined #mojo
04:37 d4rkie joined #mojo
05:01 denis_boyun joined #mojo
05:11 laouji joined #mojo
05:43 Eke- joined #mojo
06:40 fhelmber_ joined #mojo
06:44 Vandal joined #mojo
06:55 dod joined #mojo
06:55 ramo_ joined #mojo
07:04 eseyman joined #mojo
07:12 dpetrov_ joined #mojo
07:32 trone joined #mojo
07:44 rawler joined #mojo
08:18 igorsutton joined #mojo
08:42 denis_boyun joined #mojo
08:51 basiliscos joined #mojo
08:54 fhelmber_ joined #mojo
08:55 laouji joined #mojo
08:56 laouji joined #mojo
09:18 cpan_mojo Mojolicious-Plugin-Mail 1.2 by Anatoly Sharifulin - http://metacpan.org/release/SHARIFULN/Mojolicious-Plugin-Mail-1.2
09:21 arthas joined #mojo
09:46 babl joined #mojo
09:49 met joined #mojo
09:52 Jonneh joined #mojo
10:03 Jonneh joined #mojo
10:18 d4rkie joined #mojo
10:36 d4rkie joined #mojo
11:14 ryozi joined #mojo
11:26 dod joined #mojo
11:35 neilhwatson joined #mojo
11:41 dod joined #mojo
11:45 dvinciguerra joined #mojo
12:17 moritz http://perltricks.com/article/85/2014/5/5/Just-how-much-heavier-is-Catalyst-than-Dancer2- heh, compare those dependency numbers to Mojolicious!
12:22 marcus moritz: I found that article pretty funny.
12:23 marcus I wonder how the numbers looked for dancer 1
12:23 sri we also have over 10000 tests :)
12:23 marcus https://metacpan.org/release/Dancer Seems it had a much smaller footprint than Dancer2
12:24 mire_ joined #mojo
12:25 marcus Files=84, Tests=9583, 43 wallclock secs ( 1.18 usr  0.23 sys + 27.23 cusr  2.09 csys = 30.73 CPU) without the env variables.
12:28 marcus Files=78, Tests=1008, 31 wallclock secs ( 0.34 usr  0.14 sys + 26.97 cusr  2.52 csys = 29.97 CPU) dancer2 on my machine, for comparison
12:33 sjn marcus: does that include the tests for Dancer2's dependencies?
12:35 sri how does one include dependencies in test results?
12:35 marcus sjn: no, it does not.
12:36 sjn then the comparison isn't fair :)
12:36 marcus sjn: The only thing it shows is we run 10x as many tests in 30% more time.
12:38 ver joined #mojo
12:47 nicomen is anyone making a blog post with the Mojolicious results?
12:47 nicomen It would make for an excellent promotion
13:12 sjn nicomen: do it :)
13:13 nicomen I'm only functioning 50% at the moment, so can't promise anything
13:13 nicomen and I don't have a blog at the moment
13:14 sjn http://blogs.perl.org
13:15 nicomen hm no PAUSE-login?
13:17 nic time (HARNESS_OPTIONS=j9 cpanm -l /tmp/m4 Mojolicious@4.97)
13:17 nic I'm getting the same time whether I use j9 or j1 -- have I got the line wrong?
13:18 asarch joined #mojo
13:18 nicomen -j9 ?
13:18 purl -j9 is, like, for 4-5 cores i guess then :D
13:19 nic nope, =-j9 is not right
13:20 nicomen yeah, verified
13:20 nic actually, I get the same time even without HARNESS_OPTIONS
13:20 nic I wonder if I've configured somewhere to always use j9; that would be daft cos it breaks some distros
13:31 zivester joined #mojo
13:43 nic prob just local to my current desktop; j9 or j1 is actually taking effect... proved cos it breaks the Dancer2 build (Template)
13:45 btyler joined #mojo
13:46 nic That could be a tagline of a mojoconf tutorial, "Understand delays in less time than it takes to install Catalyst or Dancer2" :/
13:52 nic https://gist.github.com/niczero/27e20e5de01f00d9ebfb
13:56 gryphon joined #mojo
13:56 sh4 joined #mojo
15:03 bluescreen joined #mojo
15:19 igorsutton joined #mojo
15:25 russum joined #mojo
15:28 sri \o\
15:28 sri /o/
15:43 bluescreen_ joined #mojo
15:46 sri something else that could be fun for the hackathon would be profiling and optimizing mojolicious
15:48 r0b3rt fun is building 2048 and flappy bird clones
16:05 btyler_ joined #mojo
16:10 ua joined #mojo
16:21 jb360 joined #mojo
16:23 denis_boyun joined #mojo
16:34 ramo_ joined #mojo
16:44 beyondcreed joined #mojo
16:50 mport joined #mojo
16:59 xmerlin joined #mojo
17:17 irq_ joined #mojo
18:26 Akron joined #mojo
18:26 fhelmber_ joined #mojo
18:27 Akron profiling and optimizing++ - I'm simply not the blocking/non-blocking mixing guy. It's the mixing that makes the headache - not the alcohol!
18:28 stephan48 hahaha
18:33 russum joined #mojo
18:37 russum1 joined #mojo
19:08 mire_ joined #mojo
19:08 dotandimet joined #mojo
19:29 LordV joined #mojo
19:48 Negor joined #mojo
19:52 dotandimet joined #mojo
20:09 dbrewer joined #mojo
20:11 dbrewer i have a php web gui that communicates async with node.js. I have been tasked with writing a wrapper for a perl program. Can I use mojo to send/receive from a node.js socket?
20:14 btyler_ dbrewer: everything is just a http API? super easy to do with Mojo::UserAgent/basic routes in that case
20:16 dotandimet joined #mojo
20:18 neilhwatson Consider this:  $r->get( '/trend/kept' )->to('#trend', subject => 'Kept'); the url /trend/kept returns page not found.  Trend is a sub in the  same file. What is my mistake?
20:19 dbrewer no the communication is websocket.io. i hooked it up in backbone/marionette to listen to a different port, and trigger the backbone event loop from the socket. so i want to trigger the event loop now by sending a message from a perl script to the node.js socket
20:19 dbrewer can mojo do that?
20:20 btyler_ totally. Mojo has websocket support, it's easy to get going
20:21 dbrewer do you have a good example url?
20:21 btyler_ dbrewer: checkout Mojo::UserAgent http://mojolicio.us/perldoc/Mojo/UserAgent#websocket
20:23 dbrewer btyler_:looks really close to what i want. i just have to format the message to have the <channel>:json format
20:23 btyler_ http://mojolicio.us/perldoc/Mojo/JSON for all your JSON-ing needs :)
20:25 dbrewer so you think this is easier ipc than POE?
20:25 btyler_ I've never used POE, but if you need a simple websocket client, I think it's hard to beat Mojo::UserAgent
20:26 dbrewer thanks i will give it a try
20:26 btyler_ no problem, have fun
20:27 sugar_ joined #mojo
20:37 dotandimet joined #mojo
20:40 maxhq joined #mojo
20:42 dotandimet joined #mojo
20:46 dotandimet joined #mojo
20:46 sugar_ joined #mojo
21:03 russum joined #mojo
21:18 sri *crickets*
21:27 sugar__ joined #mojo
21:37 val40 joined #mojo
21:38 preaction joined #mojo
22:23 denis_boyun joined #mojo
22:27 fhelmber_ joined #mojo
22:37 d4rkie joined #mojo
22:45 marty wow.  Our website had its biggest day ever yesterday and Mojolicous (Hypnotoad) + Mango handled it with ease.   Not one hicup.  sri++
22:45 sri \o/
23:00 ua joined #mojo
23:01 tianon joined #mojo
23:03 cfedde How big is a big day for you?
23:10 LiveLover joined #mojo
23:14 LiveLover Hello! I try to get http:vk.com page via Mojo::UserAgent.  I set headers like in my browser but it has no effect ((  http://justpaste.it/fdia    How to get vk.com page via Mojo???
23:17 LiveLover --->> this is clean code http://justpaste.it/fdib
23:17 LiveLover And another question:
23:17 purl another question: is there a way for me to clean up the build directory (.cpanplus/5.8.1/build/) ?
23:18 marty cfedde:   about 1.5 million hits.  About 600k page requests and over 1 million hits on the DB.
23:19 LiveLover how to change header in $tx at all?    like $tx->req->headers =   Mojo::Headers->new()
23:20 marty LiveLover:  I'm not sure if I understand but maybe something like this...     $self->res->headers->content_type('image/jpeg');
23:23 LiveLover marty: Thank You!!   Problem is: I understand how to change headers in request but I do not know how to replace one headers to another.    Not one field but all Mojo::Headers object.
23:26 klapperl joined #mojo
23:27 LiveLover Guys!! Does Mojo::UserAgent can  get web pages like my browser?
23:27 LiveLover Guys!! Does Mojo::UserAgent can  get web pages like my browser?
23:27 LiveLover I set headers in request like my browser, but it does not work!!  (for vk.com for example)   code in http://justpaste.it/fdib
23:41 sugar joined #mojo
23:46 russum joined #mojo
23:46 russum1 joined #mojo
23:56 LiveLover Good night!

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