Camelia, the Perl 6 bug

IRC log for #mojo, 2010-11-19

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

All times shown according to UTC.

Time Nick Message
00:28 daviddelikat joined #mojo
00:40 Alias_ joined #mojo
00:57 xantus sri: sup
00:57 xantus anyone else using riak?
01:12 stephen OK, I'm probably doing something stupid here.
01:12 stephen I call my app manually like so: /usr/local/bin/perl -d ./daytona_light get '/daytona_graph.cgi?operation=rrd_info&di​r=application&test_id=210&hostname=averag​e&hostname=completeworld.corp.yahoo.com&h​ostname=perflab279.yst.corp.yahoo.com'
01:12 stephen (Most of which are irrelevant)
01:13 sri xantus: think i made some people try riak too
01:13 stephen Then, I want to do some rewriting. I add a before-dispatch hook.
01:14 stephen I get the URL with my ($self, $c) = @_; my $url = $c->tx->req->url;
01:14 stephen But $url appears to be: /daytona_graph.cgi?operation=rrd_info&=&=&=&=&=
01:14 stephen Does this make sense to anyone?
01:17 sri "mojo get '/diag/chunked_params?foo=bar&bar=baz&lalala=23'" tells me you must be doing something very wrong
01:20 stephen Should be pretty much the first thing called, though.
01:21 sri i mean i don't think the right query string ever arrived at all
01:22 sri "MOJO_CLIENT_DEBUG=1 mojo get '/diag/chunked_params?foo=bar&bar=baz&lalala=23'"
01:22 sri this will show you the raw http messages
01:22 stephen Excellent.. let me check that
01:23 sri MOJO_DAEMON_DEBUG=1 will show the same from the server side
01:24 MadManchegan joined #mojo
01:24 stephen My version of Mojolicious appears to be too old to allow me such wonders.
01:25 sri ohoh
01:25 sri that has to be very very very old
01:25 stephen 0.999924
01:25 sri ouch
01:25 sri ancient
01:25 stephen Unfortunately I'm kind of trapped in perl 5.8 for now
01:25 sri we support 5.8.7
01:26 stephen More specifically 5.8.6
01:26 sri ohoh
01:26 sri i'm afraid you'll get to meet countless bugs then
01:26 stephen Already have. Managed to dodge most of them.
01:27 sri 24 is from march this year
01:27 stephen If I can get through this one, I'll have time to upgrade the install.
01:28 sri stephen: *always* mention something like that before asking
01:28 stephen Accepted.
01:30 stephen Well, I'll see what I can work around. Later.
01:38 sri stephen: why 5.8.6?
01:38 stephen Internal politics, as far as I can tell.
01:38 MadManchegan left #mojo
01:38 MojoGuest196 joined #mojo
01:39 MojoGuest196 left #mojo
01:39 stephen brb
01:39 sri thats very wrong
01:40 sri do you realize 5.8.6 is from 2004?
01:40 sri the latest 5.8 bugfix release is 5.8.9
01:41 MadManchegan joined #mojo
01:48 stephen I do realize these things.
01:48 stephen I work for a large company whose infrastructure is not under my control.
01:49 stephen To give them credit, they've moved primarily to 5.10, and I need to convince my superior to let me upgrade our installation.
01:52 Alias_ 5.8.6 is an odd version
01:53 MojoGuest332 joined #mojo
01:53 MojoGuest332 From: http://www.google.com/search?sourceid=chr​ome&ie=UTF-8&q=html+5+irc+client (1 hits)
01:53 MojoGuest332 hey
01:54 MojoGuest332 left #mojo
01:54 MadManchegan left #mojo
01:57 crab sri: around?
01:57 sri crab: depends
02:00 crab i have a <% content scripts => {%> ... <%}%> thing in some templates, which gets included in my layout via <%= content 'scripts' %>
02:00 crab (how) can i write a helper that allows me to append to the top-level scripts section from various places (included templates, etc.)
02:01 sri you just need to understand how block helpers work
02:01 crab <% append_to scripts => {%> ... <%}%> or something
02:01 sri that tag syntax is deprecated btw
02:02 crab what is recommended now?
02:02 sri <% append_to scripts => begin %>...<% end %>
02:02 crab better.
02:03 sri a block is just a sub that gets passed as last argument to the helper
02:08 crab a sub that returns the text it evaluates to?
02:08 sri yes
02:11 crab so ultimately i want to call render_inner(content => sub { firstblock } . sub { secondblock } ...)?
02:12 crab hm, no. the final call should be <% content 'scripts' %> as it is now.
02:12 * crab thinks
02:13 sri no
02:13 sri $self->content($name => $self->content($name) . $sub->());
02:13 sri something like that
02:15 crab thanks
02:15 stephen left #mojo
03:12 Alias_ left #mojo
03:22 tempire tabs forever!
03:24 tempire I'm like pink cola up this piece.
04:04 tl joined #mojo
04:06 tholen42 left #mojo
04:10 sri tabs must die!
04:10 zoo-zed joined #mojo
04:11 GitHub65 joined #mojo
04:11 GitHub65 mojo: master Sebastian Riedel * d20ed86 (3 files in 3 dirs): made Mojo::IOLoop resolver results more useful - http://bit.ly/by0Ysm
04:11 GitHub65 left #mojo
04:12 sri und3f[A]: i'm afraid this might break your app
04:18 zoo-zed left #mojo
04:26 su-bzero joined #mojo
04:27 su-bzero_ left #mojo
04:34 GitHub38 joined #mojo
04:34 GitHub38 mojo: master Sebastian Riedel * cbe69fb (3 files in 3 dirs): added CNAME and NS record type support to Mojo::IOLoop resolver - http://bit.ly/9IepSK
04:34 GitHub38 left #mojo
04:50 GitHub183 joined #mojo
04:50 GitHub183 mojo: master Sebastian Riedel * dfb695d (1 files in 1 dirs): cleanup - http://bit.ly/9x1Hlm
04:50 GitHub183 left #mojo
04:56 GitHub93 joined #mojo
04:56 GitHub93 mojo: master Sebastian Riedel * 5c8a94d (1 files in 1 dirs): made get command a little smarter - http://bit.ly/aiq2uv
04:56 GitHub93 left #mojo
05:01 giwi left #mojo
05:22 GitHub83 joined #mojo
05:22 GitHub83 mojo: master Sebastian Riedel * 1f2e23a (1 files in 1 dirs): cleanup - http://bit.ly/cByAx3
05:22 GitHub83 left #mojo
05:26 GitHub184 joined #mojo
05:26 GitHub184 mojo: master Sebastian Riedel * cd0841c (1 files in 1 dirs): cleanup - http://bit.ly/a0rsOX
05:26 GitHub184 left #mojo
05:26 kaare joined #mojo
05:27 sri gonna release later today
06:01 giwi joined #mojo
06:22 xantus cool
06:25 ltriant left #mojo
06:49 perlrocks joined #mojo
06:56 marcus http://wadearnold.com/blog/sc​ala/scala-is-easier-than-php
06:56 koban joined #mojo
07:07 koban left #mojo
07:09 kvorg left #mojo
07:27 ysyrota joined #mojo
07:31 sri marcus: haha
07:38 koban joined #mojo
07:48 kaare left #mojo
07:49 GitHub129 joined #mojo
07:49 GitHub129 mojo: master Sebastian Riedel * 352f0ed (1 files in 1 dirs): update FAQ - http://bit.ly/d7DcjS
07:49 GitHub129 left #mojo
08:03 robinsmidsrod left #mojo
08:03 robinsmidsrod joined #mojo
08:32 yko joined #mojo
09:04 giwi left #mojo
09:19 und3f[A] is now known as und3f
09:20 und3f mornin'
09:26 yko left #mojo
09:58 otaviof joined #mojo
10:02 * sri waves
10:02 sri und3f: don't be scared when you update, i broke the resolver api
10:02 und3f aaah
10:05 otaviof left #mojo
10:14 sri you now get better results back
10:15 sri like [['A', '127.0.0.1'], ['CNAME', 'lalala.localhost'], ['A', '127.0.0.2']]
10:16 und3f yeah, thats logically
10:17 kvorg joined #mojo
10:18 sri ye, think that format is future proof too, since we can append more values for priority and stuff
10:19 sri like [['MX', 'mail.mojolicious.org', 3], ['MX', 'mail2.mojolicious.org', 5]]
10:19 sri if we ever need it
10:25 und3f sri, but now i need to use grep to get my results :(
10:28 kvorg left #mojo
10:48 spleenjack joined #mojo
10:50 GitHub178 joined #mojo
10:50 GitHub178 mojo: master Sebastian Riedel * 9f3f4b7 (3 files in 3 dirs): cleanup - http://bit.ly/cloSkn
10:50 GitHub178 left #mojo
10:51 sri https://github.com/kazuho/p5-Net-DNS-Lite # haha
11:00 sri it's crazy how often we've been trendsetters
11:01 sri just wondering why nobody has picked up Mojo::DOM yet, it is so awesome
11:03 crab hmm, can i do a block-parameterised include?
11:04 crab <% include 'widget' => begin %> give me structure, and i will give you content <% end %>
11:04 sri ?
11:05 sri that doesn't make any sense
11:06 tholen joined #mojo
11:06 crab suppose the widget is <form ...>some stuff <submit button> </form>, and i'm feeding in the "some stuff"
11:07 sri i still don't get it
11:09 crab don't get what, or don't get why?
11:09 sri both, makes no sense at all to me
11:10 crab it's basically "wrap this in a standard wrapper"
11:13 und3f sri, what about for result like {'A' => ['127.0.0.1', '127.0.0.2'], 'CNAME' => ['lalalla.com']} ?
11:13 und3f a little bit user friendly
11:14 sri und3f: what about additional values like priority?
11:14 und3f right...
11:15 sri and i'm not sure if order might be interesting
11:18 kvorg joined #mojo
11:21 sri testing dns load balancing might be a use case
11:27 DaTa or using the load balancing :)
11:28 sri haha
11:31 sri btw. we need more 5 star ratings! http://cpanratings.perl.org/dist/Mojolicious
11:31 sri slackers!
11:31 sri no rating no release! :)
11:32 sri i'm taking 0.999941 hostage
11:33 sri you left me no choice! *scrambled voice*
11:34 sri only 5 star ratings and no police!
11:45 arthas joined #mojo
11:52 und3f sri, thanks for notifying about API changes. Updated all services to work with new API
11:57 kvorg left #mojo
12:32 rhaen get->mykey.
12:32 rhaen MOIN
12:41 sri moin
13:00 rhaen :)
13:01 rhaen today is Mojo time.
13:01 rhaen *tadaaa*
13:01 rhaen I will mess around with the wiki and contribute a login/create/delete user thingy or so - with memcache
13:16 daviddelikat left #mojo
13:23 Alias left #mojo
13:38 daviddelikat joined #mojo
13:40 fhelmberger left #mojo
13:41 fhelmberger joined #mojo
13:58 sri :)
13:59 sri and don't forget to rate!
14:17 und3f sri, one more review
14:25 perlrocks Twitter: "Released #mojolicious 0.999941 with a very nice new routes API, enjoy! :) http://bit.ly/9G79Rh #perl" --kraih http://twitter.com/kraih/status/5627617176715264
14:25 sri \o/
14:26 fhelmber_ joined #mojo
14:31 MojoGuest3 joined #mojo
14:33 perlrocks Twitter: "@scimon A lot and not very much at the same time, it is basically a hybrid of Mojolicious and Mojolicious::Lite. ;)" --kraih http://twitter.com/kraih/status/5629713959624704
14:33 fhelmber_ left #mojo
14:34 MojoGuest3 hi
14:34 MojoGuest3 hi
14:34 kvorg joined #mojo
14:37 MojoGuest3 left #mojo
15:06 perlrocks Twitter: "@kraih Grand. I'm working on an app for a friend at the moment using Mojolicious which I'm enjoying." --scimon http://twitter.com/scimon/status/5638124365422592
15:28 perlrocks Twitter: "RT @kraih Released #mojolicious 0.999941 with a very nice new routes API, enjoy! :) http://bit.ly/9G79Rh #perl" --xomaa http://twitter.com/xomaa/status/5643470819557376
15:29 kvorg left #mojo
15:35 rhaen heheeeeeeooo!
15:36 rhaen rage?
15:36 rhaen sri? What should I rage?
15:36 sri Oo
15:37 rhaen you said: don't forget to rate. I guess that was a typo. What should I rage?
15:38 sri ;p
15:38 sri CAN HAZ RATINGZ? http://cpanratings.perl.org/dist/Mojolicious
15:41 sri rage is actually the name of the latest id shooter for the iphone
15:41 rhaen no - ragequit is plain IDRA sc2 stuff.
15:41 sri which was released yesterday
15:42 rhaen omg - I should take the zergs and rush my boss.
15:42 rhaen do you have an iphone?
15:42 sri just got an iphone 4
15:42 rhaen CAN I HAZ IPHONE?
15:43 sri had a 3gs before... the new retina display is amazing
15:44 sri nerf terrans btw.... marines take no skill!
15:44 rhaen oh - oh, there are some serious marine microers around!
15:45 rhaen 3 marines ought to be enough to raid a base
15:45 rhaen unbelievable!
15:51 perlrocks Twitter: "I favorited a YouTube video -- Crazy, Sick, and Mojolicious Mail From Timmy519 & theaut... http://youtu.be/-QeHsYN0hgg?a" --TimsBaseball http://twitter.com/TimsBaseb​all/status/5649396163158016
15:52 sri wtf
15:57 rhaen wtf?
15:57 rhaen Is it safe for work?
16:10 koban left #mojo
16:21 ysyrota left #mojo
16:55 marcus authograph network?
17:03 MojoGuest976 joined #mojo
17:03 MojoGuest976 From: http://www.google.com/url?sa=D&amp​;q=http://dev.xantus.org&amp;usg=A​FQjCNF_rM6vpg9DT3eh4McOgWqn8mn5Xw (2 hits)
17:09 MojoGuest976 left #mojo
17:10 MojoGuest17 joined #mojo
17:10 MojoGuest17 From: http://www.google.com/url?sa=D&amp​;q=http://dev.xantus.org&amp;usg=A​FQjCNF_rM6vpg9DT3eh4McOgWqn8mn5Xw (3 hits)
17:11 MojoGuest17 left #mojo
17:34 su-bzero Dancer has more reviews at cpanratings ;))
17:56 perlrocks Twitter: "Mojolicious-0.999941: http://bit.ly/bM9m68" (ja) --1i_ http://twitter.com/1i_/status/5680905280561152
18:02 kvorg joined #mojo
18:06 mrSln1 joined #mojo
18:06 mrSln1 hello, my dear thinkers
18:10 mrSln1 my question today is: how to get all parameters from POST? I asked that already, but my English wasn't understandable. I did it by using $self->{tx}->{req}->{_body_params}->{params}, but now thing changed and that array doesn't able anymore. Please, help me.
18:11 mrSln1 I'm sorry for my English
18:20 tempire_ joined #mojo
18:22 sri mrSln1: don't ever touch private data
18:23 tempire_ mrSln1: $self->req->params->param('foo');
18:23 tempire_ http://search.cpan.org/~kraih/Mojolicious-0​.999941/lib/Mojo/Message/Request.pm#params
18:23 sri what he said
18:24 tempire_ To be fair, the difference between $self->param and $self->req->params->param is a little confusing.
18:24 sri $self->req->body_params would be a Mojo::Parameters object only containing the actual POST parameters
18:24 mrSln1 thank you very much to you two
18:24 sri tempire_: generally $self->param should be used
18:25 tempire_ $self->param works for post data?
18:25 tempire_ I thought it was just for route captures
18:25 sri it works for everything
18:25 sri routes, query and post
18:25 tempire_ in that order of precedence?
18:26 sri i'm not sure about query and post, but routes overrides both
18:27 sri actually i think query and post just get merged
18:27 sri with multiple values in case of collision
19:07 xantus[] joined #mojo
19:09 arpadszasz joined #mojo
19:30 spleenjack left #mojo
19:36 arthas left #mojo
19:40 stephen joined #mojo
19:42 tempire_ left #mojo
20:12 janus left #mojo
20:12 janus joined #mojo
20:37 baton8 left #mojo
20:42 spleenjack joined #mojo
20:56 spleenjack left #mojo
21:22 xantus[] mojo to the max
21:22 rhaen hep
21:29 xantus[] got the hiccups? :)
21:32 daviddelikat left #mojo
21:47 xantus[] left #mojo
21:47 MojoGuest855 joined #mojo
21:47 MojoGuest855 From: http://news.ycombinator.com/item?id=1277067 (53 hits)
21:48 MojoGuest855 left #mojo
22:23 Drossel joined #mojo
22:23 Kulag left #mojo
22:28 daviddelikat joined #mojo
22:33 Drossel left #mojo
22:34 Kulag joined #mojo
22:40 stephen left #mojo
22:41 stephen joined #mojo
22:51 xantus[] joined #mojo
23:08 Kulag left #mojo
23:08 Kulag joined #mojo
23:14 Kulag left #mojo
23:15 Kulag joined #mojo
23:21 Kulag left #mojo
23:22 Kulag joined #mojo
23:23 spleenjack joined #mojo
23:29 und3f is now known as und3f[A]
23:34 arpadszasz left #mojo
23:57 baton8 joined #mojo

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