Camelia, the Perl 6 bug

IRC log for #mojo, 2010-08-18

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

All times shown according to UTC.

Time Nick Message
01:27 MojoGuest675 joined #mojo
01:27 MojoGuest675 From: http://www.google.cl/url?sa=t&source=web&​amp;cd=2&ved=0CBwQFjAB&url=http%3A%2F​%2Fdev.xantus.org%2F&rct=j&q=irc%20cl​ient%20in%20html5&ei=ADdrTM6sEYKB8gbZsZiF​BA&usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg​&sig2=ysEbg9vjYdyU5pkkoFsjKA&cad=rja (1 hits)
01:28 MojoGuest675 hola
01:28 MojoGuest989 joined #mojo
01:28 MojoGuest989 From: http://www.google.cl/url?sa=t&source=web&​amp;cd=2&ved=0CBwQFjAB&url=http%3A%2F​%2Fdev.xantus.org%2F&rct=j&q=irc%20cl​ient%20in%20html5&ei=ADdrTM6sEYKB8gbZsZiF​BA&usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg​&sig2=ysEbg9vjYdyU5pkkoFsjKA&cad=rja (2 hits)
01:29 MojoGuest48 joined #mojo
01:29 MojoGuest48 From: http://www.google.cl/url?sa=t&source=web&​amp;cd=2&ved=0CBwQFjAB&url=http%3A%2F​%2Fdev.xantus.org%2F&rct=j&q=irc%20cl​ient%20in%20html5&ei=ADdrTM6sEYKB8gbZsZiF​BA&usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg​&sig2=ysEbg9vjYdyU5pkkoFsjKA&cad=rja (3 hits)
01:29 xantus tard
01:30 MojoGuest745 joined #mojo
01:30 MojoGuest745 From: http://www.google.cl/url?sa=t&source=web&​amp;cd=2&ved=0CBwQFjAB&url=http%3A%2F​%2Fdev.xantus.org%2F&rct=j&q=irc%20cl​ient%20in%20html5&ei=ADdrTM6sEYKB8gbZsZiF​BA&usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg​&sig2=ysEbg9vjYdyU5pkkoFsjKA&cad=rja (4 hits)
02:10 xantus My gift to you guys: http://gist.github.com/533107
02:42 janus joined #mojo
03:11 ltriant joined #mojo
03:14 yakudzo joined #mojo
03:59 ltriant joined #mojo
04:04 tholen42 joined #mojo
04:04 ltriant joined #mojo
04:05 dynax60 joined #mojo
05:37 koban joined #mojo
06:27 koban left #mojo
06:28 koban joined #mojo
06:45 yko joined #mojo
06:47 vti tempire: i saw it, really boring stuff
06:57 ysyrota joined #mojo
07:02 janus moin
07:06 janus hm, just thought of PAR wrt/ mojo... less interesting given how easy mojo the install is ;)
07:08 stephan48 joined #mojo
07:08 janus then again... it could be fasterer then installing two things
07:09 janus duh
07:11 * janus catches EMUGEMPTY
07:12 janus don't spent too much time in signal handlers! :)
07:54 janus ``As memory becomes cheaper and cheaper, and even personal computers usually have
07:54 janus at least 1/2 a megabyte nowadays, we regard faster execution as more important t
07:54 janus han saving a few thousand bytes of memory.''
07:54 janus suuuuure :)
07:55 janus oh wait, thats a paper from 85... ;)
07:55 janus anyways, interesting how benchmark interpretation can change over time
08:07 Alias_ Main advantage of PAR is it's post build, and post test
08:08 Alias_ Basically just a zipped up blib directory
08:08 Alias_ So it's super super fast to install, since it's just upwrap and splat to disk
08:16 * sri yawns
08:16 sri whats that no new bugs yet?
08:19 marcus sri: LP0 ON FIRE
08:20 maettu joined #mojo
08:20 yko I found one bug on my kitchen. But it's solved now.
08:21 janus yko: do you mean dissolved? *g*
08:22 marcus in vodka, probably
08:22 yko yammy
08:24 maettu How do I access the params in an external GET in Mojo? (like CGI::param)
08:27 und3f maettu, $self->param('name') ?
08:29 pid joined #mojo
08:32 maettu und3f: thank you. In which package do I find the respective documentation? I want to update the wiki
08:34 und3f maettu, Mojolicious::Lite Mojo::Parameters
08:35 vti maettu: everything is documented
08:36 vti sri: you woke up too early
08:36 maettu und3f: found.. How could we possibly make it easier (on the wiki, e.g.) for people to find the documentation they need?
08:36 vti like reading it? ;p
08:36 und3f maettu, i can found everything in test :P
08:37 und3f *tests
08:38 maettu yes, *after* you have a little insight, everything is there..
08:38 maettu I am wondering how I could make it easier for newbies
08:39 und3f Make examples
08:39 maettu o.k.
08:39 und3f like bootylicious
08:40 vti pastelicious, urlicious, contenticious
08:40 vti mojowka
08:40 vti and mojomber!
08:40 maettu this sounds fun, but is it obvious to a newbie?
08:40 vti we should play mojomber again..
08:41 maettu (and there are non native English speakers.. Not sure if they get the jokes..)
08:42 vti just check out xantus' and mine git repos, tonnes of examples
08:42 yko ye, just blog it :)
08:42 maettu probably it will be sufficient to link these tonnes of examples
08:43 vti ye, wiki will do fine :)
08:44 maettu I mean, there is Mojo::HelloWorld and the Guides, link the examples there?
08:44 vti since you are at it... add them to wiki page :)
08:44 maettu and a link on mojolicious.org would be fine
08:46 maettu I asked a lot of stupid questions on this channel only because I didn't find the information in reasonable time. Not your fault, mine. I just want to make it easier for others
08:48 vti all the docs are here http://search.cpan.org/~kraih/Mojolicio​us-0.999929/lib/Mojolicious/Guides.pod
08:50 maettu well..
08:52 vti maettu: but wiki is a great idea
08:52 vti it would be awesome to collect all mojo applicaitons
08:53 maettu vti: I'm browsing your repo. There is a lot of material. What should I link as examples for a newbie?
08:53 maettu mojolicious-demos?
08:53 vti mojo-faq for example
08:54 vti ye, that would do too
08:54 vti bootylicious, pastelicious
08:54 vti mojolicious-apps (still working on it though)
08:55 maettu faq: there is a faq in Guides, too, that will confuse people
08:55 sri ye, examples are what should be in the wiki
08:55 vti and websocket stuff..
08:55 vti maettu: i will rename it to 'mojo-wtf-questions'
08:55 maettu :-)
08:56 vti that reminds me that i should update them =/
08:56 maettu sri: do you think I should link examples or copy-paste them into the wiki?
08:56 sri make it Proposed Additions To The FAQ or so
08:56 sri link of course
08:56 maettu "of course" ;-)
08:58 vti mojo-faq-addition
08:58 sri the wiki should be an incubator for new additions to the official documentation, not a clone or alternative
08:58 vti exactly
08:58 maettu link http://github.com/vti/mojo-faq or http://github.com/vti/mojo-faq/blob/master/FAQ.md
08:58 vti wait
08:58 vti i am renaming it
08:59 vti http://github.com/vti/mojo-faq-addition
09:01 vti it covers some 3rd party modules
09:03 Alias joined #mojo
09:17 maettu added examples and FAQ additions to "Getting Started" in the wiki
09:19 maettu is there a good way to read the documentation from CPAN (unless reading everything) so that I could give a hint?
09:20 Alias_ search.cpan.org
09:20 Alias_ perldoc.com
09:20 Alias_ er
09:20 Alias_ perldoc.perl.org
09:20 Alias_ The first for modules, the latter for core docs
09:25 maettu Alias_: I mean documentation related to Mojo
09:26 maettu Alias_: As I'm trying to collect some links for a "Mojo-Getting-Started" page
09:26 Alias_ ah :)
09:27 maettu http://github.com/kraih/mojo/wiki/Getting-Started
09:27 sri cpan install is a bad advice though
09:28 vti cpanm!
09:28 sri now that we have http://cpanmin.us
09:28 maettu because I find it difficult for beginners to find the essential information to get you started (beyond firing up a Mojolicious::Lite)
09:28 sri curl -L cpanmin.us | perl -
09:29 maettu sri:
09:30 maettu sri: o.k. how would you like to have it?
09:31 sri what i pasted above
09:33 maettu sri: you mean sudo curl -L cpanmin.us | perl - cpanm Mojo ?
09:33 sri no cpanm
09:34 lbr curl must be run as root at all times!
09:36 GitHub174 joined #mojo
09:36 GitHub174 mojo: master Sebastian Riedel * e4f1cb4 (2 files in 2 dirs): cleanup
09:36 GitHub174 mojo: master Sebastian Riedel * 022897b (1 files in 1 dirs): cleanup
09:36 GitHub174 mojo: master Sebastian Riedel * d5d795b (2 files in 2 dirs): fixed a bug where Mojo::IOLoop connections could be closed too early
09:36 GitHub174 mojo: master commits 862c71c...d5d795b - http://bit.ly/d3VizV
09:36 GitHub174 left #mojo
09:37 maettu maettu doesn't understand which install instruction he should add
09:37 lbr curl -L cpanmin.us | sudo perl - ; cpanm Mojo
09:38 lbr gah
09:38 lbr curl -L cpanmin.us | sudo perl - ; sudo cpanm Mojo
09:38 koban joined #mojo
09:38 vti oO
09:39 maettu lbr: does not work
09:40 vti sudo -s 'curl -L cpanmin.us | perl - Mojo'
09:41 dynax60 joined #mojo
09:41 lbr right
09:41 lbr wget -qO - cpanmin.us | sudo perl - Mojo
09:42 vti don't forget the possibility to install it in a local dir
09:42 vti which might be enough in most cases
09:44 maettu added
09:44 sri http://github.com/kraih/mo​jo/issues/closed#issue/10 # is it just me or is sharifulin getting rude?
09:47 maettu sri: you could perhaps help him by showing how he can be specific
09:48 vti maettu: he's not a newbie and knows about that :)
09:48 sri it's not just the ticket, he cross posted to the list and spammed me on twitter
09:48 yko or just ban him...
09:49 maettu sri: o.k., perhaps ignore if you feel offended
09:50 janus hrhr, sounds like an emo
09:52 sri the bad english makes investigating really grueling
09:52 janus staying professional is the right thing imho - like you did, sri
09:55 maettu hey, Mojo is such a cool project and you people here are so friendly and helpful: keep that up :-)
09:55 sri he called me friendly! :D
09:55 vti hug him!
09:55 * sri hugs maettu
09:56 maettu (sun)
10:03 GitHub127 joined #mojo
10:03 GitHub127 mojo: master Sebastian Riedel * 39dda4e (1 files in 1 dirs): cleanup - http://bit.ly/aytm4e
10:03 GitHub127 left #mojo
10:04 vti sri: you call that cleanup? ;p
10:04 sri psst
10:04 yko :D
10:07 sri defined truly is my nemesis
10:07 vti ruby spoiled you
10:08 sri my name is sri, and ruby made me weak :(
10:08 vti :D
10:09 marcus We need to kill redhat so we can use //=
10:09 maettu how can I get debug messages in the console which runs my script/my_app?
10:10 sri delete the log directory
10:10 sri marcus: yes we do
10:11 maettu sri: OMG!
10:12 maettu sri: I add this to Getting Started, ok?
10:12 sri add whatever you consider helpful, i'll steal whats missing from the current documentation :)
10:13 maettu deal
10:13 sri maettu: maybe call it Matteus Getting Started or so
10:13 sri *Maettus
10:13 maettu whatever
10:14 sri then other people can copy you and write about their own experiences in the same way
10:14 marcus getting matteus started
10:14 sri marcus++
10:14 maettu Them Inglish People don't know ä
10:15 maettu so it's ae
10:15 vti sri should know that ;:)
10:16 maettu and I always wonder how they pronounce it, hihi
10:16 sri <- german using only english keyboards for many years
10:16 sri programming with german keyboards is so horrible
10:16 vti aaaaa.. germans on the channel!
10:17 maettu don't speak about swiss layouts..
10:17 dotan joined #mojo
10:17 yko If you have 3-4 languages installed, your life becomes much happier
10:18 maettu maettu is very happy, he has about 4 of them installed
10:18 * vti has only two
10:19 maettu swiss german, german, english, french
10:19 yko english and german or russian and 'bad russian' ?
10:19 sri whats bad russian?
10:19 yko hehe, bad-russian keyboard layout... it would be nice
10:20 vti sri: he's just being too smart
10:20 sri oh
10:20 sri BLASTWAVE!
10:20 maettu yko: I'm talking about installed languages, not keyboard layouts
10:20 * yko offended and cry in the corner
10:20 sri (http://www.romanticallyapo​calyptic.com/home?page=25 # for the new ones)
10:21 yko where? I dont see any new
10:21 sri the new ones in the channel ;p
10:21 yko aahhh :)
10:21 sri they wouldn't get the blastwave reference
10:22 maettu yko: don't be sad, please, you have Mojo
10:22 yko love that comix
10:22 yko ye, sometimes it makes me cry :D
10:22 maettu It's sad when your Mojo makes you cry, that's true already
10:22 vti :D
10:23 yko huh :)
10:23 yko i think i need some cofee
10:23 sri lunchtime
10:23 maettu true, I'm hungry
10:23 maettu let's fetch a beer
10:25 yko I think we need article about "Hwo to start writing Perl" ow something like that
10:26 vti just *don't* :)
10:26 yko "First install Perl...... Next, wee need Mojo. It's not in core yet, so let's install it...."
10:26 vti you don't have to install perl
10:26 vti perl everywhere!
10:26 yko hmm.. ye
10:27 maettu yko: do you reference my stupid getting started here?
10:27 yko "Perhaps, you still not have Mojo in your system ..."
10:28 maettu uuhh, that's hard then
10:28 vti Mojo in your pants!
10:28 yko vti: Mojo - Web in the box - in your pants!
10:28 yko hehe
10:28 yko maettu: nope. just yesterday i made simple demo building ajax with Mojolicious
10:29 maettu uuuh, a box in the pants, definitely time to bail ot for lunch..
10:29 yko i'm feeling little stupid about that, because it demonstrates obvious things
10:29 marcus Mojo - Web in the box - In bed!
10:30 maettu don't
10:30 yko and vti already has similar post in his blog
10:30 vti vti has everything
10:30 maettu never feel stupid explaining simple things. Because when you are new to somethings easy things are not obvious
10:30 yko but sometimes i hear questions about 'howto ajax with perl', etc
10:31 maettu sure
10:31 maettu sometimes you hear questions like "how can you sleep when you have everything (in your bed)" <- vti?
10:32 yko and, actually, if we have 'howto's for dummies' it can bring more mojo fans, that otherwise can start learn other frameworks... something like that
10:33 vti yko: it can bring more dummies :D
10:33 yko for sure!
10:33 yko or you think that me is enough?
10:33 maettu and me?
10:34 yko I am pleased to hear that, bu i don't think i can substitutealldummies :D
10:34 yko ouch... there supposed to be some whitespaces
10:34 maettu come on, we dummies forgetwhitespacessometimes
10:35 maettu (we are allowed to!)
10:35 yko maettu can you speak russian?
10:35 * yko giggles.
10:36 maettu yko: sorry, not yet
10:36 maettu why?
10:36 yko ohh. sad, you cold be part of 'russian occupation' :D
10:37 maettu first I have to learn Mojo (ehem) and then, when I have some spare time I would like to learn Russian. But I fear it will never happen
10:37 yko for sure :D
10:38 yko if you start learn Mojo you can forget about 'spare time'
10:38 maettu I learned that last week..
10:39 maettu and as for the real life: I learned it 1 decade ago or so
10:39 vti go and get some food already!
10:58 dynax60 joined #mojo
11:04 marcus I vote ☼ for the next release
11:05 marcus then ※ for the christmas mojo :p
11:07 * sri approves
11:07 yko wow
11:07 yko $self->$mode(@_) if $self->can($mode);
11:07 yko i haven't seen that
11:07 yko so if application can 'development_mode' it will be called at startup?
11:08 yko before startup, even
11:08 sri just liek the pod says ;p
11:08 yko how sweet, thank you
11:09 sri it's the big advantage normal mojolicious has over lite regarding modes
11:10 vti yko: you didn't know about that? OO
11:10 vti http://github.com/vti/mojolicious-app​s/blob/master/lib/MojoliciousApps.pm
11:10 vti here is an example how to use it :)
11:12 yko vti, shame on me
11:12 sri shame on you!
11:15 sri http://www.1up.com/news/googl​e-shows-future-browser-games # plants vs zombies :o
11:18 sri oh flash...
11:24 marcus eww
11:26 maettu joined #mojo
11:28 sri installing games as browser extensions would be the only way to make this work
11:30 marcus it says the installed apps will be available through the 'new tab' window in chrom
11:30 marcus +e
11:30 sri whatever that means
11:31 sri i bet it's just some kind of magic link
11:31 sri google always takes the scientifically correct way, never what users actually want
11:34 sri they even managed to make google search unpleasant...
11:35 sri how i hate that sidebar
11:35 marcus yeah, it's lame
11:36 marcus and google images search has become horrible too :/
11:36 sri quite an understatement
11:36 sri it's unusable
11:37 sri well, their usability tests are entirely statistical i think
11:38 marcus yeah, they do 'a' 'b' tests
11:38 marcus and look at what generates most ad revenue :)
11:38 sri ye
11:39 sri even the search frontpage is cluttered with links now
11:41 sri it's ironic google and apple try so hard to compete, while they actually complement each other so well
11:45 marcus mm
11:45 marcus it's engineering VS design - FIGHT
12:22 Akron joined #mojo
12:29 sri Mamma Mia! The cruel meatball of war has rolled onto our laps and ruined our white pants of peace!
12:30 tardisx I'm experimenting with MojoX::Session::Cookie :-)
12:30 sri oh noes
12:30 tardisx it works, but I'm not sure if I'm using it a bit braindeadedly
12:30 tardisx http://pastebin.com/yCHA2e5f
12:31 sri you do know that it is built into mojolicious right?
12:32 sri and does pretty much exactly what your example does :)
12:34 tardisx heh ok
12:34 tardisx I missed where that is mentioned :-)
12:34 sri $self->session(foo => 'bar'); my $foo = $self->session('foo');
12:35 sri it's generally as easy as that
12:35 sri and it is mentioned in the tutorial
12:35 tardisx ok well it is good to know that my wheel is roughly the same shape as yours
12:35 tardisx :-D
12:36 tardisx Ahh ok in the Lite.pm page
12:36 sri :)
12:36 tardisx I've ignore this for a while since I wasn't using Lite but looks like there is some new things to nom on there
12:37 tardisx \o/
12:37 sri my assumption is that people start with lite and move on to the real thing
12:37 tardisx as they say in the classics
12:38 sri explaining stuff is usually much easier with lite
12:42 tardisx yep
12:42 tardisx let me go smash up my wheel
12:43 sri yay, destruction!
12:45 vti sri: why are you so dark?
12:45 * sri shrugs
12:47 sri you don't have to be dark to be evil http://88.84.128.30/~isnochys/​wordpress/wp-content/image.jpg
12:48 vti lol
12:48 marcus sri is a rebel without a cause
12:48 vti just don't tell me it is your photo
12:50 sri *crickets*
12:50 al haha
13:28 keith left #mojo
13:33 pid joined #mojo
13:38 maettu joined #mojo
13:44 vel joined #mojo
14:06 yko ouch. Mojolicious check if $home/log is writable. So if you have $home/log/development.log writable, but $home/log/ readonly it will log to STDERR
14:07 sri hmm
14:08 yko just faced that
14:10 sri feel free to fix :)
14:11 yko ok
14:13 koban joined #mojo
14:18 jest joined #mojo
14:21 yko damn, that looks ughly. and i don't want to write test for it :\
14:21 yko ill push it little bit later
14:25 perlrocks Twitter: "@ItaliaTrent is already "mojo-licious"! @kailmeyra @Jenn_BookCrazy @HopeCollier @MatthewFields #mojolicious" --danperezfilms http://twitter.com/danpere​zfilms/status/21494163257
14:26 MojoGuest971 joined #mojo
14:26 MojoGuest971 From: http://www.google.com/search?clien​t=safari&amp;rls=en&amp;q=websocke​ts+demos&amp;ie=UTF-8&amp;oe=UTF-8 (1 hits)
14:26 yko hi MojoGuest971
14:26 yko it works.
14:26 yko But, while you are using safari, i think you can not write, only read.
14:27 yko Try Chrome or Firefox, until they fix Safari
14:28 yko what can 'Unexpected response code:101' mean?
14:28 Alias__ joined #mojo
14:28 yko And why my Chrome saing me 101 when connect to http://dev.xantus.org/
14:29 vti yko: websocket crap
14:29 yko :'(
14:35 perlrocks Twitter: "Haha! Mwah! ; ) “@danperezfilms: @ItaliaTrent is already "mojo-licious"! @kailmeyra @Jenn_BookCrazy @HopeCollier @MatthewFields #mojolicious" --ItaliaTrent http://twitter.com/ItaliaTrent/status/21494912525
14:44 sri damn websockets
14:45 sri http://www.ietf.org/mail-archive​/web/hybi/current/maillist.html # the whole development process is totally messed up
14:48 yko sri: nested waypoints with different methods should work?
14:48 sri guess so
14:48 yko i mean waypoint('/a')->via('get')-​>waypoint('b')->via('post')
14:48 yko i think it's broken now
14:48 yko http://github.com/yko/mojo/commit/0e2​2053891ce90ac2ec8c216996e5b8152fb390d this test fails
14:48 sri no that shouldn't
14:48 yko shouldnt?
14:48 yko but why?
14:49 sri you can't switch from get to post
14:49 sri it's a constraint on the route, it doesn't get disabled
14:49 sri just like the route doesn't get irrelevant
14:50 yko but.... why... uhm
14:50 sri i can't even imagine how your version could work at all
14:53 yko http://korshak.name/ra/ooX.jpg ...
14:55 sri ;p
14:56 sri remember it is just like writing ->route('/a')->via('get')-​>route('/b')->via('post')
14:56 vel joined #mojo
14:56 yko in this case route('/a')->route('/b') oune of routes wouln't work at all. i just don't remember which
14:57 yko am i right?
14:57 sri nothing could match
14:57 sri post wouldn't get past the first route
14:58 yko i'm not so familiar with routing internals, sorry
14:58 sri a request needs to pass all constraints on the first route to get past it
14:58 sri always
14:58 yko ah. now it's clear
14:59 yko thank you
14:59 crab what are waypoints good for?
14:59 sri chains
14:59 yko route('/person/delete'); route('/person/create'); route('/person/update')
15:00 sri waypoint('/a')->waypoint('b') can match /a *and* /a/b
15:00 yko my $person = route('/person'); $person->waypoint('/delete') .....
15:00 yko after all, waypoint can have it's own action
15:00 sri ye
15:01 yko so, you have '/person', '/person/delete', ... urls
15:01 sri they can save a lot of typing
15:01 koban maybe my $person = waypoint('/person'); $person->route('/delete') .....
15:01 yko s think it's described in guides, no?
15:01 koban ?
15:01 yko koben, exectly
15:01 sri it is in the routing guide
15:01 yko *koban
15:01 yko sory
15:01 koban =)
15:02 vti cobain :D
15:02 yko crab : http://github.com/kraih/mojo/blob/master/li​b/Mojolicious/Guides/Routing.pod#Waypoints
15:02 crab what is the best way to write routes for /foo -> MyApp::Foo::index and then /foo/<some list of methods corresponding to MyApp::Foo methods>
15:03 crab ?
15:03 sri a waypoint
15:03 sri or actually
15:03 sri no
15:04 yko well, it can be my $w = $r->waypoint('/foo')->to('foo#index');
15:04 sri ->route('/foo/:action')->to(action => 'index')
15:04 sri thats all he wants
15:04 yko damn! you are right
15:04 crab right now i say ->route('/foo')->to('foo#index') and then separately ->route('/foo/:action')->to(controller => 'foo')
15:04 crab aha
15:04 yko crab it sets default ':action' to 'index'
15:04 sri ->route('/foo/:action')->to('foo#index')
15:05 sri actually thats better
15:05 yko but sri's examlpe shorten
15:05 crab will it match /foo (as opposed to /foo/)?
15:05 sri think so
15:05 yko should
15:05 keith joined #mojo
15:05 sri we don't really differentiate between /foo and /foo/
15:06 dotan joined #mojo
15:06 sri at least not on the routes layer
15:06 marcus agree
15:06 yko but' i don't like that because of i can not specify method per each action
15:06 sri you can always dig deeper to get that information
15:07 yko if all actions of controller uses 'get' or 'any' then it's ok
15:07 sri $self->req->url->path->trailing_slash or so
15:07 sri yko: i think what you want is a custom route generator
15:07 sri like the rails resource stuff
15:08 yko well, i reffer to rails :)
15:08 yko few months agi i wrote small app to compare ror vs mojolicious
15:08 sri where you say $r->resource('foo') and it generates GET /foo, POST /foo/create, GET /foo/list....
15:09 yko oh, you mean that
15:09 yko im thinking around something like that
15:09 yko but just now i can not form whole idea
15:09 yko do you remember, i'm too lazy. i want have button 'make all cool'
15:10 yko :)
15:11 * sri puts a box into the channel with a big red button
15:11 yko hmmm. resource has sense actually
15:11 yko yay!
15:11 yko *PUSH* *PUSH* *PUSH*
15:11 sri if you push this button everything will be cool *but* someone, somewhere, you don't know will die!
15:11 sri WAIT!!!!
15:11 sri DAMN!!!!
15:11 sri !@#$%^
15:12 sri ...
15:12 * und3f push
15:12 und3f sri, it is broken
15:13 sri i guess nobody saw the movie the box -.-
15:14 * yko saw
15:14 * yko pushes red button again.
15:14 sri http://www.funnyordie.com/v​ideos/44b3d8f432/the-button # <- yko
15:15 dotan button++
15:16 * yko pushes red button.
15:16 yko whad did you said, sorry?
15:16 sri NOOO! YOU PUSHED IT AGAIN!
15:16 * yko giggles
15:17 yko damn, 'i choose the box' - that's from Field of Fools tv show! bwahaha
15:17 crab i wonder if i could get away with ->route('/:controller/:action'​)->to(namespace=>'MyApp::Foo')
15:17 yko sri: you just bring me to my child hood
15:17 sri :)
15:17 * yko grabs the box.
15:17 crab maybe i can use that as my last route, and write individual routes for the special cases.
15:18 crab of which there are quite few
15:19 vti in soviet russia the box grabs you
15:19 sri ->route('/:controller/:action')->to('foo#');
15:20 yko vti: soviet russia has gone more than 20 years ago and you still living in past...
15:20 vti yko: 2010-1991=19...
15:20 yko but it felts like more than 20!
15:20 vti :D
15:24 crab sri: the problem with that is, i need to name some "important" routes, notably the default / one
15:24 crab so i'll write it separately, no problem
15:24 sri crab: thats ok, routes are fifo
15:25 crab explain?
15:25 sri first in first out
15:25 crab i want a name "home" for home#index
15:25 sri they match in the same order you define them
15:26 sri so if your / route is at the top you can have ->route('/:controller/:action')->to('foo#'); below it
15:26 crab yes, right
15:31 crab great. this makes things simpler.
15:45 keith_ joined #mojo
16:06 yko does Mojo works on iis?
16:06 yko oh/ its even in guides
16:35 yko Mojo::DOM should be really nice to make tests of existsing apps
16:36 vti true!
16:52 petrus_a joined #mojo
17:03 vti sri: maybe add some functionality to the ->each method of Mojo::DOM to stop iterating? like i found what i need, now stop
17:05 tempire =%> is awesome.  Just discovered it.
17:06 vel joined #mojo
17:10 dotan left #mojo
17:17 MojoGuest758 joined #mojo
17:17 MojoGuest758 From: http://www.google.de/search?client=safari&amp;r​ls=en&amp;q=websocket+demo&amp;ie=UTF-8&amp;oe=​UTF-8&amp;redir_esc=&amp;ei=sxVsTOHpOoSaOI3EjX4 (1 hits)
17:19 sri vti: how would that work?
17:20 sri well, ok we could add an alternative for each
17:23 sri ->find('.foo')->upto(sub {...}) or so
17:23 sri keep iterating until it returns false
17:24 vti ye, another sub is good
17:25 sri actully we could just reuse until, like we reused each
17:25 sri i guess
17:25 tempire Can't you just add another check in 'sub each', to determine whether the callback returns undef?
17:25 sri ->find('.foo')->until(sub {...})
17:25 sri and break everything?
17:26 sri most of the time i really don't want to care about return values
17:26 sri in oneliners for example
17:26 vti breaking stuff is bad :)
17:26 tempire yeah, that makes sense.
17:27 vti sri: until true i hope? :)
17:27 sri until callback returning true to stop is rather predictable :)
17:27 sri vti: ye ;p
17:27 sri vti: wanna make it your first commit?
17:28 sri but i expect quality!
17:28 vti ok...
17:28 * sri cracks the whip
17:30 vti my hands are shaking
17:30 * sri cracks the whip
17:34 sri and yes, each has no real pod entry yet
17:34 sri i was thinking about adding it to the entry for find
17:35 sri you can ignore pod for until, i'll do it later
17:47 sri wonder what cool examples you come up with, my ideas so far for until are rather underwhelming :/
17:47 vti wait ;)
17:48 * sri waits
18:01 * vti pushed :-[
18:02 GitHub105 joined #mojo
18:02 GitHub105 mojo: master vti * 5a230e8 (2 files in 2 dirs): added while and until methods to Mojo::DOM - http://bit.ly/alDflT
18:02 GitHub105 left #mojo
18:05 vti don't kick me too hard
18:05 sri vti++
18:06 * vti breathes freely
18:08 perlrocks Twitter: "My first push to #Mojolicious and I am still alive! http://bit.ly/alDflT" --vtivti http://twitter.com/vtivti/status/21509484152
18:09 perlrocks Twitter: "\o/ RT @vtivti: My first push to #Mojolicious and I am still alive! http://bit.ly/alDflT #perl" --kraih http://twitter.com/kraih/status/21509528370
18:22 yko yay! Grats!
18:25 ferreira joined #mojo
18:33 sekimura joined #mojo
18:37 petrus_a joined #mojo
18:37 GitHub168 joined #mojo
18:37 GitHub168 mojo: master Sebastian Riedel * 99a345d (3 files in 3 dirs): added more tests and changes entry - http://bit.ly/abszWZ
18:37 GitHub168 left #mojo
18:38 sri i wanted examples for $_ usage anyway :)
18:39 sri ops my example is wrong though :/
18:40 sri no wait, it isn't
18:42 vti mr cleaner
18:42 sri but just a little bit this time :)
18:44 GitHub5 joined #mojo
18:44 GitHub5 mojo: master Sebastian Riedel * e802da4 (1 files in 1 dirs): cleanup - http://bit.ly/a11deV
18:44 GitHub5 left #mojo
18:45 sri public methods/functions go first
18:45 yko joined #mojo
18:47 xantus sri: I have an idea
18:48 sri oh noes
18:48 xantus >;)
18:49 xantus a plugin that uses couchjs
18:50 sri hmm
18:50 xantus here's the view server: /bin/couchjs /share/couchdb/server/main.js
18:51 xantus I wonder how sandboxed it is
18:52 sri entirely i would guess
18:54 xantus it takes stdin  /bin/couchjs -
18:54 xantus time for some tests :)
19:01 xantus nice, its sandboxed
19:06 xantus interesting
19:07 xantus gjs
19:10 xantus sweet!
19:10 sri sounds like fun
19:12 xantus check out gjs, its Gnome bindings to spidermonkey
19:20 xantus http://gist.github.com/533107
19:20 spleenjack joined #mojo
19:24 maettu joined #mojo
19:29 sri interesting
19:47 Akron left #mojo
20:29 petrus_a joined #mojo
20:29 petrus_a joined #mojo
20:45 pid joined #mojo
20:58 vti beer time!
20:58 yko beer time will start in 2 minutes, you...!
20:59 yko Thursday - tommorow, not today.
21:03 sri mmm...beertime is the best time
21:08 sri http://www.wired.com/gadgetl​ab/2010/08/apple-fart-apps/ #muhahahaha
21:09 vti insane
21:09 vti would be to do it in school though
21:09 vti +nice
21:13 vti sri: bought them already? ;p
21:13 sri of course
21:14 vti is there an ipad version? :D
21:48 xantus FART HD
21:48 xantus lol
21:59 GitHub160 joined #mojo
21:59 GitHub160 mojo: master Sebastian Riedel * af4fafd (1 files in 1 dirs): cleanup - http://bit.ly/anQb8Y
21:59 GitHub160 left #mojo
21:59 spleenjack1 joined #mojo
22:05 xantus we're starting the awesome mojo paste rewrite tonight!
22:06 sri hmm, i did read pasta
22:06 xantus mojo pasta!
22:06 xantus sri is hungry
22:07 xantus mojo paste, /w irc bot integration
22:07 sri neat
22:07 xantus multitouch sketch pad
22:07 xantus chat
22:12 sri multitouch pasta?
22:12 sri mmmm
22:18 sri now i'm really hungry :)
22:19 sri every time i look at the websocket mailing list i get more angry :S
22:20 xantus fragmented messages!
22:20 sri http://www.ietf.org/mail-archive​/web/hybi/current/msg03154.html
22:21 xantus jesus
22:22 sri someone let the googlers in...
22:22 xantus hixie is a googler
22:27 sri true
22:29 xantus he just let his friends in the party
22:29 xantus :P
22:59 dotan joined #mojo

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