Camelia, the Perl 6 bug

IRC log for #mojo, 2011-04-14

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

All times shown according to UTC.

Time Nick Message
00:06 jdixon joined #mojo
00:08 jdixon sri: is Test::Mojo::put_ok known to work with params the way it does for post_form_ok? It seems to be extracting them as headers instead of content.
00:42 tempire jdixon, it's supposed to be exactly the same.
00:43 tempire ok, wait.  nevermind, I misread your question.
00:44 tempire post_form, post_form_ok is the only one that accepts value pairs to be passed into the body.
00:45 tempire You can pass data into the body, but only as a string.
00:45 tempire (with put & put_ok)
00:45 jdixon tempire: would it be reasonable to expect put_form, put_form_ok at some point?
00:45 jdixon or does PUT not technically support forms?
00:45 tempire I doubt it, since forms are a browser thing
00:46 tempire and no browsers support put
00:46 tempire you can do the same thing just be putting the name/value pairs into the body.
00:46 tempire you can use Mojo::Parameters to generate the string from value pairs, even
00:46 jdixon hmm
00:47 jdixon ok, I'll give it a shot at some point. ;)
00:47 jdixon for now POST will suffice.
01:30 stephen1 left #mojo
01:51 jdixon left #mojo
02:12 dku joined #mojo
02:52 daviddelikat joined #mojo
02:56 daviddelikat1 left #mojo
02:56 arpadszasz joined #mojo
03:35 Alias joined #mojo
04:18 kmx left #mojo
04:22 kaare joined #mojo
04:42 kmx joined #mojo
04:52 Foxcool joined #mojo
05:19 arpadszasz left #mojo
05:22 ysyrota joined #mojo
05:25 Foxcool left #mojo
05:28 Foxcool joined #mojo
05:30 GeJ left #mojo
05:32 Foxcool left #mojo
05:38 arpadszasz joined #mojo
05:40 Foxcool joined #mojo
05:47 vel left #mojo
05:55 Foxcool left #mojo
06:02 shurex1 joined #mojo
06:04 shurex1 left #mojo
06:07 shurex1 joined #mojo
06:07 shurex left #mojo
06:07 robins is now known as robinsmidsrod
06:07 Foxcool joined #mojo
06:08 Foxcool left #mojo
06:08 AmeliePoulain joined #mojo
06:10 Foxcool joined #mojo
06:13 koban joined #mojo
06:36 Christian joined #mojo
06:36 Christian morning
06:38 crab good morning, christian.
06:42 Foxcool left #mojo
06:47 Foxcool joined #mojo
06:57 shurex1 left #mojo
07:29 cosmincx joined #mojo
07:35 tabbi joined #mojo
07:35 tabbi left #mojo
07:36 yegor left #mojo
07:54 cosmincx left #mojo
07:54 cosmincx joined #mojo
07:58 mattastrophe left #mojo
08:10 mattastrophe joined #mojo
08:15 metaperl joined #mojo
08:36 tabbi joined #mojo
08:36 tabbi left #mojo
08:38 sri \o
08:38 sri o/
08:38 sri \o/
08:39 crab good morning, sri.
08:40 * moritz wonders if sri is becoming a Dancer
08:42 sri just stretching
08:43 shurex joined #mojo
08:43 shurex left #mojo
08:49 crab i had to get a new computer. when i got home, the old one was stone dead.
08:50 sri don't forget to feed your computers?
08:50 crab but the new one can complete mojo's test suite in 11s.
08:50 sri neat
08:51 sri HARNESS_OPTIONS=j3?
08:51 crab j5. i just tried j8, and it goes just under 9s.
08:51 sri my macbook needs 16s
08:52 sri only two cores though
08:52 crab this has two cores, but it shows up in linux as four CPUs. two cores and two threads or whatever.
08:52 crab (it's an i3-540 @ 3.06GHz)
08:53 sri sounds like quad core
08:54 sri oh... two cores, four threads
08:54 sri what the hell are threads?
08:54 purl threads are terrible in perl or very tricky to get right in a portable way.
08:55 moritz sri: probably dual core with hyperthreading
08:56 sri https://github.com/rails/rails/commit/9​f09aeb8273177fc2d09ebdafcc76ee8eb56fe33 # lol, it keeps growing
08:59 moritz does 'gem' not resolve depenencies recursively?
09:00 moritz if json is a dependency of something installed before, why install it separately?
09:02 marc_ is now known as marc
09:18 snearch joined #mojo
09:26 spleenjack joined #mojo
09:44 tabbi joined #mojo
10:09 snearch left #mojo
10:39 fmerges joined #mojo
10:55 tabbi left #mojo
10:57 yegor joined #mojo
11:03 GitHub1 joined #mojo
11:03 GitHub1 mojo: master Sebastian Riedel * 96c6f69 (2 files in 2 dirs): cleanup - http://bit.ly/hYHd9L
11:03 GitHub1 left #mojo
11:32 Foxcool left #mojo
11:40 crab is res->code is set in an after_static_dispatch hook, so should res->headers->header->content_type, right?
11:41 crab s/is/if/
11:43 Foxcool joined #mojo
11:51 cosmincx left #mojo
11:51 crab hm. obviously not. how odd.
11:53 breaker313 joined #mojo
11:55 crab ah, hm. 304 responses.
11:59 tardisx left #mojo
12:06 breaker313 left #mojo
12:07 cosmincx joined #mojo
12:09 shurex joined #mojo
12:22 * sri doesn't understand the question
12:27 shurex1 joined #mojo
12:29 shurex left #mojo
12:30 cosmincx left #mojo
12:32 cosmincx joined #mojo
12:42 shurex joined #mojo
12:44 shurex left #mojo
12:44 shurex1 left #mojo
12:44 shurex joined #mojo
12:52 shurex left #mojo
12:53 Akron joined #mojo
12:54 Akron left #mojo
12:55 shurex joined #mojo
12:59 crab i have an after_static_dispatch hook. it is called. i take the tx and check res->code. it is set. should the content type be also set at that time?
12:59 crab that was the question.
12:59 crab and "apparently not always" was the answer.
13:00 AmeliePoulain left #mojo
13:00 AmeliePoulain joined #mojo
13:02 sri most of the time it should, but since it is not required there are no guarantees
13:08 daviddelikat left #mojo
13:18 crab hey rhaen, you around?
13:25 elb0w left #mojo
13:27 tempire left #mojo
13:28 tempire joined #mojo
13:32 tabbi joined #mojo
13:33 arpadszasz left #mojo
13:42 baton8 joined #mojo
13:51 daviddelikat joined #mojo
13:53 daviddelikat1 joined #mojo
13:56 marty joined #mojo
13:57 daviddelikat left #mojo
14:04 shurex left #mojo
14:04 shurex joined #mojo
14:06 mattastrophe left #mojo
14:08 AmeliePoulain left #mojo
14:10 Foxcool left #mojo
14:19 elb0w joined #mojo
14:19 tabbi left #mojo
14:29 koban left #mojo
14:41 Akron joined #mojo
14:48 Christian nice evening to you all
14:49 Christian left #mojo
14:56 Foxcool joined #mojo
15:16 mattastrophe joined #mojo
15:27 esskar left #mojo
15:29 mateu good mornin' to you all ;)
15:49 jwang left #mojo
16:13 yegor left #mojo
16:15 yegor joined #mojo
16:18 sri oh, the new ios ssh client from panic is really good
16:22 crab what can an ssh client do to be good?
16:22 sri on ios devices it needs a good keyboard layout and clever autocomplete
16:24 sri issh is not bad, but they never payed much attention to details like that
16:28 crab hmm. is there any way i can prevent cookies from being sent with static resources?
16:36 Alias__ joined #mojo
16:38 mattastrophe left #mojo
16:40 Alias left #mojo
16:46 jpablobr joined #mojo
16:55 yegor left #mojo
16:56 sri crab: why would you want that?
16:57 yegor joined #mojo
16:59 GitHub78 joined #mojo
16:59 GitHub78 mojo: master Sebastian Riedel * 769b502 (1 files in 1 dirs): cleanup - http://bit.ly/fj91AW
16:59 GitHub78 left #mojo
16:59 sri crab: anyway, the last commit will aloow you to remove them in a hook
17:01 sri but you know the drill, if you want to make sure it stays that way, send me a test patch ;)
17:03 elb0w man nothing beats droid/droid2 + irssi/connectbot
17:13 * sri is quite happy with the iphone4 + Prompt combo now
17:26 Foxcool left #mojo
17:27 Alias joined #mojo
17:27 Alias__ left #mojo
17:29 fmerges left #mojo
17:39 * mateu gives irssi-connectbot a try and it works, nice.
17:39 zakame joined #mojo
17:43 stephanj elb0w: conntectbot?
17:43 stephanj connect*
17:43 stephanj ah
17:44 Foxcool joined #mojo
17:45 elb0w yeah
17:45 elb0w wish I never broke my droid
17:45 elb0w so I didnt get this dumb droid x
17:45 elb0w I was going to get a droid2 but now with 4g coming out I sort of have to wait for a keyboard 4g phone
17:48 Alias__ joined #mojo
17:52 Alias left #mojo
17:54 Alias__ left #mojo
17:54 Alias__ joined #mojo
17:55 stephen joined #mojo
17:57 mateus joined #mojo
17:58 spleenjack left #mojo
18:03 mattastrophe joined #mojo
18:09 mateo joined #mojo
18:14 mateus left #mojo
18:21 daviddelikat1 left #mojo
18:32 Akron left #mojo
18:33 moritz oh wow, I'm getting some really strange errors from my templates
18:33 moritz Can't use "my $a" in sort comparison at template line 18, near "    % }".
18:34 moritz and I'm not using a 'my $a' in any template
18:35 yko left #mojo
18:35 moritz and the code view of the template doesn't show any 'my $a' either
18:56 sri could also be a string eval used from the template or so
18:57 sri there are cases where it can't detect that the error actually happened inside the template
18:57 sri feel free to investigate and fix :)
18:58 sri (in case it is fixable)
19:00 tabbi joined #mojo
19:06 tabbi left #mojo
19:07 yko joined #mojo
19:07 vel joined #mojo
19:11 sri the whole rewriting process is actually very naive
19:11 sri but it was requested so often that i accepted a quick n dirty solution
19:12 sri not like perl gives us much of a choice though when it comes to exception handling :/
19:38 daviddelikat joined #mojo
19:41 Foxcool left #mojo
20:01 yko which is the best way to make rel urls absolute during webscrapings?
20:01 yko Mojo::URL->new($url)->base($tx->req->url)->to_abs ?
20:02 yko or there's something shorter way which i missed?
20:11 mateo left #mojo
20:12 mateus joined #mojo
20:13 sri yko: how do you think that could be any shorter?
20:14 yko well, i often miss something
20:14 elb0w How long have you guys been using perl?
20:16 mateus left #mojo
20:18 sri 10 years
20:18 purl well, 10 years is a long time
20:19 * sri pats purl
20:19 * purl pats sri back, harder
20:19 sri yko: you didn't ;p
20:19 * yko pats sri and hides behind purl
20:19 * sri bites yko
20:20 yko how can you bite alligator? how dare you?
20:20 sri that does indeed seem a bit weird now
20:21 * yko calls greenpeace and cries
20:21 * sri hides
20:21 * yko closes alligator pit behind sri
20:21 yko bwahaha, gotcha!
20:22 * sri is trapped
20:25 ysyrota left #mojo
20:27 shurex left #mojo
20:32 shurex joined #mojo
20:36 elb0w That doesnt make me feel so bad then
20:36 elb0w ive been using perl seriously for almost 2years
20:36 elb0w and im not too bad
20:36 elb0w I can see how you can accumulate a wealth of knowledge in 10 years
20:37 elb0w My problem right now is im unsure if I want to stick with perl, or go to python / clojure
20:39 sri learn as many languages as you can
20:40 elb0w Yeah I do that, but its always good to have a primary
20:40 elb0w perl is slowly becoming that to me
20:40 elb0w I often wonder if maybe C would be a better choice
20:40 sri i've spent a full year ruby hacking before starting mojolicious
20:41 elb0w how is ruby?
20:41 sri there's good and bad stuff, just like in perl
20:42 sri for example try finding good documentation for different ruby gems
20:42 elb0w I dunno, im just afraid that with all the bigger companies are adopting python more than perl nowadays its going to fade out slowly
20:43 elb0w Yeah I heard gems has more modules but quality / docs are terrible vs cpan
20:43 sri that's correct
20:44 sri the thing about python is that you have absolutely no freedom for creativity
20:45 sri code always looks the same, you're just another drone
20:45 elb0w whats the obsession with it then?
20:45 sri google
20:45 sri they are pushing it hard
20:47 sri and C is something you need as secondary language anyway
20:49 shurex left #mojo
20:50 shurex joined #mojo
20:51 elb0w yeah
20:51 elb0w I really have to make a push to learn C
20:51 elb0w maybe thats what ill do on my flight
20:55 shurex left #mojo
20:56 shurex joined #mojo
20:58 shurex left #mojo
21:01 shurex joined #mojo
21:21 armed_elf joined #mojo
21:23 kaare left #mojo
21:43 vel left #mojo
21:52 armed_elf duuudes
21:52 armed_elf hows mojo?
21:54 * sri is too afraid to answer since the elf is armed
21:59 daviddelikat left #mojo
22:03 armed_elf slashes sris panties off so they drop
22:17 pranq left #mojo
22:18 pranq joined #mojo
22:20 moritz on latest HEAD I get
22:20 moritz t/mojolicious/websocket_tls_proxy_lite_app.t .. 1/19 Fri Apr 15 00:18:10 2011 error Mojo::UserAgent:664 [18732]: Event "read" failed for connection "2c0d1e8": Can't locate object method "on_message" via package "Mojo::Transaction::HTTP" at t/mojolicious/websocket_tls_proxy_lite_app.t line 248.
22:20 moritz and then it hangs
22:21 sri moritz: can't replicate
22:24 moritz well, I can :-)
22:25 sri platform?
22:25 moritz debian linux on amd64
22:25 moritz perl 5.12.1
22:26 moritz the error is after test 13
22:26 sri can't replicate on os x or ubuntu with any perl version
22:27 sri maybe your IO::Socket::SSL is toast
22:28 moritz why would that lead to a missing method on Mojo::Transaction::HTTP?
22:28 sri just my first guess
22:31 sri ssl is pretty much the only difference between the tls and non-tls test
22:38 sri the error message hints at a failed websocket upgrade, which could hint at a corrupted connection, which could hint at IO::Socket::SSL being toast
22:38 armed_elf tls != ssl
22:39 sri from our perspective it is the same
22:44 sri hmm, actually i'm on IO::Socket::SSL 1.39, maybe we need to bump the requirement again?
22:44 moritz I'm on 1.39 too
22:45 sri well, error makes no sense to me, afraid there is no chance at all for me to investigate
22:59 daviddelikat joined #mojo
23:13 sherr left #mojo
23:19 sherr joined #mojo
23:22 tardisx joined #mojo
23:42 shurex1 joined #mojo
23:46 shurex left #mojo

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