Camelia, the Perl 6 bug

IRC log for #mojo, 2013-01-30

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

All times shown according to UTC.

Time Nick Message
00:13 Molaf_ joined #mojo
00:30 Miked joined #mojo
00:30 good_news_everyone joined #mojo
00:30 good_news_everyone [mojo] kraih tagged v3.84 at 783bda9: http://git.io/G7qsMQ
00:30 good_news_everyone left #mojo
00:44 shmuel joined #mojo
00:44 jzawodn joined #mojo
01:04 ka2u joined #mojo
01:09 Achilles14 joined #mojo
01:10 Mike-PerlRecruiter_ joined #mojo
01:17 mattastrophe joined #mojo
01:31 Caelum ok, now request takes 7ms instead of 340ms, yay
01:33 Caelum most of it was db churn
01:34 Caelum but converting to mojo from (very light) cgi still shaved off 55ms
01:37 t[R]oll joined #mojo
01:49 anaio joined #mojo
02:01 d4rkie joined #mojo
02:18 egopro joined #mojo
02:28 asarch joined #mojo
03:44 good_news_everyone joined #mojo
03:44 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/0mKKkw
03:44 good_news_everyone mojo/master ba7442f Sebastian Riedel: documentation tweaks
03:44 good_news_everyone left #mojo
03:48 marty sri++  The subtleties of the documentation semantics is tricky but I think you did a pretty good job of explaining it.
04:25 rem_lex joined #mojo
04:43 xaka joined #mojo
04:43 rem_lex|pivo joined #mojo
05:10 rem_lex| joined #mojo
05:12 TitanOfOld joined #mojo
05:14 rem_lex joined #mojo
05:16 ka2u joined #mojo
05:17 d4rkie joined #mojo
05:20 Achilles14 joined #mojo
05:22 egopro joined #mojo
05:23 egopro_ joined #mojo
05:27 jberger time to get people using the "Mojolicious tool suite" for some of these jobs: http://stackoverflow.com/a/14597159/468327
05:27 jberger :-)
05:27 jberger nite all
05:27 jberger o/
05:37 spleenjack joined #mojo
06:17 GabrielVieira2 joined #mojo
06:50 yakudza joined #mojo
06:56 Vandal joined #mojo
06:57 egopro joined #mojo
06:57 dpetrov_ joined #mojo
07:13 lammel2 joined #mojo
07:34 D4RK-PH0ENiX joined #mojo
07:52 ulric joined #mojo
08:08 dod joined #mojo
08:28 d4rkie joined #mojo
08:32 alnewkirk joined #mojo
08:32 judofyr joined #mojo
08:33 judofyr sri: look look: http://cl.ly/image/1C2X3f3v320f
08:36 dod joined #mojo
08:44 suy joined #mojo
09:01 ObseLeTe joined #mojo
09:23 batman joined #mojo
09:23 wircus joined #mojo
09:30 fhelmber_ joined #mojo
09:32 Adura joined #mojo
09:34 ObseLeTe joined #mojo
09:37 egopro joined #mojo
09:37 ver joined #mojo
09:52 Achilles14 joined #mojo
09:55 SmokeMachine joined #mojo
09:56 dod joined #mojo
10:29 mugenken joined #mojo
10:47 Lurchentsafter joined #mojo
11:10 Lurchentsafter hi! Is there a way to use mojo / Mojo::UserAgent as a text-only browser? "mojo get www.spiegel.de '*' text " works quite well but javascript code will be printed as well. so is there a way to suppres javascript-content natively in mojo?
11:12 KindOne joined #mojo
11:34 jontaylor joined #mojo
11:36 d4rkie joined #mojo
11:38 janliesendahl_de Hello, I would like to let Mojolicious run on Apache.
11:38 janliesendahl_de The cgi-script handler is working correctly, but once i run start_app() it gives an ISE(500).
11:38 janliesendahl_de The Script looks like https://gist.github.com/8f0ee2541168c0fa54d3 (with morbo the app is working correctly, so i would say the problem is not in my main dev...).
11:39 janliesendahl_de "Content-type:"...is only for testing at which position the error is located. After that test, i think require is loading the mod correctly...
11:39 janliesendahl_de Any ideas?
12:22 ObseLeTe joined #mojo
12:42 janliesendahl_de joined #mojo
12:43 sri judofyr: neat!
13:00 judofyr sri: also, I'll fix Parallol if you have a good solution (re: mojo.finished).
13:00 judofyr sri: https://github.com/judofyr/devlicious btw (I'll add some installation instructions later)
13:00 sri app->hook(after_dispatch => sub { shift->stash->{'my.finished'} = 1 })
13:02 sri and for tempire: app->hook(after_static => sub { shift->stash->{'my.static'} = 1 })
13:05 sri judofyr: you don't need to use a custom Mojolicious::Static
13:05 judofyr sri: oh?
13:07 sri putting your files in a devtools directory and using app->static should work just fine
13:08 Mike-PerlRecruiter_ joined #mojo
13:10 judofyr sri: yeah, I need to figure out the install instructions. the devtools are ~4.5MB so I rather not bundle it in the package
13:12 nic Growing.pod:line 292:s/new/new('MyApp')/
13:46 ryozi joined #mojo
13:48 judofyr sri: is it bad karma to package 4.5MB of JS on CPAN?
13:49 sri don't think so
13:49 * sri shrugs
13:49 Britzel joined #mojo
14:04 Miked joined #mojo
14:07 TitanOfOld joined #mojo
14:09 zivester joined #mojo
14:21 judofyr sri: also: can Mojo do per-request render paths?
14:28 gryphon joined #mojo
14:28 sri no
14:35 judofyr bummer
14:35 sri i don't see the use
14:36 sri it would just be slow and messy
14:36 judofyr sri: themes based on subdomains. or in our case: we want mobile templates in templates/mobile/:controller/:aciton
14:36 * sri still doesn't get it
14:37 judofyr get what? the use case?
14:37 judofyr m.example.com should use templates/mobile/; example.com should use templates/…
14:37 sri no, why you need custom render paths for that
14:38 * sri would just use some prefix and generate custom template paths
14:39 sri you can push as many render paths as you like into app->renderer->paths
14:40 ilbot2 joined #mojo
14:41 migo joined #mojo
14:44 inokenty joined #mojo
14:44 inokenty left #mojo
14:44 inokenty joined #mojo
14:48 sri push app->renderer->paths, $path_to_themes; helper render_with_theme => sub { $self->render(template => "$theme_prefix/$controller/$action") };
14:48 judofyr sri: right, it's the `render_with_theme` that I don't like. I'd rather not go through *every* action and do that :/
14:49 sri well, passing absolute paths into the renderer per request is not gonna happen
14:50 judofyr sri: what about having `has 'renderer' => sub { shift->app->renderer }` on Mojolicious::Controller?
14:50 judofyr and do everything through through $self->renderer instead of $self->app->renderer
14:50 sri no
14:50 judofyr then I could use a before_dispatch to override it
14:50 judofyr okay
14:51 sri adding something new to Mojolicious::Controller is not gonna happen outside of a major release
14:51 sri and even then, i think a renderer attribute is extremely ugly
14:52 sri what's next? per controller app instance with all components of the real app cloned?
14:57 sri you could have customized the template path with the before_render hook we had a year ago
15:08 Molaf__ joined #mojo
15:10 jberger judofyr, why not just base it on a stash value, with a default for the non-mobile version? Then your controller can use it to render the proper file?
15:31 ka2u joined #mojo
15:51 labrown joined #mojo
15:53 ObseLeTe joined #mojo
15:54 ulric left #mojo
15:57 ObseLeTe joined #mojo
16:14 yakudza joined #mojo
16:20 Mikey quick q: does startup() in the app run before prefork in multi-process deployments liek hypnotoad
16:20 Mikey where would be a good place to fork() a non-web-listening instance of the app?
16:21 Mikey to do maintenence tasks, scheduled work, etc
16:25 Mikey i could always just write my own ::Command and wrap startup, that might be the safest
16:25 Mikey er no, wait, i can't, i need to share a filehandle between the forked server, and all of the forked workers
16:49 bluescreen joined #mojo
17:11 xaka joined #mojo
17:12 ka2u joined #mojo
17:29 d4rkie joined #mojo
17:46 vervain joined #mojo
18:14 jontaylor joined #mojo
18:19 nw joined #mojo
18:39 mattastrophe joined #mojo
18:42 Vaewyn joined #mojo
18:44 Vaewyn Hey all... wondering how to do this type of thing in mojo ... .  Render a template... flush the buffer to the browser so they see the start of the content...  do a business logic bit that takes 5-30 seconds then render the final template with the outcome.  Like a very simple progress bar like situation.
18:57 mugenken Vaewyn: use websockets + javascript or javascript only with polling. this kind of thing is not framework specific i guess.
18:58 mugenken Mikey: startup() is called before spwaning workers
18:59 Vaewyn mugenken, Seems like an awful lot of extra stuff   just to show text of   'Process started... processing please wait... done...'
19:00 dpetrov_ joined #mojo
19:01 Vaewyn guess I could expose the business function to the template so the template could run it inline...  not sure if it will flush the buffer though so it is seen...  will have to try that
19:02 mugenken but that is the way everyone does it (*cough* not flash *cough*)
19:04 mugenken Vaewyn: it does seem more work than it actually is. see the websocket example http://blog.kraih.com/mojolici​ous-hack-of-the-day-websockets
19:04 Vaewyn mugenken,  :)    well I'm upgrading from the day of    print "Starting process..."; $r->rflush; setup_run(); print "processing please wait"; $r->rflush(); do_stuff(); print "done";
19:04 Vaewyn (although was using TT not just raw print functions)
19:06 Vaewyn mugenken, thanks for the link...  I do actually need to use websockets for another part of this project so... that'll help :)
19:06 jontaylor_ joined #mojo
19:07 mugenken :)
19:08 Vaewyn alll in all though loving mojo....  took one of my apps from 1800+ lines down to 350+ removing all the pathing crud..etc...   (well.. and DBIx::Class helped with that also.. but not as much as mojo)
19:22 Vaewyn left #mojo
19:23 ObseLeTe joined #mojo
20:01 lukep joined #mojo
20:16 perlite joined #mojo
21:05 xaka joined #mojo
21:18 nelio joined #mojo
21:38 Mikey yes, i just did it ™
21:39 Mikey mojo seemed to handle the fork() well, even hypnotoad did the right things for the most part
21:39 Mikey but zeromq hated it.
21:39 Mikey and that was the whole point, so i did it another way
21:40 Mikey btw is there a good websockets example that doesn't use Lite ?
21:55 SmokeMachine joined #mojo
22:25 TitanOfOld joined #mojo
22:41 nicomen joined #mojo
23:14 ObseLeTe joined #mojo
23:21 mattastrophe joined #mojo
23:43 SmokeMachine joined #mojo
23:53 moltar joined #mojo
23:53 SmokeMachine joined #mojo
23:53 moltar Hey guys! Having trouble finding an example of a PSGI script for Mojo app ...
23:54 moltar The file that I'd pass to morbo

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