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

IRC log for #mojo, 2014-08-15

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

All times shown according to UTC.

Time Nick Message
00:00 D4RK-PH0ENiX joined #mojo
00:05 woz joined #mojo
00:11 good_news_everyon joined #mojo
00:11 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/z7vGuw
00:11 good_news_everyon mojo/master 27f4527 Sebastian Riedel: more detailed example
00:11 good_news_everyon left #mojo
00:26 GabrielVieira joined #mojo
00:45 good_news_everyon joined #mojo
00:45 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/eGkoTA
00:45 good_news_everyon mojo/master b8b1a85 Sebastian Riedel: more helper documentation
00:45 good_news_everyon left #mojo
00:49 sujithm joined #mojo
01:06 woz joined #mojo
01:16 laouji joined #mojo
01:23 disputin1 joined #mojo
01:38 hesco joined #mojo
01:45 klapperl_ joined #mojo
02:07 woz joined #mojo
02:47 laouji joined #mojo
02:52 noganex joined #mojo
03:08 woz joined #mojo
03:16 basic6 joined #mojo
03:17 disputin joined #mojo
03:40 sujithm joined #mojo
03:42 laouji joined #mojo
03:46 tempire seems fine to me
03:47 tempire I don't know that I'll ever use it, 'cause I wouldn't create anything that has an apparent name conflict
04:01 davido__ joined #mojo
04:09 woz joined #mojo
04:12 hesco .
04:14 hesco My templates, w/o any complaints in the logs are rendering as the numeral '1', returning a trie value, I assume.  I'm baffled as to why.  A fuller desription of the issue, including links to screen shots is available here:  https://gist.github.com/hesco/c77c5d82910a0c1ec29e  I would appreciate any guidance folks might offer to move me past stuck on this one.
04:16 hesco I was getting real copy out of them only a couple of days ago.  And in fact, I get real copy from the version running in UAT.  But even when I roll back to that version in my local sandbox, I get a '1', rather than the copy, as shown in the screen shots.  Frustrating and baffling.
04:38 hesco ok, I deployed it to the server (in our dev environment) and it does not exhibit this weird behavior there.  This only seems to affect my local sandbox.  I also blew away and rebuilt my carton local/lib path, without changing the outcome.
04:39 hesco glad it does not break in this way on the server, but this sure makes development a challenge for anything more complex than simple copy changes.
04:46 batman hesco: got any code..?
04:46 batman wild guess is old mojo code with >render(partial => 1, ...); but i really have no idea
05:07 priodev joined #mojo
05:08 laouji joined #mojo
05:10 woz joined #mojo
05:11 preaction joined #mojo
05:15 irq joined #mojo
05:53 Eke- joined #mojo
06:04 KCL_ joined #mojo
06:05 Jonneh joined #mojo
06:10 denis_boyun joined #mojo
06:11 woz joined #mojo
06:18 _eugen joined #mojo
06:19 tempire oh, it's for performance
06:19 tempire sensible
06:19 hesco batman: thanks for the wild guess, perhaps I can construct another gist with some code to look at after some sleep.  But first I think my next move is to blow away the existing sandbox and pull a fresh clone to see if the issue persists locally.  I've push'd several deployments to the publically accessible server tonight, none of which exhibit this issue, though it shows up for every templated endpoint in my
06:19 hesco local snadbox.
06:20 hesco For the moment I'm working around it, and having just sent code to UAT, as soon as I send my email reporting that fact to folks, expect to pass out for some sleep.
06:22 argh joined #mojo
06:41 KCL joined #mojo
06:59 basiliscos joined #mojo
07:03 marcus I agree with tempire.
07:12 woz joined #mojo
07:32 sri marcus, tempire: perhaps i should have opened with this benchmark, if you have to call multiple helpers and can reuse the proxy object, things get really fricking fast :D https://gist.github.com/anonymous/cbe8fa3dabf6497ec7b9
07:33 marcus sri: Seems like a nobrainer then.
07:33 tempire need
07:33 tempire *neat
08:13 woz joined #mojo
08:31 batman anyone who got input on my script to do self signed ssl for client authentication? https://gist.github.com/jhthorsen/348d576dd8844c5ad67d
08:31 batman tempire: ? ^^
08:34 onur Hi guys. I asked this before but I think I asked wrong question. How can I get xml escaped string of my var and replace newlines with <br> and show the result in my template? I wanna show a textarea result in my template with new lines.
08:44 woz joined #mojo
08:49 go|dfish onur: well there's Mojo::Util::xml_escape() and I guess you could do $var =~ s/\n/<br>/g
09:26 GabrielVieira joined #mojo
09:38 rawler joined #mojo
09:38 basiliscos joined #mojo
09:46 woz joined #mojo
09:53 nic crab: For what it's worth, my app's classes behaviour reverted to being the same as yours, so that clarifies it was just a temporary accident, but I still don't know why, not that it matters
09:57 basiliscos joined #mojo
09:59 argh joined #mojo
10:03 basiliscos joined #mojo
10:10 crab nic: we are united in confusion and vague suspicions, then
10:10 crab does anyone have a favourite web-based ssh client/terminal thingy?
10:37 basiliscos joined #mojo
10:45 basiliscos joined #mojo
10:47 woz joined #mojo
10:48 nic I've had fun with shellinabox, but I'm not in a position to say anything about its security
10:51 argh joined #mojo
11:18 D4RK-PH0ENiX joined #mojo
11:21 neilhwatson joined #mojo
11:30 argh joined #mojo
11:40 D4RK-PH0ENiX joined #mojo
11:48 woz joined #mojo
11:57 noganex kinda funny.. just been reading the news and then i detected the mojo favicon :D https://informant.taz.de/
12:04 romkaspb joined #mojo
12:04 romkaspb hi
12:05 romkaspb i have troubles with mojolicious lite and routes, can somebody help me?
12:06 ryozi joined #mojo
12:06 go|dfish romkaspb: what are your troubles
12:06 romkaspb get '/banners/get' => to('II::Api#banners_get');
12:07 romkaspb not working
12:07 purl see "doesn't work"
12:07 romkaspb i dont need to keep all functions in one file
12:07 romkaspb can i use module like in non-lite app?
12:08 romkaspb sorry for my english
12:11 jberger romkaspb: off the top of my head, try this
12:12 jberger get('/banners/get')->to('II::Api#banners_get');
12:17 romkaspb jberger, thanks! it works. Now it 404, not 500 :))
12:24 aramisf joined #mojo
12:28 sri noganex: lol!
12:38 batman noganex: cool :)
12:39 sujithm joined #mojo
12:49 woz joined #mojo
13:16 sujithm joined #mojo
13:20 hesco joined #mojo
13:29 basiliscos joined #mojo
13:32 sujithm joined #mojo
13:33 nic I had $self->redirect_to('xyz', a => 1) and it worked great
13:33 nic now I want to add the equivalent of ->query(lang => 'perl')
13:34 nic To do that, should I change it to $self->redirect_to(url_for(...)->query(...))  ?
13:38 xevz joined #mojo
13:39 romkaspb nic, yes. $self->redirect_to($self->url_for('foo')->query(bar => baz))
13:50 woz joined #mojo
13:56 bjoernfan joined #mojo
14:10 hesco joined #mojo
14:18 sri tempire: btw. regarding name conflicts, i'm sure at some point you will want to have a helper in one of your plugins that uses a helper
14:19 sri like these two cases we had in core https://github.com/kraih/mojo/commit/f2ae3c3c289d9c23bc12e68c81707de9e724f0ae
14:19 sri they can easily conflict with someone else's controller methods
14:20 argh joined #mojo
14:20 sri prior to that change, $c->csrf_token and $c->tag_with_error were basically reserved for core, except we didn't reserve them
14:22 sri sooo... if you have helpers that are using other helpers, you really want to preemptively use $->helpers->...
14:22 sri *$c
14:41 mattastrophe joined #mojo
14:51 woz joined #mojo
14:55 disputin joined #mojo
15:18 crab nic: thanks, shellinabox seems to work considerably better than anything else i found
15:19 Eke- joined #mojo
15:52 woz joined #mojo
16:26 basiliscos joined #mojo
16:51 sri oh my, i've posted 711 times to the mailing list
16:53 woz joined #mojo
16:56 hesco joined #mojo
16:57 denis_boyun joined #mojo
17:40 disputin joined #mojo
17:40 Ptolemarch joined #mojo
17:54 woz joined #mojo
17:57 good_news_everyon joined #mojo
17:57 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/Lz_gyg
17:57 good_news_everyon mojo/master eb8d303 Sebastian Riedel: explain how optional stash values should be handled
17:57 good_news_everyon left #mojo
18:14 good_news_everyon joined #mojo
18:14 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/gTWVHA
18:14 good_news_everyon mojo/master e5a9187 Sebastian Riedel: mention references
18:14 good_news_everyon left #mojo
18:26 sh4 joined #mojo
18:33 sri the state of html5 books is depressing
18:41 KCL_ joined #mojo
18:51 good_news_everyon joined #mojo
18:51 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/ITKiOA
18:51 good_news_everyon mojo/master 37c2bf7 Sebastian Riedel: more consistent Mojo::DOM examples
18:51 good_news_everyon left #mojo
18:55 good_news_everyon joined #mojo
18:55 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/BZgj_Q
18:55 good_news_everyon mojo/master 5ffeb66 Sebastian Riedel: fixed a few typos in Mojo::DOM examples
18:55 good_news_everyon left #mojo
18:56 woz joined #mojo
19:21 argh joined #mojo
19:35 disputin joined #mojo
19:54 nic joined #mojo
19:56 nic_ joined #mojo
19:57 woz joined #mojo
20:04 michael joined #mojo
20:05 marcus joined #mojo
20:05 jberger_ joined #mojo
20:05 batman joined #mojo
20:31 sh4 joined #mojo
20:32 rawler joined #mojo
20:44 nic_ joined #mojo
20:58 woz joined #mojo
21:14 neilhwatson joined #mojo
21:29 davido_ joined #mojo
21:32 Ptolemarch joined #mojo
21:42 good_news_everyon joined #mojo
21:42 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/UZZ0jg
21:42 good_news_everyon mojo/master f3efbaa Sebastian Riedel: mention that proxy objects contain the current controller object
21:42 good_news_everyon left #mojo
21:46 good_news_everyon joined #mojo
21:46 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/GNV6dg
21:46 good_news_everyon mojo/master 4e2233f Sebastian Riedel: more consistent descriptions of proxy objects
21:46 good_news_everyon left #mojo
21:59 woz joined #mojo
22:13 hesco joined #mojo
22:16 sujithm joined #mojo
22:40 ua joined #mojo
23:01 woz joined #mojo
23:06 disputin joined #mojo
23:07 disputin1 joined #mojo
23:17 ua left #mojo
23:26 d4rkie joined #mojo
23:30 sh4 joined #mojo
23:33 sh4 joined #mojo
23:35 d4rkie joined #mojo
23:38 disputin joined #mojo

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