Camelia, the Perl 6 bug

IRC log for #mojo, 2012-05-06

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

All times shown according to UTC.

Time Nick Message
00:00 xaka1 joined #mojo
00:35 xaka1 joined #mojo
01:08 MichaelRpdx joined #mojo
02:05 xaka1 joined #mojo
02:38 garu sri: would it make sense to have a "max_retries" option for Mojo::UserAgent?
02:39 garu I'm having to query some slow servers and I keep having to wrap $ua->get( $url ) in an ugly retries loop
02:40 sri garu: until the protocol abstraction problem is solved i'm against new user agent features
02:41 garu protocol abstraction problem? is there a link to this discussion somewhere? Can't recall what it is
02:41 sri it's the spdy discussion mostly
02:41 garu ah
02:42 garu no worries. I was just wondering if it was something desirable to have, I might just try and implement it
02:42 sri i want an independent protocol layer for http/1.1, spdy, http/2.0...
02:43 sri but i'm not very keen on retry as a core feature anyway
02:43 garu fair enough
02:44 garu it just made sense to me, that's all
02:44 garu (some brazilian web servers are too damn slow)
02:44 sri increase timeouts?
02:45 garu yeah, I'm using 60 seconds already :X
02:45 sri why would retry help you when a longer timeout wouldn't?
02:46 garu not in the general case I guess. In this particular case it would, because for some bizarre reason the server goes 500 on me if I make too many requests per second
02:47 garu maybe a firewall
02:47 sri and 500 would make it retry automatically?
02:47 garu you're right. Only in my code I guess :D
02:47 garu 500 should not retry in the general case ;)
02:48 sri hmm, that does not sound like a very good feature
02:48 garu yup
02:48 garu you're right
02:50 garu sri: I've been crawling this crappy server for almost two weeks in a row now, I guess it got me traumatized and now I think every server does that :X
02:51 sri :)
02:51 garu it's for a good reason, though - open data!
02:52 garu in fact, Mojo::UA supporting json and xml out of the box, and css selectors... I cry in joy every time I use it to query an API
02:52 garu sri++
02:52 sri \o/
02:54 garu oh, btw
02:54 garu Mojo::Plugin::I18N is playing tricks on me
02:54 garu I still have to debug it to figure what's going on and send a report/patch
02:55 sri i've rewritten most of it in 2.93
02:55 garu ah!
02:55 sri but it's still my least favorite code in mojolicious
02:55 garu cool, I'll have a look
02:55 garu it wasn't finding MyApp::I18N::pt
02:56 garu or rather, it was finding it
02:56 sri same as the config plugins... that stuff has grown a little weird
02:56 garu but it was claiming it wasn't a valid MakeText::Locale or whatever
02:57 garu I'll try it with 2.93
02:57 sri tbh should you find a huge bug, i'd rather remove it from core ;p
02:57 garu nooooOOOOOOooooooo.....*
02:58 garu having i18n on core is awesome
02:58 sri i'm not so sure about that, it could also discourage better i18n plugins
03:00 sri originally it was just meant as an example :S
03:00 garu I'm thinking on a new one, based on what 'act' does. I'd provide a helper with language tags, this would keep strings in the view rather than in the model (or whatever MyApp::I18N would stand for). So you'd have something like % t( en => 'Welcome', pt => 'Bem-vindo' )
03:00 sri maybe all plugins need a disclaimer like "PLEASE FORK ME, I'M AN EXAMPLE PLUGIN!"
03:01 garu looks good? or crap?
03:02 sri of course i like keeping translations in the view, but it will quickly get messy
03:02 * garu likes having the text in context for better translation and maintenance
03:02 sri just imagine 10 translations next to each other
03:03 garu sure, I guess... but in most cases I've seen there are only a handful
03:03 garu most I've seen is 3
03:17 sri here in europe we tend to have more
03:19 garu I guess you do :)
03:20 garu still, not sure what the ideal solution would be :/
03:42 eejaydubya joined #mojo
04:39 GitHub123 joined #mojo
04:39 GitHub123 [mojo] kraih pushed 1 new commit to master: http://git.io/Ge-2ug
04:39 GitHub123 [mojo/master] added support for 308 redirects to Mojo::UserAgent - Sebastian Riedel
04:39 GitHub123 left #mojo
05:58 d4rkie joined #mojo
06:48 Vandal joined #mojo
07:09 Foxcool joined #mojo
07:41 osprey_ joined #mojo
09:21 fibo joined #mojo
09:57 Htbaa joined #mojo
10:43 kanishka joined #mojo
11:00 batman joined #mojo
11:32 batman joined #mojo
11:51 taryk joined #mojo
12:26 taryk joined #mojo
12:26 taryk left #mojo
13:23 mire joined #mojo
13:47 Leandr joined #mojo
14:14 dbr joined #mojo
15:31 xaka1 joined #mojo
15:48 Psyche^ joined #mojo
15:58 tempire_ joined #mojo
16:17 * sri looks around
16:18 * sri yawns
16:29 * Debolaz hides
16:44 Foxcool joined #mojo
17:51 batman joined #mojo
18:38 arpadszasz joined #mojo
18:44 stephan48 joined #mojo
18:51 andrefs joined #mojo
19:47 rem_lex|pivo joined #mojo
20:24 xaka joined #mojo
20:26 marcus hurrgh
21:03 perlite_ joined #mojo
21:13 batman joined #mojo
21:48 lukep joined #mojo
22:35 batman joined #mojo
23:31 JerJer joined #mojo
23:32 JerJer what could be wrong here?   http://pastebin.com/9wPjX6UM
23:33 JerJer centos 6.2 stock
23:45 JerJer figured it out:   # perl -MMojolicious
23:45 JerJer Can't locate Time/HiRes.pm
23:45 JerJer not good :(
23:47 JerJer shouldn't cpanm dectect this dep ?
23:47 JerJer -c
23:47 sri that's actually pretty bad
23:47 sri it's a core module, your perl is busted
23:47 JerJer its a stock centos 6.2, brand new install
23:48 JerJer with "Development Tools"  installed - which installs perl
23:48 sri vendors like to break perl
23:48 JerJer wonderful
23:49 JerJer i prefer  debian / ubuntu  - but this isn't my server
23:49 sri maybe they split up core modules into multiple packages or so
23:50 sri rhel has a reputation for doing very bad things with its perl...
23:50 JerJer yeah - there is a specific package for Time::HighRes  - just didn't get installed with the rest of perl :(
23:52 sri well, the module has only been in core for 10 years ;p
23:55 sri so there is a reason to list core dependencies in Makefile.PL after all :D

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