Camelia, the Perl 6 bug

IRC log for #mojo, 2010-07-01

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

All times shown according to UTC.

Time Nick Message
00:03 xantus did MOJO_MAX_MESSAGE_SIZE related code change recently?
00:06 sri nope
00:06 vel joined #mojo
00:06 sri or wait
00:07 sri maybe a few weeks ago, is that recently? :)
00:07 sri but no big changes, just bug fixes
00:09 xantus ah, my gzip hack broke
00:09 sri oh noes
00:10 xantus I gzip the content, pass it to render_text
00:10 xantus after setting content-encoding
00:11 sri how could that be broken now?
00:12 sri oh wait
00:12 sri encoding!
00:12 xantus oh crap, utf?
00:12 sri you actually want render_data
00:12 xantus hot
00:13 xantus \o/
00:13 sri it might have worked because we exploited the utf8 flag before
00:13 xantus I'll do a proper plugin when I release this stuff
00:14 sri trying to move away from utf8 hacks
00:14 sri \o/
00:34 sri Zzz
00:35 xantus gnight
00:39 awnstudio joined #mojo
01:14 vel joined #mojo
01:29 ashleydev nice: http://search.cpan.org/~dconway/Regexp​-Grammars-1.005/lib/Regexp/Grammars.pm
01:29 garfield [ Regexp::Grammars - search.cpan.org ]
01:29 garfield http://xrl.us/bhqf28
02:35 su-bzero joined #mojo
02:35 janus joined #mojo
02:52 yakudzo joined #mojo
04:03 tholen42 joined #mojo
04:59 Foxcool_ joined #mojo
05:47 Foxcool joined #mojo
05:47 Foxcool joined #mojo
05:50 Su-Shee joined #mojo
06:17 yko joined #mojo
06:28 Alias_ joined #mojo
06:50 ysyrota joined #mojo
08:52 * sri yawns
09:08 marcus moin
09:15 sri moin
09:24 yko joined #mojo
09:25 yko joined #mojo
10:16 spleenjack joined #mojo
10:57 sri so warm again :S
10:59 Su-Shee sri: yes. I'll never rent a sunny appartment.
11:00 Su-Shee (again)
11:08 marcus moving underground
12:02 sri good idea
12:06 Alias__ joined #mojo
12:12 namedrisk joined #mojo
12:14 namedrisk Hi, i currently got to change something with this code that is using mojo and i am sort of clueless at the momment i was looking at the module but havent found yet the right way to acomplish this, i need to print the selected="selected" but instead it is changing the quotes to "
12:14 namedrisk relevant piece of code http://pastebin.com/FAbfk3qh
12:14 garfield [ <select name="alignment" class - Anonymous - FAbfk3qh - Pastebin.com ]
12:16 sri namedrisk: thats very well documented
12:16 sri for example in the rendering guide
12:17 sri %= will quote expression values
12:17 sri add another = to just pass the raw value through
12:17 sri <%== $selected
12:17 namedrisk sri thank you :)
12:17 sri and read the rendering guide! :)
12:18 sri http://github.com/kraih/mojo/blob/maste​r/lib/Mojolicious/Guides/Rendering.pod
12:18 garfield [ lib/Mojolicious/Guides/Rendering.pod at master from kraih's mojo - GitHub ]
12:19 garfield http://xrl.us/bhp926
12:20 namedrisk i am :) i just started reading thru the docs and .pm's as i dont know anything about mojo and got this code around... to look
12:20 namedrisk once again thanks :)
12:45 vel joined #mojo
12:47 diegok joined #mojo
13:18 marcus hmm
13:18 marcus memowe: what's going on?
13:18 marcus did you leave us?
13:19 * sri cracks the whip
13:20 marcus last tweet 6 days ago
13:20 sri :/
13:20 Su-Shee at least vti tweets again.
13:47 vel1 joined #mojo
13:48 dotan joined #mojo
14:45 esskar joined #mojo
14:49 DaTa is there a better way to give a route a name in Mojolicious::Lite? http://pb.rbfh.de/1leewcuZSAu82
14:49 garfield [ Pastedance ]
14:49 sri get '/foo' => sub {...} => 'name';
14:50 sri it's documented
14:50 sri very early in the Mojolicious::Lite tutorial
14:51 sri name just has to be the last argument
14:53 DaTa spotted, thanks :)
15:07 spleenjack joined #mojo
15:14 su-bzero_ joined #mojo
15:36 Su-Shee joined #mojo
16:18 dotan left #mojo
16:58 arthas joined #mojo
17:04 sri hmm, my inbox gets more and more amusing every day
17:05 sri people without any credibility popping up out of nowhere telling me how to turn mojolicious into a commercial success, wtf?
17:07 sri "we want to offer mojolicious hosting, we won't pay you a cent, but you have to let us use your name because it will be good for your project!"
17:07 sri where are these idiots coming from?
17:08 sri i really need to blog again
17:11 Su-Shee sommerloch ;)
17:15 sri ;p
17:23 sri i reply with futurama quotes :D
17:54 ask joined #mojo
17:56 ask joined #mojo
18:30 spleenjack left #mojo
19:01 vel joined #mojo
19:06 esskar_ joined #mojo
19:35 vel joined #mojo
19:36 yko joined #mojo
19:40 ask joined #mojo
20:04 MmmFPRed joined #mojo
20:06 MmmFPRed Hey all, I'm working on rebuilding a scraper script, is mojolivious a good library to do so? Any examples out there? I can't find much
20:13 sri MmmFPRed: theoretically yes, i'll write a guide for that soon
20:17 MmmFPRed sri, why throretically? are there and sub libraries i might want to look at for the time being?
20:17 yko Mojolicious is a good library for scraping.
20:18 sri well, i guess practically too :)
20:18 sri we just don't have that much experience in that area yet
20:18 yko well, i have little :)
20:19 sri :)
20:19 esskar__ joined #mojo
20:19 yko About week ago i wrote little scraper oin Mojo::Client && Mojo::DOM
20:20 MmmFPRed yko, neat. Care to share?
20:21 yko https://gist.github.com/c3dc95a2e6471171ba1b
20:22 yko Kiev is a model package. i wont share it. Everything other should be clear, i think
20:25 ask joined #mojo
20:25 yko Next time ill use miyagawa's Web::Scraper i think
20:25 yko want to try that thing.
20:25 spleenjack joined #mojo
20:26 sri yko: no need to call ->dom over and over
20:26 * yko is lazy :)
20:26 sri that will parse the xml document multiple times
20:26 yko yes :)
20:27 sri MmmFPRed: you basically just call ->dom on the response to create a Mojo::DOM object, which allows you to use CSS3 selectors and stuff
20:27 yko you are right, i didn't look at code, and didnt read manual :D
20:28 MmmFPRed sri, cool, i just wanted to get the gist of what i'd be doing
20:28 sri MmmFPRed: http://github.com/kraih/mojo/blob​/master/lib/Mojo/Client.pm#L1236 # here's a small example
20:28 garfield [ lib/Mojo/Client.pm at master from kraih's mojo - GitHub ]
20:28 garfield http://xrl.us/bhqiwr
20:28 sri documentation is very slim atm, but it is getting a whole guide later this week
20:29 sri (early next week)
20:30 yko O! If we talking about it... writing this scraper i get some problem with Client, about what i want ask
20:30 yko for example $client->async->get($url, $cb)->process;
20:31 yko in callback i want to to queue new url, but then it wouldnt be processed. So, i should call ->process one more time. Why so?
20:33 sri yko: multiple requests, ->process starts all queued requests at once
20:33 MmmFPRed sri, neat, young projects are always fun to use.  How's your community?
20:33 yko so if i add new request, i shoud call  ->process anyway,  right?
20:33 sri MmmFPRed: great :)
20:34 sri yko: you always call process, unless it's a sync micro request (no callback)
20:35 vel joined #mojo
20:35 yko sri: thanks. then i did everything right. at least, about get and process :)
20:52 esskar__ joined #mojo
21:11 sri damn, those social network apps for the iphone are so much better than the desktop alternatives :S
21:15 sri apple seriously needs to build an os x app store and update the old crufty apis
21:15 stephen joined #mojo
21:20 stephen joined #mojo
21:32 vel joined #mojo
21:55 su-bzero joined #mojo
22:20 ask_ joined #mojo
22:23 ltriant joined #mojo
22:30 dotan joined #mojo
22:43 dotan left #mojo
23:24 xantus joined #mojo
23:24 xantus the dom and json methods on res are awesome
23:25 xantus would be nice if we could specify a json parser
23:26 xantus like if JSON::XS is available

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