Camelia, the Perl 6 bug

IRC log for #mojo, 2011-02-07

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

All times shown according to UTC.

Time Nick Message
00:26 perlrocks Twitter: "Welcome guest lecturer's announcement @ yusukebe Hokkaido.pm # 2 4 / 19 will be held! The two-part system of morning and afternoon, morning @ charsbar Mojolicious's hands in the afternoon a talk tech. We welcome beginner's! http://goo.gl/q5YzW" (ja) --hokkaidopm http://twitter.com/hokkaido​pm/status/34407623180685312
00:28 perlrocks Twitter: "I want to go. RT @ hokkaidopm: welcome to the guest lecturer's announcement @ yusukebe Hokkaido.pm # 2 4 / 19 will be held! The two-part system of morning and afternoon, morning @ charsbar Mojolicious's hands, ... http://goo.gl/q5YzW pm" (ja) --hiratara http://twitter.com/hiratar​a/status/34408051360407552
00:48 ryan joined #mojo
01:35 metaperl joined #mojo
01:44 perlrocks Twitter: "FormValidator:: Lite, Mojolicious I'm worried a little when the behavior when using an array of values in" (ja) --rin1024 http://twitter.com/rin1024​/status/34427328897490944
02:04 GabrielVieira2 joined #mojo
02:04 GabrielVieira left #mojo
02:14 ltriant joined #mojo
02:38 daviddelikat left #mojo
02:38 metaperl left #mojo
03:07 ispy_ left #mojo
03:09 ispy_ joined #mojo
03:13 ispy_ left #mojo
03:14 daviddelikat joined #mojo
03:17 ispy_ joined #mojo
04:03 tl joined #mojo
04:05 tholen42 left #mojo
04:28 dj joined #mojo
04:58 ispy_ left #mojo
05:03 ryan left #mojo
05:42 kaare joined #mojo
05:54 dj left #mojo
06:18 vel left #mojo
06:26 MojoGuest192 joined #mojo
06:27 MojoGuest192 left #mojo
06:27 MojoGuest829 joined #mojo
06:32 ltriant left #mojo
06:34 MojoGuest829 left #mojo
06:34 MojoGuest677 joined #mojo
06:47 MojoGuest677 test message
06:55 jwang joined #mojo
07:17 MojoGuest677 left #mojo
07:19 koban joined #mojo
07:28 esskar joined #mojo
07:30 dj joined #mojo
07:39 pid joined #mojo
07:39 marcus messed testage
07:40 Christian joined #mojo
07:41 Christian morning
07:42 dj left #mojo
07:43 AmeliePoulain joined #mojo
07:45 crab why does "amelie poulain" sound so familiar? is it a book or something?
07:48 crab ah, a film.
07:55 MojoGuest920 joined #mojo
07:55 MojoGuest920 left #mojo
07:56 MojoGuest977 joined #mojo
07:59 MojoGuest977 left #mojo
08:00 breaker313 joined #mojo
08:00 otaviof left #mojo
08:02 marcus crab: Le Fabuleux destin d'Amélie Poulain
08:07 zipkid crab: and a very good film it is too :-)
08:24 AmeliePoulain =)
08:30 AmeliePoulain I need to storu routes in the database. I'm using routes like ->route('/:controller/:action/:id'), ->route('/:controller/:action/:id/:obj'), ->to(namespace => '...', action => '...', id => '...', [obj => '...']) (don't ask, why:) First part (->route('...')) isn't a problem but I don't understand how to store second part (->to(...)) because I can use it not only with namespace|controller|action|id
08:30 AmeliePoulain I think eval() isn't good idea
08:31 ysyrota joined #mojo
08:33 moritz to() basically receives a flattened hash
08:33 moritz so you need to store something hash-like in the database
08:33 moritz or if you always have the same keys, just one column per key
08:34 moritz or am I missing the real difficulty?
08:34 AmeliePoulain I have no always same keys, this is a problem, not others
08:35 moritz create table hash(id, hash_id, key, value) -- + data types
08:35 snearch joined #mojo
08:37 AmeliePoulain OK, 10x.
08:37 AmeliePoulain I'll think about it
08:38 moritz if you don't need the keys or values queryable in the DB, you can also just use Storable or so, and store the hash in a blob
08:50 AmeliePoulain moritz, thanks. Storable is more interesting :)
08:56 perlrocks Twitter: "Take a look at how grate is #mojolicius RT @tempiretech tempire at blogs.perl.org: Easy DOM parsing with Mojo::DOM http://bit.ly/hEh6os" --ttyS1 http://twitter.com/ttyS1/status/34535943381852160
09:18 spleenjack joined #mojo
09:19 snearch left #mojo
09:28 otaviof joined #mojo
09:34 spleenjack left #mojo
09:35 crab why are you trying to save routes in a database?
09:35 spleenjack joined #mojo
10:05 daviddelikat1 joined #mojo
10:07 Kulag left #mojo
10:09 Kulag joined #mojo
10:09 AmeliePoulain I have first (core) routes, second routes (from the other plugins) and last routes (route to Pages controller if the path didn't match before). Problem is plugins which loaded after the Core plugin and "last" routes
10:10 daviddelikat left #mojo
10:10 AmeliePoulain I want to set the "first" routes then load other routes from the database then set the "last" routes
10:18 Kulag left #mojo
10:18 Kulag joined #mojo
11:12 y0j joined #mojo
11:13 crab it sounds like you're already being punished.
11:23 ispy_ joined #mojo
11:31 rupertthehacker joined #mojo
11:31 breaker313 left #mojo
11:44 Drossel joined #mojo
11:46 Kulag left #mojo
12:05 jwang left #mojo
12:16 breaker313 joined #mojo
12:35 AmeliePoulain left #mojo
13:29 rhaen joined #mojo
13:29 rhaen omfg!
13:30 rhaen I'll start my first productive mojo app for my employer tomorrow!
13:30 marcus phear
13:30 rhaen marcus: true
13:31 marcus rhaen: guess we'll be seeing you around a lot in the next couple of weeks then ;)
13:31 rhaen haha :) Nah, it'll work flawlessly.
13:31 rhaen But its so mojo.
13:31 rhaen cool!
13:36 kaare left #mojo
13:41 mateu joined #mojo
13:54 crab hi mateu.
13:57 marcus mateu: hugs!
13:57 MojoGuest831 joined #mojo
13:57 MojoGuest831 From: http://www.google.co.in/search?hl=en&client=sa​fari&&sa=X&ei=y_lPTZncLITsrAeMl_TZBg&a​mp;ved=0CEIQBSgA&q=websocket+demo&spell=1 (1 hits)
13:58 MojoGuest831 left #mojo
14:04 kaare joined #mojo
14:17 MojoGuest954 joined #mojo
14:17 MojoGuest954 From: http://www.networkedblogs.com/33Knp (54 hits)
14:17 MojoGuest954 yo
14:17 MojoGuest748 joined #mojo
14:17 MojoGuest748 From: http://www.networkedblogs.com/33Knp (55 hits)
14:18 MojoGuest954 hehe
14:18 MojoGuest954 awesome
14:18 MojoGuest954 websockets :P
14:18 MojoGuest748 fast?
14:18 purl fast is probably so much sexier than "Gets you there" or slower when you're doing it
14:18 MojoGuest748 let's
14:18 MojoGuest748 see
14:18 MojoGuest748 yup
14:18 MojoGuest748 nice
14:18 MojoGuest748 was kicked by sri: MojoGuest748
14:18 MojoGuest748 joined #mojo
14:18 MojoGuest748 left #mojo
14:18 MojoGuest954 left #mojo
14:30 ispy_ left #mojo
14:30 ispy_ joined #mojo
14:33 su-bzero_ joined #mojo
14:34 Foxcool joined #mojo
14:35 crab marcus: so what did you find with the tutorial app anyway?
14:45 ispy_ left #mojo
14:45 ispy_ joined #mojo
14:50 marty joined #mojo
15:04 bellaire1 joined #mojo
15:17 Foxcool left #mojo
15:20 memememomo_ is now known as memememomo
15:21 memememomo is now known as memememomo_
15:22 * sri wonders if he can release 1.02
15:24 sri marcus: btw. there are a few more variables your benchmark did not take into account
15:24 sri response size for example
15:24 sri i wonder if a more realistic html response changes results, io costs a lot after all
15:25 sri also number of routes
15:25 sri what if you put say 20 routes in front of the matching one
15:27 dekimsey joined #mojo
15:28 metaperl joined #mojo
15:28 Foxcool joined #mojo
15:31 marcus sri: yeah. dancer guys also want me to enable route caching :p
15:32 marcus sri: they are reading the irc logs from here and deciding you are still an asshat :D
15:32 sri lol
15:32 marcus (http://irclog.perlgeek.de/search.pl?​channel=mojo&nick=&q=dancer)
15:32 * sri waves
15:32 marcus eye in the sky
15:33 stephan48 marcus: do they have a irc log too?
15:33 marcus stephan48: irc log for this channel is public
15:33 stephan48 i know
15:33 marcus oh, you mean, do they have a public irc log
15:33 stephan48 yap
15:34 marcus 16:34 marcus: #mojo is wondering if this channel has a public irc log too. ;)
15:34 moritz if they want one, I can provide it for them too :-)
15:34 moritz though I don't know if they can stand having logs for mojo and dancer stored on the same server :-)
15:34 sri guess i am an asshat at times
15:34 stephan48 hehe
15:35 sri but i'm working on it!!!
15:35 marcus I'd rather have an asshat than an asslicker
15:35 sri you sure?
15:35 purl you sure are purdy
15:35 marcus I'm here, aren't I?
15:36 sri did you just...?
15:36 sri heh
15:36 marcus hmm?
15:36 sri you called me an asshat
15:37 marcus well, so did you!
15:37 * sri waits for the obligatory youtube link
15:38 marcus sri: http://attrition.org/postal/asshats/asshat.jpg
15:38 sri nonono, i just guessed!
15:39 sri i'm adding a route result cache btw
15:39 sri that should make sure we always win the massive amount of routes benchmarks
15:40 yko benchmarks lies!
15:40 * yko waves
15:40 yko tests too :(
15:40 * sri pats yko
15:41 sri i even thought about an apachebench special case to make micro benchmarking harder :D
15:42 marcus :p
15:46 ato joined #mojo
15:46 ato How does Mojolicious deal with i18n in URLs?
15:46 sri that's up to you
15:46 ato E.g. if I want to have English URLs in my code, like /new, but would like them to appear localized, like /neu (German).
15:47 sri nothing built in for that
15:47 marcus 16:47 sukria: marcus: to be frank I would really appreciate to have peace between mojo and dancer, really
15:48 ato sri: So what would be the correct approach, maintaining an htaccess file with redirects?
15:48 sri marcus: like i ever started a fight ;p
15:48 marcus sri: ever the diplomat =)
15:49 marcus ato: you could maybe write a route shortcut to do translations
15:49 sri that's what you're here for!
15:49 marcus it's a BRAND NEW feature.
15:49 sri would actually be a fun case for a shortcut plugin
15:50 sri it could use google translate!!! :D
15:50 ato Oh god no.
15:50 crab i didn't realise we were in a state of war
15:50 marcus ato: shortcuts is a new feature in the upcoming 1.02
15:50 yko Mojolicious->get can haz restrictive placeholder?
15:50 rhaen jo guys!
15:50 sri haha, that would be hilarious
15:50 marcus crab: we just settled. sri has to give his sister to sukria
15:50 sri $r->i18n_route('/hello', qw/en de fr/)
15:50 marcus and there will be peace!
15:50 rhaen Is hypnotoad ready for production so far?
15:51 sri it could google translate the route
15:51 marcus rhaen: I am using it in production
15:51 rhaen sri: hej sri!
15:51 rhaen Yay, I am alive
15:51 rhaen marcus: awesome - thanks.
15:51 sri marcus: my sister is a real badass
15:52 marcus sri: so you're saying she might object to being treated as war-settlement?
15:52 rhaen he ignores me!
15:52 marcus rhaen: you are welcome
15:52 * sri bonks rhaen on the noggin
15:53 rhaen ah!
15:53 rhaen marcus: thank you very much!
15:53 sri marcus: she would kick both of our asses :/
15:54 sri yes, people are running hypnotoad in production
15:55 sri but it still has the experimental sticker
15:55 sri i have no plans to change it but who knows
15:56 ispy_ left #mojo
15:56 ato left #mojo
15:56 perlrocks Twitter: "Mojolicious:: Guides:: Routing finished reading. http://j.mp/hFMKAv / / This next Google Translator Tool Kit Guides:: Rendering of the POD and surprise rate increase already translated ... I hoped, was 16 percent." (ja) --tsukamoto http://twitter.com/tsukamot​o/status/34641636193476608
15:56 marcus 16:56 ato: How does Dancer deal with i18n in URLs?
15:56 marcus :-/
15:57 sri argh
15:58 * sri bets on #catalyst next
15:58 marcus actually, he started in #perl.no
15:58 sri xD
15:58 marcus 14:56 ato_: Hvordan løser Mojolicious i18n i URLer?
16:01 perlrocks Twitter: "Mojolicious Japanese translation project but a great document, "the translation Github be accommodated in the new repository," that is a shame that I do not know which version is eventually translated in fact Guides:: Routing version 1.01 I was missing Terurashiki been added." (ja) --tsukamoto http://twitter.com/tsukamot​o/status/34642919763746816
16:02 Christian nice evening to you all
16:02 * sri waves
16:02 Foxcool left #mojo
16:02 Christian left #mojo
16:04 perlrocks Twitter: "In, Mojolicious unfinished portion comfortably well trained as translation memory stick document Petapeta Japanese translation project results, but it was scheduled, most likely starting against'll read once and directly translating English text into 突Ki合Wasezu I'm a nerd. Translated into a different feeling while another version in that respect." (ja) --tsukamoto http://twitter.com/tsukamo​to/status/3464373952787251
16:08 gizzlon lol^
16:12 jamesw joined #mojo
16:13 otaviof left #mojo
16:14 Foxcool joined #mojo
16:18 Foxcool left #mojo
16:18 koban left #mojo
16:42 mateu crab, marcus hey.
16:42 mateu public log++
16:42 mateu marcus++ # see you've been busy
16:58 breaker313 left #mojo
17:16 sri i guess there is now a peace treaty between mojolicious and dancer
17:17 stephan48 wtf? how is that possible?
17:18 otaviof joined #mojo
17:21 * mateu challenges sri 's sister to a leg wrestling match
17:24 tholen joined #mojo
17:27 Foxcool joined #mojo
17:28 vel joined #mojo
17:33 yegor joined #mojo
17:42 ysyrota left #mojo
17:43 DaTa what's wrong about doing research?
17:43 liam23 joined #mojo
17:45 liam23 Just been playing around with mojo - do I have to specify each and every route? For example in lib/MyApp/Test.pm there is sub welcome - it does not seem to come up on localhost/test/welcome unless I add $r->route('/test/welcome')->to('test#welcome'); - did I set something up wrong?
17:45 perlrocks Twitter: "Dangerous, if I earnestly pursuing Mojolicious Plack and code, not the time for three or more ..." (ja) --shiba_yu36 http://twitter.com/shiba_yu​36/status/34669005251809280
17:45 sri liam23: you might want to read the guides
17:46 sri routes are insanely flexible
17:46 liam23 sri: under https://github.com/kraih/mojo/wiki ?
17:46 sri http://mojolicio.us/perldoc
17:46 sri newly generated apps include it too
17:48 liam23 i love the perldoc look on those - the main cpan should be updated like that
17:49 pid left #mojo
17:50 liam23 I am looking under http://mojolicio.us/perldoc?Mojoli​cious/Guides/Routing#Minimal_Route
17:52 sri :)
17:53 liam23 but almost all mention a controller and action to go to.
17:53 liam23 $r->route('/bye')-> .... for example
17:53 sri read everything
17:54 sri http://mojolicio.us/perldoc?Mojolicious/Gu​ides/Routing#Placeholders_And_Destinations
17:56 liam23 $r->route('/:controller/:action')->to(controller => 'foo', action => 'bar'); ?
17:58 liam23 yep that's the one
17:58 liam23 that isn't included by default?
18:00 sri ?
18:01 liam23 what i mean is out of the box Mojo doesn't redirect actions like that say as RoR does right?
18:02 sri if you add a route like that it does
18:02 liam23 right but not by default as RoR - that was my only confusion, if I was doing something wrong.
18:02 sri RoR doesn't have one like that activated by default anymore either
18:03 sri in RoR 3 it is commented out
18:03 liam23 oh? didn't even know...
18:03 liam23 thank you for the clarification though
18:03 sri sure
18:04 liam23 are you the sri as in kraih on twitter?
18:04 sri yes
18:05 liam23 I've been following you for a bit. I must say, thank you. Thank you for making not only a good lightweight framework but making the look of your docs attractive and everything easy to read and follow. unlike catalyst where things are all over the place and documentation is only 40% there.
18:06 sri glad you like it :)
18:06 liam23 it's just the injection of fun perl community needed
18:06 liam23 that's what ruby on rails always had over perl i think - RoR looks more with the times and Perl more outdated (even though it's not)
18:09 sri agreed
18:10 sri marcus: think i'll add routes caching
18:10 sri at only 10 routes before the matching one it already is a difference of 100 rps for a hello world
18:10 marcus sri: yay
18:12 sri as soon as you make two equal requests stuff gets faster
18:12 liam23 one more question regarding index... that rule will block out /controller/index (Catalyst style) correct? So I cannot just go to localhost/welcome/ and have MyApp::Welcome::index called?
18:12 sri the first request will be slightly slower though, maybe 2-5rps
18:13 sri liam23: nope, there are no hidden rules
18:13 liam23 okay just clarifying - thank you very much
18:28 stephen joined #mojo
18:31 spleenjack left #mojo
18:52 yegor left #mojo
19:00 GitHub194 joined #mojo
19:00 GitHub194 mojo: master Sebastian Riedel * 605cd25 (5 files in 4 dirs): added experimental support for route caching - http://bit.ly/fFSZLN
19:00 GitHub194 left #mojo
19:01 sri marcus: try again with a lot more routes :D
19:02 marcus sri: dancer also has route caching tho
19:02 sri no they don't
19:02 sri they cache the compiled regex
19:02 sri we cache the result
19:02 sri as in turning regex matching into hash lookups
19:03 sri at least last time i looked
19:04 fhelmber_ left #mojo
19:05 tholen left #mojo
19:05 sri ah ok ,they cache the path too now
19:05 sri could be boring then
19:07 mattastrophe joined #mojo
19:14 GitHub118 joined #mojo
19:14 GitHub118 mojo: master Sebastian Riedel * b7034ba (4 files in 2 dirs): make cache public - http://bit.ly/foc2LD
19:14 GitHub118 left #mojo
19:16 perlrocks Twitter: "#mojolicious routes should be quite a bit faster for big applications now. :) http://t.co/C4sSFkx #perl" --kraih http://twitter.com/kraih/status/34691980185305089
19:16 sri i like how i can use the same caching mechanism for templates
19:17 sri yay for perl templates
19:20 perlrocks Twitter: "S-weet! RT @kraih: #mojolicious routes should be quite a bit faster for big applications now. :) http://t.co/C4sSFkx #perl" --perlninja http://twitter.com/perlninj​a/status/34692980577148928
19:22 tholen joined #mojo
19:23 vel left #mojo
19:38 GitHub93 joined #mojo
19:38 GitHub93 mojo: master Sebastian Riedel * 256327d (2 files in 2 dirs): lazy load Mojo::Client - http://bit.ly/fJTiTg
19:38 GitHub93 left #mojo
19:40 perlrocks Twitter: "After reviewing the test suite i've decided to try lazy loading Mojo::Client, this can speed up #mojolicious cgi apps by almost 30%. #perl" --kraih http://twitter.com/kraih/status/34698150065209344
19:44 metaperl left #mojo
19:45 sri this might be a horrible mistake, but might be worth at least trying
19:45 sri s/might/$sensible_alternative/
19:51 mattastrophe left #mojo
20:06 Foxcool left #mojo
20:31 mattastrophe joined #mojo
20:59 ltriant joined #mojo
21:00 metaperl joined #mojo
21:17 vel joined #mojo
21:19 snearch joined #mojo
21:28 metaperl1 joined #mojo
21:30 otaviof left #mojo
21:31 tholen left #mojo
21:32 DaTa uh, 2 space indentation? what happened?
21:32 snearch left #mojo
21:33 metaperl left #mojo
21:34 ryan joined #mojo
21:43 vaneska joined #mojo
21:56 vaneska Hi! Sometimes i use die Dumper(..) to see structure of some data. But mojo error page shows it in a single line. What about to add pre tag to h1 tag or change h1 to pre?
22:08 damog joined #mojo
22:09 sri vaneska: sounds good, a patch and a screenshot would sure help with the decision though
22:13 vaneska sri: Ok. I will send it to maillist
22:15 MojoGuest517 joined #mojo
22:15 MojoGuest517 From: http://news.ycombinator.com/item?id=1277067 (198 hits)
22:23 MojoGuest517 left #mojo
22:24 liam23 for sessions, I should use Mojolicious::Plugin::Session ?
22:25 sri http://mojolicio.us/perldoc?Mojoli​cious/Guides/Growing#State_Keeping
22:25 sri you might want to read the whole guide though
22:36 liam23 I will do so
22:36 liam23 sri: I have this page written from years ago in HTML::Mason http://prongs.org/ministry/
22:37 liam23 I wanted to write it in mojo - the content is fetched from postgres from the urls
22:39 liam23 would this be okay in mojo or overkill even?
22:39 MojoGuest345 joined #mojo
22:39 MojoGuest345 From: http://www.networkedblogs.com/33Knp (58 hits)
22:39 MojoGuest345 left #mojo
22:39 vaneska sri: sended
22:41 GitHub145 joined #mojo
22:41 GitHub145 mojo: master Sebastian Riedel * 889d519 (1 files in 1 dirs): added cookbook recipe - http://bit.ly/hTaHuC
22:41 GitHub145 left #mojo
22:43 perlrocks Twitter: "The #mojolicious client recipe for today is really small, but answers a frequently asked question. ;) http://t.co/H3dSXBU #perl" --kraih http://twitter.com/kraih/status/34744013365968896
22:43 kaare left #mojo
22:46 liam23 http://mojolicio.us/perldoc?Mojol​icious/Guides/Growing#Foundation - app->start (app is not a scalar in this typo)
22:46 liam23 oh im sorry, it's a function...
22:47 vaneska left #mojo
22:47 perlrocks Twitter: "About to try using #mojolicious ... kinda not sure what to expect to be honest..." --keithbro http://twitter.com/keithbr​o/status/34745138458656768
22:56 GitHub143 joined #mojo
22:56 GitHub143 mojo: master Sebastian Riedel * 8c1a4cb (2 files in 2 dirs): changed exception template to use pre instead of h1 tags for error messages - http://bit.ly/gEm76H
22:56 GitHub143 left #mojo
22:56 GabrielVieira2 left #mojo
22:56 GabrielVieira2 joined #mojo
22:57 sri liam23: does not seem like overkill
22:58 liam23 sri; i will play with it. But can I dynamically play with routes like that? Yes, i could do a /* to a controller action which retrieves from the database to spit out content
22:59 liam23 sri: would that be the best way to implement that?
22:59 sri liam23: i don't understand the question, but i'm sure the documentation will answer it
23:04 liam23 left #mojo
23:07 fod joined #mojo
23:07 sri oh cool, new sci fi show outcasts is starting :)
23:16 vel left #mojo
23:16 fod left #mojo
23:21 rupertthehacker left #mojo
23:29 ryanc is there a mojolicous plugin (or equivalent functionality) for trackbacks?
23:43 damog left #mojo
23:58 mmcleric_ left #mojo
23:58 mmcleric joined #mojo

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