Camelia, the Perl 6 bug

IRC log for #mojo, 2010-09-20

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

All times shown according to UTC.

Time Nick Message
00:23 awnstudio joined #mojo
00:26 awnstudio left #mojo
00:27 alnewkirk|com joined #mojo
01:21 stephan49 left #mojo
01:21 stephan48 joined #mojo
01:39 sri http://www.engadget.com/photos/fu​jifilm-x100-press-shots/#3379234 # wow, very pretty camera
01:40 sri love the retro look
02:35 janus left #mojo
02:42 janus joined #mojo
03:46 xantus joined #mojo
03:46 xantus hi
03:49 xantus I'm getting \xa0 from    -  perl -MMojo::ByteStream -le 'import Mojo::ByteStream "b"; print b( "test 123" )->html_unescape->to_string;
03:56 xantus ...I've read that thats correct, but it doesn't make sense to me
04:03 tl joined #mojo
04:05 tholen42 left #mojo
04:06 Kulag left #mojo
04:07 Kulag joined #mojo
04:33 sri don't ask me, i just implement the specs ;p
04:46 Kulag left #mojo
05:21 koban joined #mojo
05:24 ysyrota joined #mojo
05:29 vti moin
05:52 koban left #mojo
06:02 und3f[A] is now known as und3f
06:15 esskar moin
06:23 kvorg left #mojo
06:34 Rhaen moin!
06:38 koban joined #mojo
06:38 DM joined #mojo
06:41 sri moin
06:44 koban left #mojo
06:48 Rhaen moin sri
06:49 koban joined #mojo
06:55 koban left #mojo
06:55 und3f is now known as und3f[A]
06:59 spleenjack joined #mojo
07:07 kvorg joined #mojo
07:32 jest joined #mojo
07:58 GitHub32 joined #mojo
07:58 GitHub32 mojo: master Sebastian Riedel * 2e3824e (2 files in 2 dirs): fixed a serious TLS handshake bug in Mojo::IOLoop - http://bit.ly/c82Lqg
07:58 GitHub32 left #mojo
07:58 sri und3f[A]: fixed :)
07:58 sri it is actually by design
08:00 esskar so it wasnt a IO::Socket::SSL bug?
08:01 sri nope, it makes sockets disappear by design :)
08:02 sri i need to pass it a callback to be able to react
08:03 sri wonky design but at least fixable
08:05 esskar see it
08:06 sri it also seems to depend on the verification mode
08:06 sri so depending on that sockets disappear
08:07 esskar does template parameter in render_partial supports a template string?
08:07 esskar like '<title><%= $title %></title>'
08:07 sri no
08:08 esskar is there a way to do it?
08:08 sri don't think so
08:09 sri think we talked about adding that feature some time ago
08:09 sri but it would make adding new renderers even harder for very limited value
08:10 sri after all templates are already dynamic
08:10 sri a dynamic layer for a dynamic layer seems weird :)
08:14 perlrocks Twitter: "The IO::Socket::SSL bug wasn't actually a bug, just wonky behavior. http://bit.ly/9j7XvH #perl #mojolicious" --kraih http://twitter.com/kraih/status/25007965110
08:16 esskar well, if the innertemplate comes from somewhere else, it's a beauty
08:16 esskar <title runat="server"><%= $itle %></title>
08:17 esskar may idea is to check for runat="server" attributes
08:17 esskar and run it through the template engine
08:19 sri a meta template engine
08:20 esskar yes
08:20 sri the big question is, why?
08:20 esskar just because "i need it"
08:20 esskar it's not for the fun of it :)
08:20 sri you mean "i want it" :)
08:21 esskar it would make the CMS features more powerful
08:22 esskar sri, you want it? nice. go for it! ;)
08:22 sri let me think about it for a bit
08:23 sri i'd rather not extend the current renderer api, but there might be another way
08:23 esskar i have to options
08:23 esskar i just use Mojo::Template myself
08:24 esskar or i store the template string as a temporary file and give it the handle to it
08:25 sri hmm, no, doesn't look like i can help much this time
08:25 sri renderers would have to be rewritten from scratch
08:29 jest left #mojo
08:30 sri there is a solution that would require an extension to the core api
08:31 sri $self->render(inline => '<title><%= $title %></title>', handler => 'ep');
08:31 sri that could work with a few changes
08:31 sri but it would be a new special stash key and make renderers a little more complicated
08:41 DM left #mojo
08:55 xantus left #mojo
08:55 esskar i see mojo does not care to cleanup tempfiles!?!
08:56 sri of course it does
08:56 sri you leak memory if it doesn't
09:00 esskar my tempfolder is full of mojo.tmp.* files
09:00 sri so you leak
09:00 esskar why me?
09:00 sri because it's a common question
09:01 sri tempfiles get cleaned up in a DESTROY
09:01 sri if they don't you leak
09:01 sri we've had that question yesterday on the mailing list :)
09:01 esskar it's probably when stopping the server with CTRL^C
09:02 sri nope, DESTROY still runs
09:02 esskar can i read the mailing list somewhere without subscribing?
09:03 sri http://groups.google.com/group/mojolicious
09:04 xantus_ left #mojo
09:04 xantus joined #mojo
09:05 esskar i do not do anything with request objects !?!
09:06 esskar at least i do not be aware of
09:06 sri it's the controller instance most likely
09:06 sri you pass it to  some callback and boom you leak
09:06 sri just use Devel::Cycle
09:06 sri find_cycle($c) and all will be clear
09:10 jest joined #mojo
09:23 Rhaen hm, maybe I overlooked it. Is there a way to dump the stash to a template for debugging purposes?
09:23 Rhaen Something like Data::Dumper
09:31 su-bzero_ May be <%== dumper $something %> ?
09:32 xantus left #mojo
09:32 xantus joined #mojo
09:36 GitHub130 joined #mojo
09:36 GitHub130 mojo: master Sebastian Riedel * e4f1725 (8 files in 6 dirs): added experimental support for inline rendering to Mojolicious - http://bit.ly/cAuZKc
09:36 GitHub130 left #mojo
09:36 sri esskar: ^^^
09:36 sri highly experimental for now
09:37 sri give me feedback
09:37 esskar i'l check
09:38 arthas joined #mojo
09:38 perlrocks Twitter: "Added experimental support for inline rendering to #mojolicious, let me know what you think. http://bit.ly/aQ9CUI #perl" --kraih http://twitter.com/kraih/status/25011555219
09:40 sri vti: something new to add to the TT renderer ;p
09:41 vti sri: ye
09:41 sri vti: you requested inline rendering originally right?
09:42 sri good thing the experimental feature policy gives me the freedom to try such things now :)
09:43 esskar \o/
09:43 esskar pleace ping me if you decide to remove it
09:44 sri it even gets the caching treatment for now
09:44 sri not sure if thats wise
09:45 sri i guess not
09:45 esskar md5 checksums?
09:45 sri ye
09:45 esskar that was my idea for the workaround
09:46 sri i'm unsure about it
09:46 DaTa_ is now known as DaTa
09:47 esskar why?
09:47 esskar it's always the same
09:48 sri it could be used for templates stored in a database
09:48 esskar so cacheing is perfect
09:48 esskar so?
09:48 sri if it gets changed a hundred times you have 100 templates cached
09:49 esskar limit the cache ;)
09:49 sri hmm
09:49 sri and pick random what to remove?
09:51 koban joined #mojo
09:51 esskar fifo
09:52 sri not very elegant
09:52 esskar lilo ;)
09:53 esskar $self->render(inline => '<title><%= $title %></title>', handler => 'ep', cache => 0); ?
09:54 sri no more stash keys
09:54 esskar $ENV{MOJO_RENDERER_NOINLINECACHE}
09:54 sri that would make marcus cry
09:55 esskar who is marcus?
09:55 esskar ;)
09:56 sri i tend towards just disabling the cache
09:56 sri since you could use the cache helper to partial cache
09:57 sri <%= cache begin %><%= include inline => $foo %><% end %>
09:57 sri that would cache the actual result in memory
09:57 sri ok well, maybe not the same
10:00 sri a cache limit is the best idea
10:07 perlrocks Twitter: "\o/ RT: @kraih: Added experimental support for inline rendering to #mojolicious, let me know what you think. http://bit.ly/aQ9CUI #perl" --esskar http://twitter.com/esskar/status/25012811121
10:11 GitHub185 joined #mojo
10:11 GitHub185 mojo: master Sebastian Riedel * 578e434 (2 files in 2 dirs): limit template caching - http://bit.ly/drmYDj
10:11 GitHub185 left #mojo
10:11 sri that might be the best solution
10:13 sri ops
10:21 esskar sri, http://github.com/esskar/lu​zy/blob/master/t/resolver.t
10:22 esskar fun stuff
10:22 sri you mean crazy :)
10:22 GitHub63 joined #mojo
10:22 GitHub63 mojo: master Sebastian Riedel * dec4dfd (1 files in 1 dirs): cleanup - http://bit.ly/a8yrwd
10:22 GitHub63 left #mojo
10:24 esskar i like it
10:27 perlrocks Twitter: "Added MOJO to Luzy: http://github.com/esskar/lu​zy/blob/master/t/resolver.t #Luzy #CMS #perl #mojolicious" --esskar http://twitter.com/esskar/status/25013741716
10:39 koban left #mojo
11:01 koban joined #mojo
11:13 forwardever joined #mojo
11:14 GitHub40 joined #mojo
11:14 GitHub40 mojo: master Sebastian Riedel * 3b5c774 (2 files in 1 dirs): cleanup - http://bit.ly/bANb74
11:14 GitHub40 left #mojo
11:22 koban left #mojo
11:28 omega_ sri: any idea when your gonna push a new release to cpan? We had to turn of a cache in production due to a keep alive/cache issue that marcus was on about
11:29 sri omega_: few days
11:29 omega_ my operations guy says he will love you long time if you push a release :p
11:29 sri heh
11:33 omega_ I think we will try to backport the fix then, shouldn't be too hard?
11:33 omega_ or is master on GH stable?
11:38 sri master is really good atm
11:40 omega_ ok
11:41 Eugene joined #mojo
11:43 koban joined #mojo
11:43 Eugene hi. I'm a newbie in Mojo and have a question about adding basic auth to my application. Can anyone help me?
11:43 * sri waves
11:44 koban sri: does old template syntax deprecated but work?
11:45 sri not deprecated yet
11:45 koban aha, thanks
11:46 sri Eugene: just ask your question
11:47 sri Eugene: there's a plugin for basic auth on cpan i think
11:47 Eugene ok cheers. I have "my $authed = $r->bridge->to('auth#check');" and then inside app::Controller::Auth::check..
11:47 Eugene return 1 if $self->helper(basic_auth => realm => name => 'password');
11:47 Eugene but it doesnt work
11:47 Eugene whats wrong here?
11:49 Eugene "doesnt work" - no auth window
11:49 sri hmm, wasn't there a bug in the cpan version of mojolicious regarding bridge authentication?
11:49 Eugene well, shall try to install the latest mojo from github now...
11:52 vti sri: i think we can easily do the same with mojolicious http://thechangelog.com/post/1152112645 :)
11:53 sri vti: easily
11:53 vti oh, twitter supports gists
11:53 sri yay for new twitter
11:54 sri vti: that twitter thingy is very underwhelming, nothing we havn't seen a few thousand times
11:57 vti just searching for ideas... new mojolicious project, you know
12:01 sri you could port mojomojo to mojolicious :D
12:02 vti oh, ye, job for two hour
12:02 vti +s
12:02 Eugene now I have "The page you were requesting "/" could not be found". Is there working example of using basic auth in Mojo somewhere on github?
12:02 sri or a real time wiki
12:02 sri Eugene: i think the basic auth plugin changed completely, it is on guthub too
12:03 Eugene hmm..ok, trying it..
12:05 sri Eugene: but 404 sounds like your bridge returned a false value and you rendered nothing before
12:05 sri proper use is shown in the routing guide
12:06 Eugene ok, thanks, I'll check everything one more time. But are there any mojo projects on github that have an example of using basic auth?
12:07 sri don't think so
12:07 Eugene I see. Ok
12:08 sri if you're having problems with the plugin you can also do it manually via my $userinfo = $self->req->url->to_abs->userinfo;
12:08 Eugene hm, interesting, thanks
12:11 Eugene left #mojo
12:30 Rhaen hm, should be something for a doc request, hm?
12:30 Rhaen Mojolicious code example for basic auth :)
12:31 sri considering we don't have real "support" in the core i'd say rather not
12:32 Rhaen hm, true. Maybe actually that's something to point out. As far as I understand the documentation we have auth based on session/cookie information, right?
12:36 sri right
12:51 marcus_ http://github.com/shoorick/​mojowka/blob/master/mojowka
12:59 perlrocks Twitter: "Mojolicious:: Lite with, Text:: XSlate be able to use - Memememomo http://htn.to/Efa2xe" (ja) --nabetama http://twitter.com/nabetama/status/25022705959
12:59 Kulag joined #mojo
13:09 Eugene joined #mojo
13:19 Eugene hi guys. One more question: are there any other examples of mojolicious (not ::lite ones) applications on github except vti's mojolicious-apps?
13:20 und3f[A] is now known as und3f
13:20 sri don't think there are many, people tend to use mojolicious more for serious apps that don't go open source
13:21 sri and mojolicious::lite for fun experiments
13:21 Eugene fair enough. ok cheers
13:21 sri generally that shouldn't be a problem though, since lite and normal apps are very very similar
13:23 su-bzero joined #mojo
13:24 Eugene well, yes, but syntax is more or less different. it's much easier to have application of the same class you use at your first steps with Mojo
13:24 sri i expect new users to learn lite first ;)
13:25 sri and then move on
13:25 sri stuff like "under" in mojolicious::lite is a simplified form of bridges, perfect for learning the concept
13:27 sri that way usually works very well, it's mostly just those who jump into normal mojolicious right away that are having problems ;)
13:27 Eugene true :) I decided to start with non-lite since in all lite examples templates were in the same file as other logic.. now I understand it's not a problem :) probably makes sense to be back to lite :)
13:28 su-bzero_ left #mojo
13:30 oxxi joined #mojo
13:30 oxxi hi mojo guys! :)
13:30 * sri waves
13:31 oxxi does the charset plugin decode the param data?
13:32 sri affirmative
13:34 oxxi having some problems with russion characters and euro characters - they don't go through to my sqlite db ... :/
13:34 oxxi I think it's not a mojo problem...
13:35 sri sounds like a usual perl + encoding problem
13:35 vti russia encodes you
13:36 sri best thing to do is read up on perl and unicode
13:36 sri it's a complicated topic
13:36 oxxi so using the charset plugin leads to unicode perl "chars"?
13:37 sri perls internal representation has nothing to do with it
13:37 sri but yes, we try to turn everything into "chars"
13:38 sri so you are responsible for encoding it again for output
13:38 oxxi May be I just have to re-encode it for my database...
13:39 sri http://www.slideshare.net/Penfold/perl-and-unicode # this explains the topic very well
13:40 oxxi OK, thanks for now! :)
13:41 oxxi left #mojo
13:52 tempire_ joined #mojo
13:53 tempire_ Eugene: are you using mojo from github or cpan?
13:56 alnewkirk|com left #mojo
14:00 tempire_ Eugene: just make sure you line them up.  cpan mojo works with cpan basicauth plugin.  github mojo works with github basicauth.
14:05 Eugene (was away). I see. I already did basic auth in nginx, but thanks anyway.
14:18 tempire_ left #mojo
14:33 Htbaa joined #mojo
14:40 tempire_ joined #mojo
14:43 a|newkirk[assoc] joined #mojo
14:54 arpadszasz joined #mojo
15:00 koban left #mojo
15:01 jest left #mojo
15:02 Eugene left #mojo
15:05 Htbaa left #mojo
15:31 ysyrota left #mojo
16:16 und3f sri, TLS works perfectly \o/
16:16 und3f sri, thanks
16:54 spleenjack left #mojo
16:57 a|newkirk[assoc] hmmmm..., interesting!
17:07 esskar_ left #mojo
17:12 forwardever hello, i have a question regarding sessions,signed cookies and security
17:14 forwardever as far as I understand the code, if someone steals a session, a login is possible, even if the user has logged out, but only as long as the session is valid, is that correct?
17:14 a|newkirk[assoc] im conducting an experiment whereby i've setup a free web hosting account w/netfirms (perl 5.8.3), using the framework lib and a m::lite script, doesnt seem the render anything though...
17:29 tempire_ 5.8.3!
17:29 tempire_ I believe mojolicious supports 5.8.8+
17:30 tempire_ If you have shell access, use perlbrew to install a more recent version of perl to your user account.
17:32 Rhaen according to Makefile.PL Perl 5.8.7 is needed
17:33 Rhaen so....close :)
17:42 a|newkirk[assoc] its a free web hosting account from Netfirms (no shell access)
17:45 Rhaen uh - oh, I know this plroblem
17:52 perlrocks left #mojo
17:53 spleenjack joined #mojo
17:54 tempire_ set up an ec2 micro instance.  run it only during the hours you use it, costs 2 cents per hour.
17:55 tempire_ not worth bothering with a 6 year old perl
17:55 tempire_ left #mojo
17:57 a|newkirk[assoc] the point is i doesn't run (i dont mean that in a harsh way)
18:01 keith joined #mojo
18:10 Rhaen :)
18:10 Rhaen well, well - having such an old perl is really painful
18:11 Rhaen Fortunatelly I can use my small home device for such stuff as Perl playarounds
18:11 Rhaen so if I need something dynamic - I can access my home device
18:11 Rhaen it's slow but it's working.
18:11 und3f sri, now IOLoop client start to load CPU 100% after disconnect
18:17 Htbaa joined #mojo
18:23 tempire_ joined #mojo
18:23 spleenjack1 joined #mojo
18:23 tempire_ left #mojo
18:27 spleenjack left #mojo
18:44 arthas left #mojo
18:48 tempire_ joined #mojo
19:18 xantus_ joined #mojo
19:19 xantus_ sri: ping
19:22 esskar_ joined #mojo
19:22 GabrielVieira2 joined #mojo
19:23 esskar_ has something been changed to Mojo::DOM today?
19:24 esskar_ $dom->parse('<hr /><br /><br /><br />');
19:24 esskar_ produces something like
19:24 esskar_ <hr><br><br><br /></br></br></hr>
19:28 GabrielVieira left #mojo
19:41 Rhaen_ joined #mojo
19:42 xantus_ left #mojo
19:46 Rhaen left #mojo
19:46 Rhaen_ is now known as Rhaen
19:54 Htbaa left #mojo
19:55 MojoGuest919 joined #mojo
19:55 MojoGuest919 From: http://www.google.com/search?sourceid=c​hrome&amp;ie=UTF-8&amp;q=websocket+demo (1 hits)
20:05 a|newkirk[assoc] left #mojo
20:06 Rhaen re-hep!
20:14 MojoGuest919 ola
20:15 MojoGuest919 ls -la
20:15 Rhaen .
20:15 Rhaen ..
20:15 Rhaen mojo.pl
20:15 MojoGuest919 left #mojo
20:15 Rhaen 1 file, 0 directories
20:32 stephan48 left #mojo
20:48 stephan48 joined #mojo
20:57 a|newkirk[assoc] joined #mojo
21:02 arpadszasz left #mojo
21:07 a|newkirk[assoc] left #mojo
21:09 a|newkirk[assoc] joined #mojo
21:21 tempire_ left #mojo
21:38 xantus wow, this is still connected...
21:39 xantus is now known as xantus_
21:44 dotan joined #mojo
21:53 meraxes left #mojo
21:55 und3f is now known as und3f[A]
22:00 spleenjack1 left #mojo
22:18 dotan left #mojo
22:37 a|newkirk[assoc] left #mojo
22:38 a|newkirk[assoc] joined #mojo
22:46 jawnsy left #mojo
22:53 jawnsy joined #mojo
22:53 polvo joined #mojo
23:10 a|newkirk[assoc] left #mojo
23:15 a|newkirk[assoc] joined #mojo
23:24 sri left #mojo
23:24 _sri joined #mojo
23:24 tholen42 joined #mojo
23:24 fish_ left #mojo
23:24 fish_ joined #mojo
23:24 plu left #mojo
23:24 plu joined #mojo
23:24 memowe left #mojo
23:24 su-bzero left #mojo
23:24 tl left #mojo
23:24 ilbot2 joined #mojo
23:24 Topic for #mojo is now ♥ Join the revolution! ♥ | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
23:24 lee7 left #mojo
23:25 kvorg left #mojo
23:27 stephan48 left #mojo
23:28 plu_ joined #mojo
23:28 _sri left #mojo
23:28 sri joined #mojo
23:28 memowe joined #mojo
23:29 fish__ joined #mojo
23:29 al left #mojo
23:29 plu left #mojo
23:31 fish_ left #mojo
23:34 memowe left #mojo
23:35 su-bzero joined #mojo
23:35 stephan48 joined #mojo
23:36 lee7 joined #mojo
23:39 al joined #mojo
23:40 kvorg joined #mojo
23:41 memowe joined #mojo
23:45 memowe left #mojo
23:46 memowe joined #mojo
23:49 bedi joined #mojo
23:49 plu joined #mojo
23:49 peters_mops left #mojo
23:51 al left #mojo
23:53 plu_ left #mojo
23:56 plu left #mojo
23:56 plu joined #mojo

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