Camelia, the Perl 6 bug

IRC log for #mojo, 2012-09-01

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

All times shown according to UTC.

Time Nick Message
00:00 sri :)
00:00 sri bpm: looks good
00:00 bpm siri: Thank you.
00:00 bpm sri, even.
00:00 sri heh :D
00:02 bpm It "looks" like this: get '/' => (params => ["test"]) => sub {
00:06 sri bpm: no tests is a huge red flag though
00:06 bpm sri: I'm still learning.
00:06 sri learn faster!
00:06 * sri cracks the whip
00:06 bpm sri: :)
00:07 tempire bpm: don't let that get away from you
00:07 tempire here's plugin tests from my first module: https://github.com/tempire/mojolicious​-plugin-basicauth/blob/master/t/auth.t
00:07 bpm I ported a CGI.pm app at work today and it took like 3 hours.  Was really cool to see the difference in a CGI and Mojolicious::Lite app.  Was also fun.
00:07 tempire it was my first, so it should be easy enough to parse
00:07 tempire and copy
00:08 bpm tempire: Nice.
00:08 sri tempire: haha, a socket test at the start!
00:10 sri i don't even remember why we did that back then ;p
00:10 tempire time for ice cream! http://sodeliciousdairyfree.com/img/produ​cts/coco-ice-minis-bar-coconut-almond.png
00:12 * sri drools
00:20 vervain joined #mojo
00:27 BlueT_ joined #mojo
00:51 asarch joined #mojo
01:19 bpm Is there a TODO list?
01:49 sri if you mean for mojolicious, then no, there are only open issues on github
02:23 tempire bpm: if you want to get involved, start messing around with event loops, and get in on the frequent conversations that happen in here.
02:23 bpm tempire: Will do.
02:23 tempire and then, if you start poking around the mojolicious code so you have informed input on the event loop, sri will love you.
02:23 tempire and you will be prettiest girl at the ball
02:25 * sri can confirm this
02:32 noganex_ joined #mojo
03:16 xaka joined #mojo
03:20 gryphon joined #mojo
05:42 dwierenga joined #mojo
06:19 ryozi joined #mojo
06:30 Vandal joined #mojo
07:13 tolid_air joined #mojo
07:32 ryozi_ joined #mojo
07:55 zhutingting joined #mojo
08:01 davido joined #mojo
08:36 zhutingting left #mojo
09:03 arthas joined #mojo
09:19 tempire selenium webdriver is quite impressive
09:29 marcus is it the prettiest girl at the ball?
09:35 memowe \o
09:53 ryozi joined #mojo
09:57 ryozi_ joined #mojo
10:12 azawawi joined #mojo
10:19 zhutingting joined #mojo
10:27 zpmorgan can any chrome user test something?
10:27 zpmorgan http://blargles.zpmorgan.com/
10:28 zpmorgan key: 0v0uie
10:29 zpmorgan I can't figure out what's going on. chrome cancels the pdf download and keeps sending GET requests on the same page.
10:30 azawawi yup it is stuck
10:30 ryozi joined #mojo
10:30 vervain Looks like you are trying to send a 'document.pdf' with a type of text/html
10:30 vervain I don't know if that's the problem but it doesn't look right.
10:31 vervain zpmorgan: Do you know how to operate the Chrome debugger?
10:31 bpm Another datapoint - it's stuck.
10:32 zpmorgan vervain, sort of. Its network tab says the content type is 'application/pdf'
10:32 zpmorgan I don't see where the redirects are coming from.
10:32 vervain http://pastebin.com/nmXQb8FR
10:32 vervain There aren't any redirects
10:33 vervain Not to mention: Content-Length: 3 doesn't seem right.
10:33 zpmorgan Chrome sends one POST and then a bunch of GETs. the POST returns as application/pdf.
10:34 zpmorgan the 3 bytes = 'foo' :)
10:34 vervain Ah yes... I didn't grab the headers from the first request... http://pastebin.com/p9TW1Cpz
10:40 zpmorgan http://i.imgur.com/nzXnI.png
10:40 Leandr joined #mojo
10:42 d4rkie joined #mojo
10:42 zpmorgan vervain, azawawi, bpm, thanks for the confirmation :)
10:53 Leandr joined #mojo
10:57 azawawi cpanm http://cpan.metacpan.org/authors/id/A/AZ/AZ​AWAWI/Mojolicious-Plugin-Pedro-0.06.tar.gz  # Perl editor + run Perl in browser using Perlito
10:59 zpmorgan azawawi, awesome!
11:03 zpmorgan vervain, I'm going with GET instead of POST. It works, in case you were wondering.
11:07 ryozi_ joined #mojo
11:09 ryozi__ joined #mojo
11:09 mire_ joined #mojo
11:13 vervain That seems fair... I don't see how the request method would get in the way.
11:16 zpmorgan or simulate to a ddos attack :/
12:05 Lucas1 joined #mojo
12:08 azawawi joined #mojo
12:28 azawawi hi. what's the policy on the jQuery version included with Mojolicious?
12:28 azawawi it should be the latest or one behind, right?
12:29 azawawi https://metacpan.org/source/SRI/Mojoliciou​s-3.36/lib/Mojolicious/public/js/jquery.js  # 1.8.0
12:29 azawawi http://code.jquery.com/jquery-1.8.1.min.js  # 1.8.1
12:33 vervain Not sure about 'policy' but git tells me that it was upgrade to 1.8 on Aug 10th, if that helps.
12:35 vervain Which is weird... because my brain would have insisted that I saw the irc notice within the last two weeks. ;-)
12:35 azawawi https://metacpan.org/source/SR​I/Mojolicious-3.36/Changes#L55   # true
12:37 azawawi lol my bad... jquery 1.8.1 was released on 30/8/2012
12:37 HtbaaPi joined #mojo
12:49 smpb joined #mojo
12:58 azawawi_ joined #mojo
13:36 batman can i upgrade a Mojo::IOLoop::Client to tls later on?
13:37 batman i'm trying to create a basic xmpp client
13:38 Leandr joined #mojo
14:05 zhutingting joined #mojo
14:06 gryphon joined #mojo
14:25 Britzel_ joined #mojo
14:38 gryphon joined #mojo
14:58 gryphon joined #mojo
15:11 good_news_everyone joined #mojo
15:11 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/fMqttg
15:11 good_news_everyone [mojo/master] mention what to avoid in applications when using Hypnotoad - Sebastian Riedel
15:11 good_news_everyone left #mojo
15:14 sri batman: Mojo::UserAgent upgrades sockets to TLS for proxy support, but it's not really documented since i want to avoid having people depend on it yet
15:15 sri azawawi: there is no real policy, we include jquery because we use it for core features
15:16 sri you should just use your own js libraries for real apps
15:16 sri if something is not documented it's not a feature
15:29 good_news_everyone joined #mojo
15:29 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/sImoFg
15:29 good_news_everyone [mojo/master] be more specific about what to avoid in applications - Sebastian Riedel
15:29 good_news_everyone left #mojo
15:30 sri forking is not necessarily bad, just the signal handling for it
15:31 BlueT_ joined #mojo
15:39 gryphon joined #mojo
15:41 zpmorgan sri, a couple days ago I updated MojoX::Run after asking about forking :) It isn't totally clear how signal handlers and open sockets in the child might interfere with the parent. MojoX::Run seems to work though.
15:41 zpmorgan https://github.com/zpmorgan/mojox-run
15:41 sri opening sockets will not
15:41 sri neither will forking
15:41 sri just signals
15:42 zpmorgan okay. I was under the impression that a child process shares the socket somehow.
15:44 sri the real problem is that signal handlers in perl mostly suck
15:45 sri you have no clue which module might depend on and change them
15:49 sri well... it's not like other programming languages handle it better... signals suck in general :p
16:28 crab signalfd is great
17:21 sri it does look good, but seems to be linux only :/
17:26 Vandal is it bad?
17:27 * sri hates that all the good apis are always platform specific... why can't every os have kqueue?!
17:28 Vandal because it wold be perfect world
17:28 Vandal *would
18:05 Mad_Dud hi guys, could someone give me a clue how to implement authentication for file download over http with mojolicious?
18:05 Mad_Dud i assume that storing files in /public is not a good idea.
18:10 osprey_ joined #mojo
18:12 osprey_ hi
18:14 osprey_ I have problem with useragent
18:15 osprey_ when I use proxy I got content state not finished every time
18:19 osprey_ test here  http://pastebin.com/3RvTd83u
18:19 memowe_ joined #mojo
18:39 sri osprey_: and the problem is?
18:42 osprey_ > tx->res->content->{state} = 'body'
18:42 osprey_ sri: not finished
18:43 sri osprey_: that's private data
18:43 osprey_ em?
18:43 osprey_ how can I check?
18:43 sri do not ever poke into an object
18:43 sri if it doesn't have an accessor it is off limits
18:44 sri or more specific, if it's not documented do not use it
18:52 osprey_ sri: I still need help to find does finished
18:52 osprey_ $tx->is_finished is same as tx->res->content->{state}
18:52 osprey_ ie false
18:52 sri i'm sorry but i don't understand you
18:53 osprey_ ok, how to find does object fetched or only part of ot?
18:58 osprey_ I need check for $tx->res->code for 200 (or 206 if part) and $tx->is_finished not enough.
19:01 mandreacchio joined #mojo
19:03 mandreacchio test
19:03 sri fail
19:14 osprey_ sri: don't want to disturb you but again, but really, how to know that file is full downloaded? is_finished return '' for some sites with proxy
19:16 sri osprey_: i still don't understand, maybe someone else here can help you
19:21 xaka joined #mojo
19:33 osprey_ heh
19:34 osprey_ again test http://pastebin.com/Dw8qddnT you can see that body is fetched
19:45 tempire Mad_Dud: take a look at Mojolicious::Static
19:46 sri osprey_: that seems to be a small bug
19:46 osprey_ sri: but some site ok
19:46 good_news_everyone joined #mojo
19:46 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/LRKf5Q
19:46 good_news_everyone [mojo/master] fixed small state bug in Mojo::Transaction - Sebastian Riedel
19:46 good_news_everyone left #mojo
19:50 good_news_everyone joined #mojo
19:50 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/w0wynA
19:50 good_news_everyone [mojo/master] fixed online tests - Sebastian Riedel
19:50 good_news_everyone left #mojo
19:52 good_news_everyone joined #mojo
19:52 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/i24mFA
19:52 good_news_everyone [mojo/master] another state test - Sebastian Riedel
19:52 good_news_everyone left #mojo
19:52 tolid_air joined #mojo
19:55 sri osprey_: is_finished not always returning true was a bug
19:58 osprey_ is it fixed? I'm trying mojo from git but it still not finished :)
19:58 good_news_everyone joined #mojo
19:58 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/vOgfaA
19:58 good_news_everyone [mojo/master] test tweaks - Sebastian Riedel
19:58 good_news_everyone left #mojo
19:58 xaka joined #mojo
20:00 osprey_ left #mojo
20:00 sri osprey_: then you're doing something wrong, your last paste tells me Finished Finished
20:01 osprey_ joined #mojo
20:03 sri doctor who is back! \o/
20:03 osprey_ sri: ah no, it ok now, in test I was try res->content->is_finished not $tx->is_finished
20:03 osprey_ thanks!
20:10 human39 joined #mojo
20:20 Netfeed sri: yeah, finally. dr who + breakfast tomorrow :)
20:28 d4rkie joined #mojo
20:38 osprey_ left #mojo
21:03 good_news_everyone joined #mojo
21:03 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/PY4ChA
21:03 good_news_everyone [mojo/master] better transaction examples - Sebastian Riedel
21:03 good_news_everyone left #mojo
21:07 batman joined #mojo
21:09 themage joined #mojo
21:10 mandreacchio joined #mojo
21:32 perlite joined #mojo
21:35 human39 joined #mojo
21:46 rem_lex|pivo joined #mojo
22:29 tempire create a screenshot of the browser with mojo+selenium web driver? ok!
22:29 tempire ok +Mojo::Asset::File->new->add_chunk(b64_decode $d->screenshot)->move_to("/t​mp/$d->{browser_name}.png");
22:42 mandreacchio joined #mojo
23:02 jzawodn joined #mojo
23:13 tempire joined #mojo
23:34 heytrav joined #mojo
23:41 jontaylor joined #mojo
23:45 perlite joined #mojo
23:47 perlite joined #mojo
23:50 themage joined #mojo
23:52 davido joined #mojo

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