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

IRC log for #mojo, 2013-12-06

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

All times shown according to UTC.

Time Nick Message
00:06 gryphon joined #mojo
00:18 AndroUser joined #mojo
00:19 AndroUser joined #mojo
00:30 athenot joined #mojo
00:33 mire_ joined #mojo
00:37 asarch joined #mojo
00:54 d4rkie joined #mojo
01:20 ka2u joined #mojo
01:32 womble joined #mojo
01:47 dsteinbrunner joined #mojo
01:48 athenot joined #mojo
02:03 Adura joined #mojo
03:18 d4rkie joined #mojo
03:52 cfedde joined #mojo
04:07 marty joined #mojo
04:21 preflex_ joined #mojo
04:37 bowtie_ joined #mojo
04:45 ka2u joined #mojo
04:48 jzawodn joined #mojo
05:03 ka2u joined #mojo
05:11 khfeng joined #mojo
05:20 KindTwo joined #mojo
05:20 Guest-quest joined #mojo
05:21 Guest-quest hello
05:21 purl hey, Guest-quest.
05:21 Guest-quest let me little quest
05:22 Guest-quest why not found render set header Content-Type: application/json ??
05:36 cfedde words me random meaning framework web confuse are,
05:37 Guest-quest ага
05:43 kaihengfeng joined #mojo
05:48 dabudabu aramaa
06:39 davido_ joined #mojo
06:47 KindOne joined #mojo
07:09 Vandal joined #mojo
07:14 omega why "not found" render set header "Content-Type: application/json"?
07:25 Guest-quest i want "text/html"
07:26 omega Guest-quest: care to no-paste some code in a gist or something?
07:32 batman Guest-quest maybe you're asking for .json ?
07:34 Guest-quest i asking about "not fount" response, about "Content-Type" header
07:36 omega but you aren't giving us any details so we can help you..?
07:36 omega not the url you try to request, not the code that serves that request, nor a dump of the response you receive?
07:37 batman die ETOOMUCHDETAILS;
07:37 Guest-quest > not the url you try to request
07:38 batman Guest-quest: the answer is: you're doing something that makes it respond with application/json
07:38 batman it's probably something inside mojo you don't understand that is causing this, but it's not a bug
07:42 batman (at least the bug is not in mojo)
07:43 Guest-quest <batman>: i dont change respond on 404
07:44 KindOne joined #mojo
07:44 Guest-quest earlier i have right content-type
07:45 dp joined #mojo
07:45 basiliscos joined #mojo
07:46 Guest-quest how i understand: "not found" responder is builtin
07:46 dod joined #mojo
07:50 Guest-quest route=>'/stash',
07:50 Guest-quest $self->res->headers->header('Content-Type'=>'text/plain; charset=UTF-8');
07:51 Guest-quest $self->render(json=>{stash => $self->stash});
07:51 Guest-quest i want Content-Type'=>'text/plain
07:54 billy-whiz joined #mojo
07:57 Guest-quest but i get application/json
07:59 Guest-quest on 404 i get application/json but must be text/html
08:08 dod joined #mojo
08:13 marcus set content type after render?
08:15 denis_boyun joined #mojo
08:22 Guest-quest marcus: before
08:22 denis_boyun joined #mojo
08:23 nicolaas joined #mojo
08:24 fhelmber_ joined #mojo
08:29 dotandimet joined #mojo
08:32 fhelmber_ joined #mojo
08:37 marcus Guest-quest: no, that was a suggestion to fix your problem.
08:48 Guest-quest marcus: tnks work, but how to set "text/html" for 404?
08:49 marcus Guest-quest: I guess you're doing something wrong in your 404? Like rendering a json structure? The renderer will automatically set content type for you
08:51 ver joined #mojo
08:51 Adurah joined #mojo
08:52 Guest-quest no, i had only templates/not_found.production.html.ep
08:55 marcus Guest-quest: well, if you create a default mojo-lite app, the 404 will be text/html, so it's something you did.
08:56 Guest-quest markus, you said it!
08:57 Guest-quest i have non mojo-lite
09:03 ka2u joined #mojo
09:07 dotandimet1 joined #mojo
09:08 marcus Guest-quest: it's the same with standard mojo
09:09 Guest-quest markus, you said it! (again) but i get application/json (again)
09:10 themage joined #mojo
09:19 marcus Guest-quest: https://gist.github.com/marcusramberg/7820889 <- It's not a problem with mojo!
09:37 Dandre hello,
09:39 Dandre I have used PODRenderer. Il my source I have
09:39 Dandre =item 1. foo
09:39 Dandre but this is rendered as <dl>... insteadof <ol>...
09:39 Dandre why?
09:39 Dandre everything is ok for =item * foo
09:45 billy-whiz joined #mojo
09:52 Guest-quest marcus, sorry, the problem was on template, thank you
09:55 batman Dandre: because it's a description list...?
09:55 batman has anyone created a project that does what hypnotoad does, but as a generic tcp server instead of http?
09:57 Dandre batman: here: http://perldoc.perl.org/perlpod.html#Command-Paragraph I can read
09:57 Dandre or use "=item 1.", "=item 2.", etc., to produce numbered lists;
10:00 Dandre ok I've found. ordered lists in pod is nearly unusable :-(
10:07 Guest-quest joined #mojo
10:16 fei joined #mojo
10:16 laouji joined #mojo
10:18 Guest-quest left #mojo
10:25 laouji joined #mojo
10:49 Lee joined #mojo
11:19 denis_boyun joined #mojo
11:32 ka2u joined #mojo
11:33 hrupp joined #mojo
11:44 mire_ joined #mojo
12:44 dvinciguerra joined #mojo
13:12 denis_boyun joined #mojo
13:15 tadamo joined #mojo
13:17 tadamo joined #mojo
13:56 asarch joined #mojo
14:09 sh4 joined #mojo
14:15 mire_ joined #mojo
14:28 tadamo joined #mojo
14:30 abra joined #mojo
14:37 punter joined #mojo
14:41 rem_lex|pivo joined #mojo
14:41 batman sri: https://github.com/jhthorsen/mojo-server-tcp # can i release this?
14:46 tadamo joined #mojo
14:47 dsteinbrunner joined #mojo
14:50 sri batman: certainly not, you're overloading a private method, which will break
14:51 batman what's the alternative?
14:54 denisboyun joined #mojo
15:05 tadamo joined #mojo
15:06 crab hi
15:17 tadamo joined #mojo
15:21 fhelmbe__ joined #mojo
15:21 d4rkie joined #mojo
15:22 ka2u joined #mojo
15:26 batman sri: i really, really want this to happen without jumping though all the hoops you've fixed in the generic code.
15:26 batman do i seriously need to create a custom app with a custom $tx object to use the "real" api?
15:41 gryphon joined #mojo
15:48 crab what should i read to understand how layouts work? specifically, how does content get set to the right thing inside it?
15:50 jovial_chat isn't the page .ep processed first
15:50 jovial_chat and anything that isn't in a template_for block or whichever it was
15:51 jovial_chat is 'content'
15:51 jovial_chat oh content_for
15:51 purl it has been said that content_for is awesome
15:51 jovial_chat it is quite awesome purl you are right
15:54 denis_boyun joined #mojo
16:04 nic crab: Are you now post-op?
16:05 tadamo joined #mojo
16:05 crab nic: i'm post _dental_ op ;-) filling tomorrow morning.
16:06 nic \o/
16:06 * nic scratches a tally on the 'Survived' side of the wall
16:07 crab it wasn't painless, but not unbearable. no injection. the dentist said it's easier to control if i can tell them what hurts.
16:07 nic crumbs
16:08 Lucas1 joined #mojo
16:08 crab so i guess i can't really use or repurpose "content" in my own template thingy without messing with private variables
16:09 crab that is sad
16:11 denisboyun joined #mojo
16:14 crab or maybe i can, just by calling $c->content from my own helper. hm. worth a try... oh, but it'll do nothing because presumably if it's rendering a template when it sees my helper, the 'content' buffer will be non-empty
16:20 run4flat joined #mojo
16:21 run4flat Hey everyone, I submitted a stub about Mojolicious in a pull request to this page: http://www.leggetter.co.uk/real-time-web-technologies-guide
16:22 run4flat the pull request with the new Mojo mention is here: https://github.com/run4flat/realtime-web-technologies-guide/blob/patch-1/guide.md
16:22 run4flat er, that's the branch with the change
16:23 run4flat here's the actual pull request: https://github.com/leggetter/realtime-web-technologies-guide/pull/7
16:23 TheCrimsonRadish joined #mojo
16:24 run4flat Feel free to submit a pull request to my fork, or to the original project directly, if you have any changes.
16:24 run4flat and if you need me, you can find me on #pdl
16:24 run4flat o/
16:24 run4flat left #mojo
16:32 mire_ joined #mojo
16:33 tianon joined #mojo
16:42 bluescreen joined #mojo
16:49 rem_lex| joined #mojo
16:51 sri drive-by pull request
16:52 Mad_Dud joined #mojo
16:54 nic joined #mojo
16:54 Kundun joined #mojo
16:54 tholen42 joined #mojo
16:54 ascent joined #mojo
16:54 cosimo joined #mojo
16:54 bjoernfan joined #mojo
16:55 Foxcool joined #mojo
16:55 yko joined #mojo
16:56 tianon joined #mojo
16:57 batman sri: no way i can make my module reliable..?
16:57 sri i have no opinion on that
16:59 batman that sucks. i really want the heartbeat/worker logic, but i see no reason why i need to write that myself, when you've already done it
17:01 batman guess i'll just copy/paste the whole module + tests then :(
17:01 * batman makes dinner
17:03 sri yesterday i prolly would have looked if there's a sensible way to abstract it, but today i'm too busy with a new commercial project i'm afraid
17:04 * sri is shifting priorities a bit
17:06 batman that's fine
17:10 btyler joined #mojo
17:10 tholen42 joined #mojo
17:11 Kundun joined #mojo
17:19 denis_boyun joined #mojo
17:21 kanishka joined #mojo
17:21 howitdo joined #mojo
17:36 tl joined #mojo
18:30 beyondcreed joined #mojo
18:30 asarch joined #mojo
18:51 Adura joined #mojo
18:55 dp joined #mojo
19:00 marty hypnotoad is so frakin awesome!   sri++
19:00 rem_lex|pivo joined #mojo
19:00 punter joined #mojo
19:22 btyler joined #mojo
19:24 sri ALL GLORY TO THE HYPNOTOAD!
19:26 dsteinbrunner are there any advantages that hypnotoad give a mojo app compated to all the other PSGI servers out there?
19:26 dsteinbrunner compared to rather
19:27 sri hypnotoad is not psgi
19:27 dsteinbrunner right, I figured
19:27 sri http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#REAL-TIME_WEB
19:29 sri http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#Hypnotoad
19:30 marty Hypnotoad just rocks.   I'm really banging hard on it the last few days as our staff is now cranking away trying to get ready to go live.
19:30 marty Hypnotoad just chugs along. and the hot redeploy!!!!!!  \o/
19:31 dsteinbrunner so it is not worth considering uwsgi or the like?
19:31 marty and I know it's not recommended, but I am gunna go live with Mango!! wooohooo   I'm a danger seeker!
19:31 dsteinbrunner are there any performance or stability camparisons?
19:32 sri if you don't need all those features you might certainly be more happy with uwsgi
19:35 dsteinbrunner ok, so if you start venturing down the road of using Mojo::IOLoop you need to use morbo/hypnotoad
19:36 dod joined #mojo
19:39 dsteinbrunner I see where that is stated in the docs now
19:43 Lucas1 joined #mojo
19:46 tba_ joined #mojo
19:53 denisboyun joined #mojo
20:01 Adura joined #mojo
20:28 denis_boyun joined #mojo
20:28 sri batman: i've not looked at the code, but had an idea, maybe an accept event in Mojo::Server::Daemon would be enough, you could unsubscribe the read event from the stream and replace it with your own
20:29 sri doubt i'll get to look into it anytime soon though
20:40 Adurah joined #mojo
20:55 rem_lex joined #mojo
20:56 rem_lex| joined #mojo
21:14 delias joined #mojo
21:15 basiliscos1 joined #mojo
21:18 delias joined #mojo
21:22 delias joined #mojo
21:38 punter joined #mojo
22:00 basiliscos joined #mojo
22:09 bluescreen_ joined #mojo
22:10 bluescreen_ joined #mojo
22:11 meshl joined #mojo
22:31 denisboyun joined #mojo
23:09 btyler_ joined #mojo
23:40 trone_ joined #mojo
23:40 asarch joined #mojo
23:47 marty joined #mojo
23:59 maxhq joined #mojo

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