Camelia, the Perl 6 bug

IRC log for #mojo, 2010-09-25

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

All times shown according to UTC.

Time Nick Message
00:27 ash_ joined #mojo
00:46 memememomo_ is now known as memememomo
00:49 memememomo is now known as memememomo_
02:03 perlite joined #mojo
02:35 janus left #mojo
03:09 MojoGuest599 joined #mojo
03:09 MojoGuest599 From: http://www.google.com/search?sourceid=chrom​e&ie=UTF-8&q=extjs+with+websockets (1 hits)
03:09 MojoGuest599 Hello
03:09 MojoGuest599 left #mojo
03:09 MojoGuest89 joined #mojo
03:09 MojoGuest89 From: http://www.google.com/search?sourceid=chrom​e&ie=UTF-8&q=extjs+with+websockets (2 hits)
03:09 MojoGuest89 left #mojo
03:19 janus joined #mojo
04:04 tholen42 joined #mojo
04:06 tholen left #mojo
04:13 ash_ left #mojo
04:23 MojoGuest225 joined #mojo
04:23 MojoGuest225 From: http://www.google.com/search?sourceid=c​hrome&ie=UTF-8&q=websocket+demo (2 hits)
04:23 MojoGuest225 left #mojo
04:32 alnewkirk|com joined #mojo
04:33 alnewkirk|com left #mojo
04:33 alnewkirk|com joined #mojo
04:35 alnewkirk|com left #mojo
04:36 a|newkirk[assoc] joined #mojo
04:45 memememomo_ is now known as memememomo
05:03 su-bzero joined #mojo
05:03 su-bzero_ left #mojo
05:39 memememomo left #mojo
05:40 memememomo_ joined #mojo
05:41 memememomo_ is now known as memememomo
05:43 memememomo left #mojo
05:44 memememomo_ joined #mojo
05:44 memememomo_ is now known as memememomo
05:52 esskar__ joined #mojo
05:57 esskar_ left #mojo
05:57 esskar__ is now known as esskar_
06:25 esskar__ joined #mojo
06:30 Rhaen moin
06:30 Rhaen huh, massesskars..
06:31 esskar_ left #mojo
06:31 esskar__ is now known as esskar_
06:40 esskar_ moin
06:41 esskar_ sri: http://github.com/esskar/mojox-authen/commi​t/b53d49cdc679efb931d762b0ff1e59f2f61f15ae
06:47 GabrielVieira2 joined #mojo
06:49 Rhaen moin esskar
06:50 Rhaen guys, the documentation of this project is too short!
06:51 Rhaen go and write some documentation!
06:52 Rhaen and we need some f*cking good but small examples which are explained well.
06:53 GabrielVieira left #mojo
06:59 yakudza joined #mojo
07:09 yakudza left #mojo
07:40 Htbaa joined #mojo
07:48 sri esskar: looks good
07:49 sri crab: not automatically
07:50 sri crab: but a plugin could return the installed route, so the user could use it as the new root
07:50 sri kvorg: it's very simple, the block gets passed as last argument (coderef) to the block helper
07:51 sri you are responsible for calling that coderef, possibly multiple times
07:52 sri kvorg: there is a recipe in the rendering guide
07:52 sri a trim command
07:56 sri Rhaen: documentation is never finished ;p
08:00 GabrielVieira joined #mojo
08:00 esskar_ i'm trying to get this to work
08:00 esskar_ http://perlpunks.de/paste/show/4c9dac13.7f89.163
08:01 esskar_ but it fails and crashes my perl
08:01 esskar_ any ideas, how to get a reallife example
08:01 sri there is no $tx->clone
08:02 esskar_ well, thats not the point
08:02 esskar_ ;)
08:02 sri and no need to $client->clone
08:02 esskar_ i just tried different things
08:02 sri you can't really clone transactions, they are too dynamic
08:02 sri sadly
08:03 esskar_ i get the following
08:03 esskar_ Sat Sep 25 12:03:01 2010 error Mojo::Client:765 [3800]: Event "read" failed for connection "IO::Socket::SSL=GLOB(0x30efc4c)": Can't locate object method "connec
08:03 esskar_ tion" via package "Mojo::Client" at C:/Perl/site/lib/Mojo/Client.pm line 573.
08:03 sri that means you passed a $client instead of $tx
08:04 sri but still, that code is nonsensical
08:04 esskar_ ;)
08:04 sri you could only clone a subset of the possible transactions
08:04 GabrielVieira2 left #mojo
08:05 sri basically everything getting its content from an external source (->write and friends) can't be cloned
08:10 esskar_ ;)
08:10 esskar_ http://perlpunks.de/paste/show/4c9dae7c.ea2.34c
08:11 sri there is something else maybe
08:12 sri we could try to keep the transaction clean enough to run multiple times
08:12 sri but that would require some digging
08:12 esskar_ i figure
08:12 Rhaen hmpf.
08:13 Rhaen I need some git help, guys - anyone up to it?
08:13 sri not  a git ninja myself, but i've seen the peepcode screencast ;p
08:14 Rhaen so I pull kraih/mojo as upstream, resolve the conflict from the merge and commit the changes to my repo.
08:14 Rhaen This will bring me at least 1 commit before github.
08:14 sri you rebase to upstream
08:14 sri that allows merging your changes on top
08:14 Rhaen ah! There's the point!
08:14 sri :)
08:15 Rhaen which should be git rebase upstream/master right?
08:16 Rhaen found it ( I think)
08:17 Rhaen thanks anyway.
08:17 sri http://gitready.com/intermediate​/2009/01/31/intro-to-rebase.html
08:17 Rhaen btw - nice that the '/favicon/' => '*'; is not needed
08:17 sri git is totally worth getting a book for
08:17 Rhaen I haven't tested it :)
08:17 Rhaen do you recommend one?
08:18 sri http://www.amazon.de/Versionskontrolle-mit-Gi​t-Jon-Loeliger/dp/389721945X/ref=sr_1_2?ie=UT​F8&s=books&qid=1285402689&sr=8-2
08:19 sri or the english version
08:20 Rhaen yep, I think of getting the english version to avoid translation mistakes
08:20 sri https://peepcode.com/products/git # for quick learning
08:20 Rhaen the basics are clear, I work with git in svn environments all day
08:21 Rhaen however there is no github involved - which makes it more complicated :)
08:22 Rhaen oh, and if I am missing commit rights, which is the case sometimes, I am using patches
08:23 Rhaen this url is from the dark side!
08:24 sri oO
08:28 Rhaen I'll take this as a 'yes'
08:46 kvorg left #mojo
08:48 MojoGuest16 joined #mojo
08:48 MojoGuest16 From: http://www.google.fr/url?sa=t&source=web&a​mp;cd=2&ved=0CCQQFjAB&url=http%3A%2F%2​Fdev.xantus.org%2F&rct=j&q=websocket%2​0demo&ei=LredTMHyFZCn4AavgYm7DQ&usg=AF​QjCNGw6nZv0wO42uzUnHhWcD0vcKNULg&cad=rja (1 hits)
08:51 MojoGuest16 test
08:57 MojoGuest408 joined #mojo
09:00 MojoGuest16 left #mojo
09:00 MojoGuest327 joined #mojo
09:00 MojoGuest327 From: http://www.google.fr/url?sa=t&source=web&a​mp;cd=2&ved=0CCQQFjAB&url=http%3A%2F%2​Fdev.xantus.org%2F&rct=j&q=websocket%2​0demo&ei=LredTMHyFZCn4AavgYm7DQ&usg=AF​QjCNGw6nZv0wO42uzUnHhWcD0vcKNULg&cad=rja (2 hits)
09:00 MojoGuest327 test
09:03 MojoGuest225 joined #mojo
09:03 MojoGuest225 From: http://www.google.fr/url?sa=t&source=web&a​mp;cd=2&ved=0CCQQFjAB&url=http%3A%2F%2​Fdev.xantus.org%2F&rct=j&q=websocket%2​0demo&ei=LredTMHyFZCn4AavgYm7DQ&usg=AF​QjCNGw6nZv0wO42uzUnHhWcD0vcKNULg&cad=rja (3 hits)
09:03 MojoGuest225 left #mojo
09:04 MojoGuest408 left #mojo
09:09 perlrocks Twitter: "Search google from command line with #Mojolicious #Perl http://gist.github.com/596643" --vtivti http://twitter.com/vtivti/status/25484134208
09:10 perlrocks Twitter: "RT @vtivti: Search google from command line with #Mojolicious #Perl http://gist.github.com/596643" --marcusramberg http://twitter.com/marcusr​amberg/status/25484193663
09:11 perlrocks Twitter: "RT @vtivti: Search google from command line with #Mojolicious #Perl http://gist.github.com/596643" --rabenfeder http://twitter.com/rabenfeder/status/25484245659
09:20 perlrocks Twitter: "RT @vtivti: Search google from command line with #Mojolicious #Perl http://gist.github.com/596643" --kraih http://twitter.com/kraih/status/25484612567
09:24 vti sri: https://gist.github.com/b073c317f59d4d07fe1c
09:25 und3f[A] is now known as und3f
09:26 sri vti: not a test case!
09:26 sri does it redirect more than 3 times maybe?
09:27 vti no, it redirect only to /news once
09:27 vti *s
09:29 sri looks like a special case, redirect target does not exist
09:30 sri as in bad hostname
09:30 perlrocks Twitter: "RT @vtivti: Search google from command line with #Mojolicious #Perl http://gist.github.com/596643" --esskar http://twitter.com/esskar/status/25485086373
09:32 sri send me a test case and i'll fix it
09:33 vti live?
09:33 sri no
09:34 sri but it needs to go into client_online.t i guess
09:35 sri to the rest of the exception tests
09:35 perlrocks Twitter: "RT @ vtivti: Search google from command line with # # Perl Mojolicious http://gist.github.com/596643" (de) --discordianfish http://twitter.com/discord​ianfish/status/25485276335
09:35 vti then it's going to be live
09:35 sri not digg
09:36 sri they change their stuff every week
09:38 sri ah, their redirect is broken
09:38 sri Location: /news
09:38 sri invalid location
09:42 sri wonder if we should just support broken redirects
09:51 perlrocks Twitter: "RT @ vtivti: Search google from command line with # # Perl Mojolicious http://gist.github.com/596643" (de) --2mad4milk http://twitter.com/2mad4milk/status/25486014340
09:54 kvorg joined #mojo
09:54 kvorg_ joined #mojo
10:03 GitHub109 joined #mojo
10:03 GitHub109 mojo: master Sebastian Riedel * 836e49d (1 files in 1 dirs): improved redirect handling in Mojo::Client - http://bit.ly/cT0RQy
10:03 GitHub109 left #mojo
10:04 sri vti: that should take care of both cases, bad host and missing host, still expect tests though ;p
10:06 vti i should have been a gsoc student
10:08 GitHub170 joined #mojo
10:08 GitHub170 mojo: master Sebastian Riedel * 0c717b7 (1 files in 1 dirs): cleanup - http://bit.ly/97gN5y
10:08 GitHub170 left #mojo
10:08 sri you should
10:11 sri maybe next year we can have an acajou again
10:12 perlrocks Twitter: "Explore digg with #Mojolicious #Perl http://gist.github.com/596704" --vtivti http://twitter.com/vtivti/status/25486936123
10:12 vti sri: now you should fix Mojo::Client pod too ;p
10:12 sri whats broken?
10:12 vti class name
10:13 vti for diff.com
10:13 sri haha
10:13 vti digg i mean =/
10:14 GitHub123 joined #mojo
10:14 GitHub123 mojo: master Sebastian Riedel * 02e179e (1 files in 1 dirs): pod fix - http://bit.ly/cMNg5D
10:14 GitHub123 left #mojo
10:14 vti max_redirects too....
10:15 sri grrr
10:15 GitHub105 joined #mojo
10:15 GitHub105 mojo: master Sebastian Riedel * 1e6e5bc (1 files in 1 dirs): pod fix - http://bit.ly/cgdy1S
10:15 GitHub105 left #mojo
10:17 sri the Location: /path case should be almost impossible to test without a app.t like mock http server
10:17 sri because the test client automatically turns relative urls into absolute ones using the test app
10:18 sri wait, i think we don't have a mock server test yet, do we?
10:19 sri aside from the proxy in the websocket tests
10:20 sri really hard test to write
10:20 sri vti: i'll be really impressed if you find a way :)
10:20 perlrocks Twitter: "RT @vtivti Search google from command line with #Mojolicious #Perl http://gist.github.com/596643" --xomaa http://twitter.com/xomaa/status/25487288784
10:22 sri just the bad target host test is trivial
10:23 vti mock server
10:23 vti hm...
10:23 sri examples/microhttps.pl
10:23 sri s/s/d/
10:24 sri t/mojo/app.t does it with a mock client
10:29 sri Rhaen: you should really move the content of your wiki into the github wiki :)
10:36 marcus_ morning
10:36 sri moin
10:38 MojoGuest327 left #mojo
11:27 Rhaen sri: ok, ok, ok :)
11:29 perlrocks Twitter: "RT @vtivti: Explore digg with #Mojolicious #Perl http://gist.github.com/596704" --rabenfeder http://twitter.com/rabenfeder/status/25490519930
11:31 vti retweet day
11:32 doodz joined #mojo
11:35 marcus_ sweet how gist integrates with newtwitter
11:38 doodz left #mojo
11:40 marcus_ vti: can you see why MOJO_MAX_REDIRECTS=3 perl -Mojo -e'g("digg.com")->dom->find("h3 > a.story-title")->each(sub { print shift->text })' doesn't work?
11:41 marcus_ gives Use of uninitialized value $nid in hash element at /Users/marcus/perl5/perlbrew/perls/perl-5​.10.1/lib/site_perl/5.10.1/Mojo/Client.pm line 895.
11:41 Rhaen Use of uninitialized value $nid in hash element at /Users/rhaen/perl5/lib/perl5/Mojo/Client.pm line 895.
11:41 Rhaen same here.
11:41 Rhaen Mojo build from tonight
11:42 vti marcus_: sri fixed it
11:43 marcus_ vti: it's still broken with trunk
11:43 Rhaen vti: marcus_: sri fixed it (TM)
11:44 * marcus_ is watching Tekken
11:45 vti hm, true
11:47 marcus_ btw, it would be nice if Mojo::Message->dom took an optional parameter to perform a find directly.
11:47 marcus_ so you could just do g("digg.com")->dom("h3 > a.story-title")
11:54 omega marcus_: you use git svn for the tvguide right? wanna tar that up and put it somewhere? git svn fetch is taking forever to get trough the history :p
12:05 marcus_ omega: I'm in Lillehammer on a sucky link atm.
12:06 marcus_ lemme check how big the tarball is
12:07 marcus_ omega: TVGuide.tgz                                                                                              0%  336KB 102.0KB/s   24:14 ETA
12:07 marcus_ oops, now the ETA is up to 1h
12:09 omega yikes
12:09 omega nm then
12:09 omega if I'm not done by monday, we can fix it then? :)
12:09 marcus_ yepp
12:09 marcus_ tgz is 145mb
12:11 und3f is now known as und3f[A]
12:22 crab sri: re "a plugin could return the installed route", how does that work? $x = $self->plugin(foo => ...), is it the return value from sub register?
12:55 sri marcus: works flawless
12:55 sri marcus: fixed 2 hours or so ago
12:56 marcus_ sri: did you forget to push?
12:56 sri nope
12:57 marcus_ sri: I just did a make install from github master, and it not working.
12:57 sri well, as long as i don't have a failing test case it's not a feature anyway
12:57 marcus_ sri: maybe you fixed it but not for ojo?
12:57 sri even though i have it working here
12:57 sri same code
12:57 sri i just ran your oneliner
12:58 sri actually, the message you posted can't happen anymore
12:58 sri so it is 100% old code
12:59 sri http://github.com/kraih/mojo/blo​b/master/lib/Mojo/Client.pm#L895
12:59 sri see
12:59 sri thats a whole different line
13:00 sri crab: yes it is
13:01 crab sri: thanks
13:01 crab that's convenient.
13:02 sri esskar: see! he said it is convenient!
13:02 sri esskar wanted me to remove it :)
13:03 sri marcus_: you could help poking vti about the test
13:03 * sri pokes vti
13:04 marcus_ sri: I really don't understand why make install isn't updating Mojo::Client
13:04 su-bzero left #mojo
13:04 marcus_ tested it in my Mojo checkout with -Ilib now and it works
13:04 sri permissions?
13:05 marcus_ no, it's in my home dir
13:06 sri MOJO_MAX_REDIRECTS=3 perl -Ilib -Mojo -e'g("digg.com")->dom->find("h3 > a.story-title")->each(sub { b(pop, ". ", shift->text)->say })'
13:06 sri better oneliner btw
13:08 sri actually, redirects are even enabled for ojo
13:08 sri no need for the env var
13:09 sri perl -Ilib -Mojo -e'g("digg.com")->dom->find​("a.story-title")->each(sub { b(pop, ". ", shift->text)->say })'
13:09 sri same result
13:10 su-bzero joined #mojo
13:10 sri b()->say is pretty damn convenient
13:10 marcus_ not much longer than print either
13:11 sri "\n"
13:11 sri perl -Ilib -Mojo -E'g("digg.com")->dom->find​("a.story-title")->each(sub { say pop, ". ", shift->text })'
13:11 sri more convenient though
13:12 marcus_ -l
13:12 marcus_ adds \n
13:14 marcus_ sri: what about my suggestion to support a selector to param to ->dom ?
13:14 marcus_ distclean did the trick
13:14 sri ?
13:14 marcus_ managed to get trunk installed properly now
13:14 sri selector to param?
13:14 marcus_ sri: so $res->dom('a') could be a shortcut for $res->dom->find('a')
13:15 sri never heard that suggestion
13:15 marcus_ selector as param, sorry.
13:15 sri but would be convenient i guess
13:15 marcus_ 13:47 today :)
13:23 marcus_ sri: btw, I really liked the nosql CRUD idea
13:24 sri just need to get someone to steal it now ;)
13:25 crab what nosql crud idea?
13:25 sri see my tweet
13:25 crab what tweet?
13:25 sri contains a pastie
13:25 perlrocks Twitter: "perl -Mojo -e'g("digg.com")->dom->find("h3 > a.story-title")->each(sub { print shift->text })' - Oneliner version of @vtivti's gist." --marcusramberg http://twitter.com/marcusr​amberg/status/25497637173
13:26 sri from yesterday
13:26 sri crab: http://twitter.com/kraih/status/25392961184
13:29 sri storage backends like couchdb wouldn't need a serializer
13:29 sri since they are document oriented by design
13:29 sri same for mongodb i guess
13:30 sri the idea is a versatile crud system for schemaless nosql databases
13:30 crab hmm.
13:36 marcus_ sri: http://gist.github.com/596843
13:37 sri marcus_: tests!
13:42 spleenjack joined #mojo
13:42 marcus_ sri: http://gist.github.com/596846
13:43 sri marcus_: looks good
13:47 marcus_ \o/
14:05 crab it's a bit ugly if you try to bundle controllers in plugins
14:05 sri bundle a lite app
14:05 sri or use callbacks
14:06 sri to(cb => sub {...})
14:06 sri possibilities are infinite
14:09 tempire marcus_: I had the 'mojolicious not updating' problem as well.  I always fully uninstall it now to avoid problems.
14:17 tempire ->dom('a)++
14:19 fish__ left #mojo
14:19 marcus_ home is where yo mama is
14:24 GitHub52 joined #mojo
14:24 GitHub52 mojo: master Mons Anderson * 1701e87 (1 files in 1 dirs): speed up encode/decode
14:24 GitHub52 mojo: master Mons Anderson * 0d26568 (2 files in 2 dirs): Speed up b() and fix b(b()) ...
14:24 GitHub52 mojo: master Sebastian Riedel * 31319b0 (13 files in 7 dirs): cleanup
14:24 GitHub52 mojo: master commits 1e6e5bc...31319b0 - http://bit.ly/9C0xCU
14:24 GitHub52 left #mojo
14:28 sri b() is now cheaper than Mojo::ByteStream->new
14:36 spleenjack left #mojo
14:36 spleenjack joined #mojo
14:39 GitHub154 joined #mojo
14:39 GitHub154 mojo: master Sebastian Riedel * 8e54fff (3 files in 3 dirs): added selector support to the dom method of Mojo::Message - http://bit.ly/aWVCXH
14:39 GitHub154 left #mojo
14:40 sri perl -Mojo -E'g("digg.com")->dom("a.story-title")->each(sub { say pop, ". ", shift->text })'
14:40 sri very convenient
14:41 sri !tweet ♥
14:41 perlrocks sri: http://twitter.com/perlrocks/status/25503453554
14:43 sri !tweet perl -Mojo -E'g("digg.com")->dom("a.story-title")->each(sub { say shift->text })'
14:43 perlrocks sri: http://twitter.com/perlrocks/status/25503615495
14:43 perlrocks Twitter: "perl-Mojo-E 'g (' digg.com ') -> Judgement ("a.story-title') -> EACH (sub (say shift-> text))" - Sri" (sv) --perlrocks http://twitter.com/perlrocks/status/25503615495
14:44 sri thats modern perl baby
14:45 marcus_ yepp :)
14:47 sri btw. i wouldn't mind some Mojo::DOM patches for pseudo classes
14:48 sri but i guess most of them are much easier written in perl anyway
14:48 marcus_ I'd like g('hlaghhlaghhlag') to output some sort of warning
14:48 marcus_ like 'Could not resolve hlaghlaghlagh'
14:49 sri very doable
14:49 sri just add $tx->error checking to ojo
14:50 sri see Mojo::Command::Get
14:50 sri i think it does it
14:51 sri odyssey:mojo sri$ ./script/mojo get http://hlglglglglglglglg
14:51 sri Couldn't open page "http://hlglglglglglglglg". (Couldn't connect.)
14:52 sri hmm... who would want to write ->dom('a:nth-child(4)') instead of ->dom('a')->[4]
14:53 sri ->dom('a:nth-child(odd)') could be interesting though
14:53 spleenjack left #mojo
14:56 sri might also be stuff though people would rather do in perl
14:59 marcus_ I think supporting as much jquery syntax as possible is good
14:59 sri thats true
14:59 perlrocks Twitter: "Modern perl: perl-Mojo-E 'g (' digg.com ') -> dom (a.story-title') -> each (sub (say shift-> text))" (af) --nordmarcus http://twitter.com/nordmarcus/status/25504981816
14:59 sri think jquery doesn't bother much with pseudo classes
14:59 marcus_ sri: why does your bot format perl tweets so shitty? :)
15:00 sri google translate -.-
15:00 sri no clue what (af) is
15:02 perlrocks left #mojo
15:03 perlrocks joined #mojo
15:03 sri try again :)
15:04 sri no wait i can retweet!
15:04 sri oh it is your norwegian twitter stream
15:05 perlrocks Twitter: "RT @ nordmarcus: Modern perl: perl-Mojo-E 'g (' digg.com ') -> dom (a.story-title') -> each (sub say (shift-> text))" (af) --kraih http://twitter.com/kraih/status/25505554306
15:05 sri \o/
15:06 sri even translated
15:06 omega it still messed up spaces?
15:06 sri yea
15:06 sri not much one can do about it
15:07 sri it's the translate api
15:07 marcus_ sri: http://gist.github.com/596919
15:07 marcus_ also, translates { to (
15:07 sri :O
15:07 sri nope to nothing
15:09 sri marcus_: maybe warn instead of print?
15:12 GitHub91 joined #mojo
15:12 GitHub91 mojo: master Sebastian Riedel * 5e96343 (2 files in 2 dirs): added failed request warnings to ojo - http://bit.ly/cKsDTm
15:12 GitHub91 left #mojo
15:13 sri in this case warn is better imo
15:13 marcus_ I agree
15:14 marcus_ better to get it on STDERR
15:15 perlrocks Twitter: "Just tell me if i'm retweeting too much, there is so much going on around #mojolicious at the moment. :) #perl" --kraih http://twitter.com/kraih/status/25506371257
15:18 * sri needs pizza
15:20 perlrocks Twitter: "@paulhenrich Mojo includes a special 'ojo package for oneliners - http://search.cpan.org/~kraih/M​ojolicious-0.999929/lib/ojo.pm" --nordmarcus http://twitter.com/nordmarcus/status/25506790264
15:20 * marcus_ suspects sri of secretely being one of the TMNT
15:21 sri but which one?
15:22 marcus_ donatello, obviously
15:23 sri now you got me :S
15:23 tempire I'm tempted to retweet that comment.
15:25 sri http://www.flying-pizza.de # damn you pizzas for being so delicious
15:25 und3f[A] is now known as und3f
15:29 perlrocks Twitter: "Btw. All the fun #mojolicious oneliner flying around today do require "Hot Beverage" (latest version on #github). #perl" --kraih http://twitter.com/kraih/status/25507626512
15:30 ash_ joined #mojo
15:31 perlrocks Twitter: "Btw. All the fun #mojolicious oneliners flying around today do require "Hot Beverage" (latest version on #github). #perl" --kraih http://twitter.com/kraih/status/25507803738
15:32 sri cleanup! :)
15:32 marcus_ your favorite blood sport
15:33 sri i don't do it because i like it, i'm like Monk :/
15:36 sri http://github.com/madrobby/vapor.js # lol
15:49 GabrielVieira left #mojo
16:01 spleenjack joined #mojo
16:17 omega haha
16:20 GabrielVieira joined #mojo
16:33 omega http://home.palle.net/~omega/js/dice/
16:34 omega playing with css 3d transformations
16:36 kimoto left #mojo
16:55 kvorg_ !tweet sri++ for selector support in DOM method of Mojo::Message - and including 'say pop' as an example of modern perl.
16:55 perlrocks kvorg_: http://twitter.com/perlrocks/status/25514644880
16:55 perlrocks Twitter: "sri++ for selector support in DOM method of Mojo::Message - and including 'say pop' as an example of modern perl. --kvorg_" --perlrocks http://twitter.com/perlrocks/status/25514644880
16:55 perlrocks Twitter: "RT @nordmarcus: @paulhenrich Mojo includes a special 'ojo package for oneliners - http://search.cpan.org/~kra​ih/Mojolicious-0.999929/lib ..." --paulhenrich http://twitter.com/paulhenrich/status/25514697025
17:11 sri !tweet say pop! #perl
17:11 perlrocks sri: http://twitter.com/perlrocks/status/25515899638
17:44 spleenjack left #mojo
18:06 perlrocks Twitter: "RT @marcusramberg: perl -Mojo -e'g("digg.com")->dom->find("h3 > a.story-title")->each(sub { print shift->text })' - Oneli ..." --esskar http://twitter.com/esskar/status/25519831284
18:17 tempire Is the stash of the endpoint no longer available in the bridge?
18:17 tempire captures, I should say.
18:20 sri correct
18:20 sri there were side effects
18:20 sri bridges couldn't have their own templates before
18:21 tempire why would a bridge need a template?
18:21 sri access denied
18:22 sri or just a waypoint
18:22 tempire hrm.  seems better suited for an accessdenied endpoint.
18:23 tempire well this is unfortunate.  I was loading objects via /object/id and dispatching them to endpoints.
18:24 sri redispatching?
18:25 * sri doesn't follow
18:26 tempire not dispatching from the bridge, but rather storing the objects in the cache and letting endpoints use those values later
18:26 tempire s/cache/stash/
18:26 sri i still don't get it
18:26 * tempire should start using the right terms
18:33 tempire something like this: http://pastie.org/1181341
18:44 sri that shouldn't be a bridge imo
18:44 sri just a model used in both actions
18:48 tempire for that simple example, yes.
18:49 tempire but if you're generating urls & redirecting based on what's found in the model... http://pastie.org/1181375
18:49 tempire that's a lot of code to include in both actions
18:50 sri the bridge depends on the actual route of the endpoint, thats just wrong
18:51 sri nobody would be able to follow the tree at some point
18:51 sri if it's that complicated make it a helper
18:53 sri the code just belongs to the route that actually captured the id
18:54 sri everythign else is not transparent
18:55 tempire So you're saying the only valid usage of a bridge is authentication?
18:55 tempire I suppose.  It is something I borrowed from catalyst chaining.
18:56 sri catalyst chains allow you to access values captured later in the chain?
18:57 sri i'm not saying authentication is the only valid use, just that accessing values that are captured later is wonky
18:58 tempire Chained actions let you capture url parts as it works its way down the chain
18:58 sri so it's the exact same
18:58 tempire This was my way of accomplishing the same end result
18:59 tempire But it makes sense to keep the action code specifically within the action.  I'll go the helper route.
19:11 kvorg left #mojo
19:11 kvorg_ left #mojo
19:16 sri tempire: maybe we can be a little more liberal
19:17 tempire I agree with you about the wonkiness
19:17 tempire it's hella useful, but it doesn't make sense.
19:17 tempire I'm thinking nested routes are what I'm wanting.
19:17 sri possibly
19:19 sri i'm wondering what makes more sense to normal users
19:19 sri seeing the route as a whole or in stages
19:20 * marcus_ ponders switching back from pentax to canon or nikon
19:20 sri bridge->to(foo => 'bar')->route->to(foo => 'baz')
19:21 sri what value would you expect from ->param('foo')?
19:21 sri in the bridge
19:21 tempire bar seems the most obvious
19:21 sri it wouldn't if we would treat the route as a whole
19:22 a|newkirk[assoc] left #mojo
19:22 tempire The current hip way of handling urls is to promote separate parts.  I don't think it's a good idea to move away from that.
19:23 tempire s/parts/stages/
19:23 sri neither do i
19:26 marcus_ angelheaded hipsters burning for ancient heavenly connection to the starry dynamo in the machinery of night
19:26 GitHub90 joined #mojo
19:26 GitHub90 mojo: master Sebastian Riedel * ac68e8d (2 files in 2 dirs): cleanup - http://bit.ly/97AAZB
19:26 GitHub90 left #mojo
19:27 sri http://www.burntweiners.com/wp-c​ontent/uploads/2010/08/bear.jpg # ?
19:30 marcus_ sri: what camera do you have these days?
19:30 marcus_ sri: more like LSD
19:31 marcus_ http://www.wussu.com/poems/agh.htm
19:31 sri not much photographing these days, still got my old canon
19:32 marcus_ thinking I might sell everything and get a 5d with a 24-105
19:34 * sri wonders if DSLRs are dead
19:34 sri there is a new generation of small hipster cameras coming with removable lenses
19:35 marcus_ yeah, micro four thirds
19:35 marcus_ http://en.wikipedia.org/wiki/Sony_NEX-5 is interesting too
19:36 sri indeed
19:39 kvorg joined #mojo
19:40 kvorg_ joined #mojo
19:40 sri http://www.crunchgear.com/2010/09/17/​is-the-nikon-q-the-next-evil-camera/
19:40 sri that should be interesting too
19:41 marcus_ yes
19:41 Rhaen_ joined #mojo
19:41 marcus_ micro four thirds is interesting because of the lens selection
19:42 marcus_ http://www.pocket-lint.com/review/5​023/panasonic-lumix-dmc-gh2-preview
19:46 Rhaen left #mojo
19:46 Rhaen_ is now known as Rhaen
19:53 petrus_a joined #mojo
20:15 spleenjack joined #mojo
20:19 tempire nested routes match only one endpoint, right?
20:35 sri tempire: what do you mean?
20:36 tempire meaning you can't have multiple actions run like you can within a bridge, it will only pick one action out of the route chain.
20:36 sri tempire: see routing guide
20:36 tempire I have, the wording is a little unclear, just want to make sure.
20:36 sri only the endpoint runs
20:36 tempire k
20:42 crab sigh.
20:42 crab i moved all my user authentication blah into a plugin, but now i can't help but feel it was all not worth it at all.
20:47 sri then it possibly wasn't
21:02 spleenjack left #mojo
21:02 sri only put code into plugins for reuse, not because you can :)
21:03 crab this was in fact for reuse. i'm working on three projects, all of which need essentially the same code.
21:04 crab anyway, it works either way, so i won't spend any more time worrying about it.
21:06 sri that does sound like a plugin is worth it
21:10 GitHub20 joined #mojo
21:10 GitHub20 mojo: master Sebastian Riedel * 2276a2f (1 files in 1 dirs): cleanup - http://bit.ly/b9TbII
21:10 GitHub20 left #mojo
21:18 janus sri: you're commit messages aren't spectacular enough, can i send diff's for those? ;)
21:18 janus s/'re/r/
21:18 sri no ;p
21:26 janus now need to port what? Socket::IP? :)
21:27 janus got it
21:29 janus means openbsd commits for me, so i'm actually thankful for it ;)
21:36 sri it's optional :)
21:38 petrus_a left #mojo
21:43 sri Zzz
21:47 crab i think it'll be better if i use a bit of a callback.
21:56 GabrielVieira2 joined #mojo
21:56 GabrielVieira left #mojo
22:21 petrus_a joined #mojo
22:26 Rhaen hep.
22:27 crab hep to you too
22:31 Rhaen :)
22:31 Rhaen Does anyone have experience with the github wiki thing?
22:32 Rhaen ah, think I figured it, it's a git based wiki which is not included in the fork
22:41 Rhaen strange, I can have my own wiki in my own git repo, but I am forced to send patches
22:44 Rhaen that's it. I can't use pull requests, hm. Strange implementation
22:50 Rhaen sri?
22:56 Rhaen hm, he sleeps. Awesome :)
22:56 Rhaen Ok, sri - when you read this, reply later :)
22:58 Rhaen oh, I can change his wiki pages using the webinterface but not using git.
22:58 Rhaen that's something interesting :)
22:59 und3f is now known as und3f[A]
23:10 Rhaen sri, I've changed the wiki pages directly :) we should talk about the future wiki structure tomorrow
23:10 Rhaen I am not sure why I am allowed to change the wiki directly? Have you included me into access list?
23:13 Rhaen ah, yep - it's written down in the documentation. "Any GitHub user can create and edit..."
23:14 Rhaen means everyone can change everyones documentation. Hm, that's not that nice, hm?
23:14 Rhaen suggestions?
23:15 Rhaen bedtime see you tomorrow
23:23 Htbaa left #mojo
23:58 esskar_ sri, when setting a cookie via $tx->req->cookies, will this be signed be the controller that owns the tx?

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