Camelia, the Perl 6 bug

IRC log for #mojo, 2011-05-20

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

All times shown according to UTC.

Time Nick Message
00:45 j3nnn1 joined #mojo
00:49 Alias joined #mojo
01:01 ispy_ joined #mojo
01:35 vel left #mojo
02:00 omega_ is now known as omega
03:37 Alias left #mojo
04:17 D4RK-PH0ENiX joined #mojo
04:18 d4rkie left #mojo
04:32 d4rkie joined #mojo
04:34 D4RK-PH0ENiX left #mojo
05:19 d4rkie left #mojo
05:20 lesnik_ left #mojo
05:26 alnewkirk|com joined #mojo
05:26 ysyrota joined #mojo
05:30 alnewkirk left #mojo
05:30 alnewkirk|com is now known as alnewkirk
05:46 koban` joined #mojo
06:14 AmeliePoulain joined #mojo
06:20 d4rkie joined #mojo
06:21 Foxcool joined #mojo
06:47 arthas joined #mojo
06:56 fhelmber_ joined #mojo
07:26 cosmincx joined #mojo
07:30 dolmen joined #mojo
07:47 koban` hi all
07:47 koban` there is no MOJO_ROUTES_DEBUG now&
07:48 koban` /&/?/
07:48 moritz there is  perl yourapp.pl routes
07:51 koban` but early it could be possible to see how current uri would be dispatched
07:51 koban` step by step
08:03 cosmincx left #mojo
08:03 cosmincx joined #mojo
08:03 marcus sri: will be able to add meetv.no to that list before the summer.
08:05 marcus http://nordaaker.com/docs/skitch/MeeTV_​-_Program_for_NRK1-20110520-100521.jpg new version will be much nicer too.
08:06 perlrocks Twitter: "@kraih: Hi Sebastian! Let me announce, www.storesto.ru based on Mojolicious::Lite. Thanks for your very good job!" --msviridenko http://twitter.com/msviriden​ko/status/71487030005202944
08:15 ajgb joined #mojo
08:33 perlrocks Twitter: "Mojolicious Multiple Vulnerabilities http://dlvr.it/SL94d" --zauberstuhl http://twitter.com/zauberstu​hl/status/71493751436091392
08:37 arpadszasz joined #mojo
08:46 Kulag left #mojo
08:46 Foxcool left #mojo
09:03 sh4 joined #mojo
09:04 Foxcool joined #mojo
09:11 tabbi joined #mojo
09:17 tabbi left #mojo
09:21 perlrocks Twitter: "use utf8; Mojolicious the secret to the Japanese 突Tsu込Ndara Untara Wide character or an error was. Encode internally without Digest:: MD5:: md5 comes out like a stuck. Specifications bug ... I mean?" (ja) --yoyo_real http://twitter.com/yoyo_rea​l/status/71505737825779712
09:52 arpadszasz left #mojo
10:12 spleenjack joined #mojo
10:13 toebu joined #mojo
10:13 dolmen left #mojo
10:15 toebu I am wrinting this application where I need to return an absolute url, pointing to myself. Is there a way to know this at application startup time, (inside sub startup ?)
10:16 sh4 left #mojo
10:17 yko url_for('foo')->to_abs
10:18 yko oh. startup... not, I don't think so
10:19 marcus there is no url at startup time
10:19 marcus you might as well just hardcode it
10:19 yko ... or set up in .conf file
10:19 yko but why would you need it at startup? registering your app somewhere?
10:23 yko left #mojo
10:23 yko joined #mojo
10:33 cosmincx left #mojo
10:47 arthas left #mojo
10:48 snearch joined #mojo
10:49 cosmincx joined #mojo
10:54 perlrocks Twitter: "#hacking #security Mojolicious Multiple Vulnerabilities http://dlvr.it/SM5Ks #slingnews" --secureslinger http://twitter.com/secureslin​ger/status/71529160400576512
11:01 dolmen joined #mojo
11:03 Sugar joined #mojo
11:04 Sugar left #mojo
11:04 Sugar joined #mojo
11:10 sh4 joined #mojo
11:47 GitHub89 joined #mojo
11:47 GitHub89 mojo: master Sebastian Riedel * 0d9ddd0 (8 files in 5 dirs): improved Mojo::JSON string escaping and moved all bundled templates to "lib/Mojolicious/templates" - http://bit.ly/l52Pby
11:47 GitHub89 left #mojo
11:47 sri since you slackers don't deliver
11:51 sh4 left #mojo
11:53 sri finally no more DATA templates in core
12:00 perlrocks Twitter: "iPhone apps <b> Android apps </ b> is back in http://is.gd/IgRLaz Mojolicious" (ja) --smart_news_jp http://twitter.com/smart_news​_jp/status/71545928565264384
12:16 cosmincx left #mojo
12:16 cosmincx joined #mojo
12:17 Akron joined #mojo
12:24 stephan48 sri: why?
12:25 sri ?
12:25 stephan48 moving templates out of DATA
12:25 sri because it's ugly
12:26 stephan48 aha
12:28 sri guess i'll upload a new release
12:30 GitHub36 joined #mojo
12:30 GitHub36 mojo: master Sebastian Riedel * 2911da5 (1 files in 1 dirs): release preparations - http://bit.ly/kv9K5O
12:30 GitHub36 left #mojo
12:33 arpadszasz joined #mojo
12:33 perlrocks Twitter: "Mojolicious 1.33 by KRAIH - http://frepan.org/~kraih/Mojolicious-1.33/" --cpan_new http://twitter.com/cpan_ne​w/status/71554193940430848
12:34 perlrocks Twitter: "Released #mojolicious 1.33 with quite a few small improvements and bugfixes, enjoy. :) http://t.co/cbSELds #perl" --kraih http://twitter.com/kraih/status/71554302027628545
12:37 sri all issues are now closed
12:39 Kulag joined #mojo
12:41 mattastrophe joined #mojo
12:42 j3nnn1 left #mojo
12:44 arthas joined #mojo
13:00 d4rkie left #mojo
13:06 d4rkie joined #mojo
13:39 snearch left #mojo
13:40 sri i wonder why --reload leaks so much
13:42 metaperl left #mojo
13:44 amoore joined #mojo
13:52 arpadszasz left #mojo
14:05 sharifulin joined #mojo
14:06 sharifulin hi everyone :)
14:06 sharifulin sri, I found small bug in Mojo::DOM
14:06 sharifulin https://gist.github.com/982949
14:07 AmeliePoulain left #mojo
14:07 sharifulin Mojo::DOM can't parse DOM tree with any element recursion
14:19 metaperl joined #mojo
14:35 toebu yko: you are right I don't need it ...
14:35 toebu grin
14:35 yko :D
14:57 GitHub117 joined #mojo
14:57 GitHub117 mojo: master Sebastian Riedel * aa8aebe (4 files in 4 dirs): fixed small Mojo::DOM HTML5 bug - http://bit.ly/mmctet
14:57 GitHub117 left #mojo
14:57 sri sharifulin: thanks, fixed
14:59 sri oh well, html is hard
14:59 sri i'm sure it's not the last bug :)
15:03 sharifulin sri, thnx, now it works :)
15:07 koban` left #mojo
15:13 sharifulin sri, please tell me, why doesn't Mojo::Util contain xml_unescape function?
15:13 d4rkie left #mojo
15:13 sri sharifulin: why would it?
15:13 sri what would it do?
15:14 sharifulin I have a text with &quot; and &amp; and want to " and & :)
15:14 moritz sharifulin: use Mojo::DOM
15:15 * sri doesn't understand
15:15 moritz sharifulin: if it's XML or HTML, MOJO::DOM will handle it for you
15:15 moritz sharifulin: if not, a xml_unescape function won't help you either
15:16 Akron Or use html_unescape.
15:16 sri ok, let me ask more specific, what could xml_unescape do that html_unescape can't?
15:17 ispy_ left #mojo
15:18 sharifulin OK, I understand, thnx moritz
15:18 dekimsey left #mojo
15:20 cosmincx left #mojo
15:25 sharifulin left #mojo
15:38 cosmincx joined #mojo
15:41 sri btw. http://cpanratings.perl.org/dist/Mojolicious # we stil need more 5 star ratings!
15:45 sri from now on i'll trade bugfixes and answers exclusively for ratings :)
15:45 metaperl left #mojo
15:55 ysyrota left #mojo
15:57 arpadszasz joined #mojo
15:57 cosmincx left #mojo
15:58 cosmincx joined #mojo
16:05 d4rkie joined #mojo
16:08 sri smells like weekend
16:10 elb0w whats ojo?
16:10 purl ojo is better for that
16:10 elb0w test
16:11 sri http://mojolicio.us/perldoc?ojo
16:11 elb0w Weird my windows got messed up, go go irssi
16:11 elb0w left #mojo
16:12 pp_ joined #mojo
16:16 * marty just created a cpan account and gave Mojolicous a 5 star rating.  :p
16:20 pp_ left #mojo
16:21 sri marty++
16:29 ajgb left #mojo
16:31 cosmincx left #mojo
16:35 mattastrophe left #mojo
16:46 Akron left #mojo
16:47 mattastrophe joined #mojo
16:50 Sugar left #mojo
16:52 dolmen left #mojo
17:00 fhelmber_ left #mojo
17:00 alnewkirk left #mojo
17:04 spleenjack left #mojo
17:05 Foxcool left #mojo
17:09 tempire hrm
17:09 tempire I just started working on the template thing yesterday
17:09 tempire oh wellz
17:11 D4RK-PH0ENiX joined #mojo
17:13 d4rkie left #mojo
17:15 sri tempire: i'd still like a more sane solution
17:15 tempire something that modifies the renderer, as opposed to slurps the file directly, I presume?
17:16 sri right
17:22 sri wonder if anyone depends on the templates being available as variables
17:23 sri (besides me)
17:23 tempire within m::controller?
17:23 sri ye, and in the perldoc plugin
17:24 sri https://github.com/kraih/mojolicio​.us/blob/master/mojolicious.pl#L13
17:24 sri i'm using a little hack
17:26 yko sri, yes :)
17:26 yko at least I depent on that
17:26 sri :,9
17:26 yko *depend
17:26 sri umm
17:26 sri :,(
17:26 yko and if you break it you'll lose such a pretty epl highlighting service as http://epl.korshak.name/ :D
17:27 yko just kidding, brake it, ill follow your changes
17:27 yko after all, it's not the first time, hehe
17:27 sri yko: could you make that look a little less like an official mojolicious site?
17:28 yko no! that was mine idea. just to do nothing about design
17:28 yko sure i will
17:28 sri :S
17:28 yko actually last 3-4 month that page was down. i bring it up only because somebody was asking
17:29 sri what are you using variable access for?
17:31 sri think i can actually use a before_render hook instead now :)
17:32 yko just nevermind. anyway i need to change design
17:32 yko actually i already did, but i don't think default nginx 502 response is a good design solution
17:39 sri hehe
17:40 yko official mojolicious look and feel was much better :p
17:44 metaperl joined #mojo
17:49 marcus I agree
17:50 dekimsey joined #mojo
17:50 marcus yko: just take the official design and witch the font to comic sans.
17:50 marcus =)
17:50 * sri dies a little inside
17:50 yko i better cut my arm off
17:51 tempire http://www.mcsweeneys.net/link​s/monologues/15comicsans.html
17:52 yko when i see comic sans and betina scipt arround on streets i want to make all young designers and their customers suffer well
17:53 yko too bad that i was one of that young designers who made this world more comicsilicious and betinicious a bit -_-
18:01 Foxcool joined #mojo
18:06 gtsafas joined #mojo
18:06 gtsafas is now known as elb0w
18:06 ispy_ joined #mojo
18:07 Foxcool left #mojo
18:21 sri https://mozillalabs.com/prospector/2011/0​5/20/lesschrome-hd-more-space-to-browse/ # interesting, this could work very well
18:27 Foxcool joined #mojo
18:40 vel joined #mojo
18:42 ispy_ left #mojo
18:43 dekimsey left #mojo
18:54 stephen left #mojo
18:56 stephen joined #mojo
19:01 tempire sri: what do you think about making template_path a settable value, like template is now?
19:01 tempire and it would default to root/templates otherwise
19:02 tempire not sure if that's a good idea, security-wise
19:02 tempire but it would allow generic template usage in all the render-* methods
19:02 tempire render_*
19:03 sri i don't like the idea of passing around absolute paths at all
19:03 sri huge can of worms
19:04 sri especially not without a very very very good/common use case
19:04 tempire I don't really like it either.  just trying to think of other ways to do this.
19:06 ispy_ joined #mojo
19:12 metaperl ok tempire we all want to know: what is 'this' that motivated your suggestion?
19:21 ispy_ left #mojo
19:29 sri hmm, wasabi peanuts... wonder how those taste
19:30 metaperl hot and spicy I'm sure
19:47 arpadszasz left #mojo
19:47 DaTa wasssabi http://www.youtube.com/watch?v=dkHJKakHMpo
19:52 sri not so hot but quite spicy
20:18 marty left #mojo
20:20 crab hi.
20:20 marty joined #mojo
20:20 arpadszasz joined #mojo
20:21 Foxcool left #mojo
20:21 perlrocks Twitter: "Geez ... Mojolicious is so sexy! Sri + +" (it) --azhraan http://twitter.com/azhraan​/status/71671960001724416
20:28 Akron joined #mojo
20:32 arpadszasz left #mojo
20:41 metaperl left #mojo
20:52 jdixon joined #mojo
20:52 jdixon ohai
20:52 jdixon is it difficult to break out routes into separate controller classes?
20:53 jdixon I was playing with it under Padrino (ruby framework) and they make it stupid simple.
20:53 jdixon it looks like something similar can be done with $r->route()->to()
20:54 jdixon but not quite the same, or nearly as transparent
21:05 jdixon anyone?
21:05 purl Somewhere, someplace, in some universe, somebody uses whatever you just asked about.
21:07 tempire http://mojolicio.us/perldoc?​Mojolicious#controller_class
21:07 tempire might be what you're looking for
21:08 tempire jdixon: ^^
21:08 * jdixon looks
21:08 jdixon tempire: might make sense if I give an example. Humor me. :)
21:09 jdixon so with Padrino I might put my routes in app/app.rb by default (similar to index.pl)
21:09 jdixon I could break out REST controller paths into separate classes by simply creating something like:
21:09 jdixon app/controllers/foo.rb
21:09 jdixon inside that:
21:09 jdixon get '/' do
21:09 jdixon "you're on /foo"
21:09 jdixon end
21:10 jdixon get '/add' do
21:10 jdixon "form to add a new foo"
21:10 jdixon end
21:10 jdixon and those would map to
21:10 jdixon /foo and /foo/add, respectively
21:10 jdixon without any additional routing magic in app/app.rb
21:11 jdixon make sense?
21:11 tempire ah, so you want to delegate it to separate files
21:11 jdixon right
21:11 yko .oO( why people forgetting about paste services )
21:11 jdixon to help keep index.pl somewhat clean and organized
21:11 tempire I don't believe there's a way to do that
21:11 jdixon sorry yko, didn't think it was that bad
21:11 tempire it kind of goes against the mojolicious design
21:11 tempire the point was to keep everything in startup()
21:12 jdixon k
21:12 tempire so as to eliminate the need for a routes command
21:12 yko tempire: nope. my startup is just sub startup { $self->apply_config->setup_db->setup_routes }
21:12 tempire still, you have anything in setup_routes
21:12 yko so you can just move out everything route-related to external file actually
21:13 tempire s/anything/everything/
21:13 yko well, you should keep everything somewhere
21:13 tempire he's saying he wants to distribute different sections to different places
21:13 tempire which reminds me of catalyst
21:14 yko o.. hmm
21:14 sri well, he could build something around mojolicious
21:14 vel left #mojo
21:14 sri the router is quite flexible
21:14 jdixon effectively it's just like sourcing everything in with includes
21:14 jdixon except that each class thinks it's the root of it's own path
21:14 sri but yea, i do not agree with the padrino design
21:14 jdixon k
21:15 sri just look at the Mojolicious::Lite code and make your own micro framework with new keywords ;)
21:15 sri it's trivial
21:16 sri make a keyword that includes other scripts and prefixes routes
21:18 sri imo lite apps should not get so big you need multiple scripts
21:19 jdixon sri: that's the one thing I really like about Ruby apps. But I'm already fed up with the idiots.
21:19 sri once you reach that point i want to see clean controller classes
21:19 * sri agrees mostly with rails there
21:20 jdixon they have some nice ideas. but the implementations are often flawed. and their users are mostly clueless.
21:22 ispy_ joined #mojo
21:28 sri lol
21:28 sri you'll like this
21:30 sri jdixon: https://gist.github.com/983862
21:30 sri that just works
21:30 metaperl joined #mojo
21:33 sri you can build pretty much everything around the router
21:34 sri i could imagine a plugin that loads all scripts in a directory for example and executes them in a lite context
21:34 jdixon oh really :)
21:34 jdixon that's cool, thanks
21:35 sri reminds me that i wanted to play with routing internals again :)
21:36 jdixon sri++
21:36 jdixon really, thanks.
21:36 jdixon I'm looking for an excuse not to go to Ruby. ;)
21:40 sri wow, iterm2 got a lot better
21:41 arthas left #mojo
21:41 amoore left #mojo
21:47 d4rkie joined #mojo
21:47 dwierenga left #mojo
21:49 D4RK-PH0ENiX left #mojo
22:00 alnewkirk joined #mojo
22:08 d4rkie left #mojo
22:10 d4rkie joined #mojo
22:17 j3nnn1 joined #mojo
22:21 D4RK-PH0ENiX joined #mojo
22:23 d4rkie left #mojo
22:41 d4rkie joined #mojo
22:43 D4RK-PH0ENiX left #mojo
22:52 GitHub68 joined #mojo
22:52 GitHub68 mojo: master Sebastian Riedel * 1736d55 (1 files in 1 dirs): added some more embedding tests - http://bit.ly/l2EkbL
22:52 GitHub68 left #mojo
22:57 ispy_ left #mojo
23:05 ispy_ joined #mojo
23:18 marty left #mojo
23:34 Akron left #mojo
23:41 D4RK-PH0ENiX joined #mojo
23:43 d4rkie left #mojo

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