Camelia, the Perl 6 bug

IRC log for #mojo, 2010-07-11

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

All times shown according to UTC.

Time Nick Message
00:16 diegok joined #mojo
00:36 ashleydev_ joined #mojo
00:45 vel joined #mojo
00:50 fifo left #mojo
01:21 diegok joined #mojo
01:38 ashleydev joined #mojo
02:01 Alias joined #mojo
03:00 janus joined #mojo
04:04 tholen42 joined #mojo
04:15 zakame hi hi
05:04 ashleydev_ joined #mojo
05:19 alex_ joined #mojo
05:39 alex__ joined #mojo
05:41 alex_ joined #mojo
05:44 alex__ joined #mojo
05:50 alex_ joined #mojo
05:50 ask joined #mojo
06:03 alex__ joined #mojo
06:12 alex_ joined #mojo
06:39 dotan2 joined #mojo
06:40 dotan joined #mojo
07:13 ask joined #mojo
10:05 fifo joined #mojo
10:05 diegok joined #mojo
10:27 ask joined #mojo
11:04 fifo Where are the files from public/? http://perl.pastebin.com/vRk5fz46
11:04 garfield [ Perl | use Mojolicious::Lite; get - Mojolicious::Lite and public - vRk5fz46 - Pastebin.com ]
11:23 doubi joined #mojo
11:35 diegok joined #mojo
12:45 spleenjack joined #mojo
13:23 diegok joined #mojo
13:35 dotan joined #mojo
13:41 diegok joined #mojo
14:17 sri fifo: doesn't work that way
14:17 sri only templates go into DATA
14:18 sri css files can be templates too though
14:47 ask joined #mojo
14:55 fifo sri: I wondered. Having built some small apps now I wanted to try some new things, but I don't really understand why it doesn't work. Shouldn't it be the same?
14:56 sri not at all
14:57 fifo ah okay, I see the reason now
14:57 fifo thought of it the wrong way. Stupid me...
15:19 sri hah, i'm using the async mojolicious client now to proxy the rss feed of my new blog to the old one planet.perl knows about :)
15:21 sri guess i could blog the hack :)
15:33 sri yay, works
15:41 sri and blogged http://blog.kraih.com/glue-for-the-web
15:41 garfield [ Glue for the web - Sebastian Riedel about Perl and the Web ]
15:59 weeber joined #mojo
16:27 dotan joined #mojo
16:32 fifo1 joined #mojo
16:33 fifo1 left #mojo
16:47 diegok joined #mojo
16:53 diegok_ joined #mojo
16:54 su-bzero_ joined #mojo
16:56 sri so much stuff i want to blog :)
17:01 dotan I'm trying to use max_redirects to get the client to follow the redirect and bring me the new page in the response of get->success. I think it's getting there, because I walked through Mojo::Client::_redirect twice in the debugger. Where is it hiding?
17:02 sri what?
17:03 dotan yes :)
17:04 sri that wasn't a question
17:04 sri (what you wrote)
17:06 dotan http://gist.github.com/471681
17:06 garfield [ gist: 471681 - GitHub ]
17:06 dotan I was concurring with your bafflement. :)
17:06 dotan The code is much simpler than the explanation.
17:07 dotan It's a one-liner.
17:14 dotan I set up a client with max_retries > 0. I get a page that returns a 305 redirect. The response I get on success is the redirect page (headers & body), not the page I redirected to.
17:15 dotan Do I have to use async?
17:16 sri oooh a 305
17:16 sri thats a special case
17:16 sri why would you return 305?
17:16 sri Use Proxy?
17:17 dotan Err, I moved the directory of my blog and I want google to update its links?
17:18 sri do you know what 305 actually means?
17:18 sri the resource wants to be accessed through a proxy server you return in the Location header
17:19 sri it's a very weird case we don't handle automatically
17:19 sri i highly doubt you really want that
17:20 dotan OK. What would be the preferred response code for that? 301?
17:21 sri 302 is normally used
17:25 dotan Wait, I'm actually doing a 301. Don't know why I wrote 305.
17:28 sri thats actually a bug
17:30 sri found it
17:30 sri easy to fix
17:30 sri only affects non callback requests
17:32 dotan Ah, so I should have used a callback to get it to work. When I tried that though it didn't print anything,
17:32 sri no you shouldn't
17:37 GitHub59 joined #mojo
17:37 GitHub59 mojo: master Sebastian Riedel * 9dc8165 (3 files in 3 dirs): fixed a small redirect bug in Mojo::Client - http://bit.ly/duJamf
17:37 GitHub59 left #mojo
17:37 sri dotan: fixed :)
17:38 dotan :)
17:48 dotan updated my machine and now it works :)
17:50 sri \o/
17:51 dotan The redirect tests will eventually need to be changed to something less location dependant. If I do TEST_CLIENT make test, google redirects to google.co.il instead of the expected google.de ...
18:17 sri yea
18:17 sri there are not many solid exampels out there though
18:17 sri *examples
18:21 dotan I though something with the accept_language header could do the trick, I recall reddit annoyed me with a half-done localization because I had a Hebrew accept language set
18:25 sri reddit is very unreliable, they constantly add traps for web scrapers
18:27 dotan Their html is horrid, I'm playing with dom->search->each to look at it
18:27 dotan Maybe php.net :P
18:28 sri hackernews is worse
18:28 sri they send invalid http ;p
18:28 dotan Yeah, I think I brought up their Content-Length: 0 header
18:28 sri i've thought about enabling relaxed mode by default just for hackernews
18:29 sri but that would require disabling keep alive by default... which sucks for everything else
18:30 ask joined #mojo
18:49 ask joined #mojo
19:23 diegok joined #mojo
19:32 diegok joined #mojo
19:33 alex_ joined #mojo
19:50 diegok joined #mojo
20:14 diegok joined #mojo
20:34 alex_ joined #mojo
20:36 diegok joined #mojo
20:38 dotan left #mojo
20:46 achromic joined #mojo
21:00 diegok joined #mojo
21:16 diegok joined #mojo
21:29 diegok joined #mojo
21:30 und3f joined #mojo
21:35 ashleydev joined #mojo
21:43 ashleydev joined #mojo
21:48 GitHub41 joined #mojo
21:48 GitHub41 mojo: master Sebastian Riedel * 80df95c (4 files in 3 dirs): improved lib detection - http://bit.ly/cQvlng
21:48 GitHub41 left #mojo
21:58 diegok joined #mojo
22:22 awnstudio joined #mojo
22:27 ltriant joined #mojo
22:29 diegok joined #mojo
22:38 diegok joined #mojo
22:49 diegok joined #mojo
23:02 sri don't forget to get your free jquery book :) http://sale.sitepoint.com/
23:02 garfield [ SitePoint : New Articles, Fresh Thinking for Web Developers and Designers ]
23:18 und3f sri, got it. thanks
23:59 Alias joined #mojo

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