Camelia, the Perl 6 bug

IRC log for #mojo, 2012-12-14

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

All times shown according to UTC.

Time Nick Message
00:07 sri what i need is more portable monotonic clock support in Time::HiRes ;)
00:10 sri https://rt.cpan.org/Public​/Bug/Display.html?id=78656 # still not applied :(
00:15 Molaf_ joined #mojo
00:18 ObseLeTe joined #mojo
00:18 chansen Why do you need CLOCK_MONOTONIC?
00:18 sri for the fallback event loop
00:19 chansen ahh, true no consecutive timestamps
00:20 chansen soo, work around is, if previous stamp equals current, increase by one
00:20 chansen s/is/it/
00:21 Caelum so trying to load Apache::Session::MySQL under Mojolicious under Plack under mod_perl segfaults mod_perl :/
00:21 sri welcome to mod_perl
00:22 chansen Caelum: to many factors?
00:22 chansen sri: thats bullshit
00:30 ObseLeTe joined #mojo
00:37 Caelum I really don't like segfaults. I mean, I REALLY don't like them.
00:38 Caelum I have an XS module that causes me alot of them too.
00:52 egopro joined #mojo
00:55 egopro joined #mojo
00:58 d4rkie joined #mojo
00:59 d4rkie joined #mojo
01:05 laouji joined #mojo
01:11 Mike-PerlRecruiter_ joined #mojo
01:17 Caelum how do I override a default helper?
01:17 Caelum $app->helper(session => ...) just ignores it
01:18 Caelum perhaps DefaultHelpers runs after my plugin 'foo'; call?
01:20 sri session is a helper *and* a method
01:20 Caelum ahh right
01:20 Caelum thanks!
01:22 hlin joined #mojo
01:32 zivester joined #mojo
02:23 Skolem left #mojo
02:28 Caelum when using jquery's .ajax with a dataType: 'json', it doesn't seem to be enough to get a json response form $self->respond_to(json => ...)
02:28 Caelum supposedly it sets the accept header based on dataType, but is it doing correctly?
02:37 Caelum "Unspecific Accept request headers that contain more than one MIME type are currently ignored, since browsers often don't really know what they actually want."
02:37 Caelum with dataType: json jquery sets the accept header to 'application/json, text/javascript, */*; q=0.01'
02:38 Caelum well that isn't nice
02:42 laouji_rouge joined #mojo
03:49 noganex_ joined #mojo
03:51 Foxcool joined #mojo
03:51 Miked joined #mojo
04:04 xaka joined #mojo
04:09 _xaka_ joined #mojo
04:35 xaka joined #mojo
04:58 laouji joined #mojo
04:58 laouji_rouge joined #mojo
05:34 anewkirk joined #mojo
05:46 luoboiqingcai joined #mojo
05:59 spleenjack joined #mojo
06:02 hesperaux joined #mojo
06:43 egopro joined #mojo
06:49 egopro_ joined #mojo
07:03 dpetrov_ joined #mojo
07:47 Vandal joined #mojo
07:58 yakudza joined #mojo
08:10 judofyr joined #mojo
08:15 ver joined #mojo
08:30 suy joined #mojo
08:48 fhelmber_ joined #mojo
08:54 batman joined #mojo
08:59 D4RK-PH0ENiX joined #mojo
09:01 egopro joined #mojo
09:03 Vandal joined #mojo
09:05 Averna joined #mojo
09:15 Vandal joined #mojo
09:23 amirite_ joined #mojo
09:25 egopro joined #mojo
09:39 alexeiras joined #mojo
09:39 kitt_vl joined #mojo
09:49 arthas joined #mojo
09:56 marty ALL GLORY TO THE HYPNOTOAD
10:11 suy Hail Hypnotoad!
10:11 cosmincx joined #mojo
10:12 jnbek^dt joined #mojo
10:26 Foxcool joined #mojo
10:33 cosmincx joined #mojo
10:44 rem_lex joined #mojo
10:50 amirite joined #mojo
11:08 memowe \o/
11:11 d4rkie joined #mojo
11:17 ladnaV joined #mojo
11:29 SmokeMachine joined #mojo
11:36 ObseLeTe joined #mojo
11:46 Vandal joined #mojo
11:51 ladnaV joined #mojo
11:59 Vandal joined #mojo
12:02 mire joined #mojo
12:06 avkhozov joined #mojo
12:18 amirite_ joined #mojo
12:37 Molaf__ joined #mojo
13:13 Mike-PerlRecruiter_ joined #mojo
13:14 sri \o\
13:14 sri /o/
13:14 judofyr \o/
13:15 memowe /°\
13:16 ZadYree |o|
13:42 cosmincx joined #mojo
13:42 rem_lex joined #mojo
13:56 ladnaV joined #mojo
14:25 geira joined #mojo
14:32 ObseLeTe joined #mojo
14:34 asarch joined #mojo
14:42 cosmincx joined #mojo
14:48 bluescreen joined #mojo
14:55 Vandal joined #mojo
15:12 ObseLeTe joined #mojo
15:15 Britzel_ joined #mojo
15:23 labrown joined #mojo
15:30 ryozi joined #mojo
15:40 dod joined #mojo
16:02 mjy joined #mojo
16:20 ladnaV joined #mojo
16:22 ladnaV joined #mojo
16:24 Vandal joined #mojo
16:41 Caelum anyone mind taking a look at my prototype and tell me if I'm doing things The Right Way: http://gist.github.com/4286776
16:41 Caelum hmm, they changed gist so that nopaste input doesn't get auto-highlighted anymore
16:44 Caelum sri: so why do you hate jquery's json accept header?
16:44 sri huh, when did i say that?
16:45 Caelum you didn't explicitly say that
16:45 atz joined #mojo
16:45 Caelum but I mean, it sends 'application/json, text/javascript, */*; q=0.01'
16:46 sri ...
16:46 Caelum which doesn't work for ->respond_to(json
16:47 Caelum and that rather sucks
16:48 sri please don't poke me for nothing
16:50 Caelum ok, I won't poke you, sorry
16:50 Caelum breaking the most common form of ajax calls doesn't seem like "nothing" to me, but whatever
16:56 * sri will just turn off notifications from now on
16:59 mjy left #mojo
17:06 mire joined #mojo
17:07 xaka joined #mojo
17:23 memowe Caelum: https://github.com/kraih/mojo/issues/237
17:30 memowe Caelum: https://gist.github.com/4287160
17:30 memowe need to go home. \o
17:39 dod joined #mojo
17:48 yakudza joined #mojo
17:52 Caelum memowe: I'm just going to write a MojoX to override it
17:53 Caelum memowe: because I hate adding &format=json to my urls or using .ajaxSetup
18:00 mire joined #mojo
18:25 mire joined #mojo
18:28 batman left #mojo
18:32 sri has anyone actually researched if browsers got better recently?
18:43 sri that would be constructive
18:46 inokenty joined #mojo
18:46 mattastrophe joined #mojo
18:56 sri i don't really see a reason why we shouldn't allow detection if X-Requested-With has been set
19:02 good_news_everyone joined #mojo
19:02 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/zaQFYg
19:02 good_news_everyone mojo/master eaf1402 Sebastian Riedel: added support for MIME type prioritization to Mojolicious::Types
19:02 good_news_everyone left #mojo
19:03 sri as usual, feedback or it gets removed again
19:07 * sri pokes marcus, tempire and crab
19:14 rem_lex joined #mojo
19:24 good_news_everyone joined #mojo
19:24 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/TbBDXg
19:24 good_news_everyone mojo/master 75b17c6 Sebastian Riedel: better content negotiation tests
19:24 good_news_everyone left #mojo
19:46 memowe sri: I like it. #feedback :)
19:46 sri then it stays \o/
19:48 sri considering that only javascript frameworks send X-Requested-With, it might be a pretty good indicator for sensible Accept headers
19:48 sri rails seems to have success with that approach too
19:58 sri there is no support for */* and text/* yet, if anyone wants that we need a real use case
20:26 noganex joined #mojo
20:31 Caelum this is interesting, ./script get '?foo=bar' gets the root of our apache
21:10 good_news_everyone joined #mojo
21:10 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/9FmLvA
21:10 good_news_everyone mojo/master 0c38458 Sebastian Riedel: fixed small hash order bug in MIME type prioritization
21:10 good_news_everyone left #mojo
21:12 mjy joined #mojo
21:20 amirite joined #mojo
21:22 perlite joined #mojo
21:25 amirite_ joined #mojo
21:40 nic Is that fix focused on the case when $types{$b} == $types{$a}?
21:41 nic just curious why the extra sort makes a difference
21:42 jnbek joined #mojo
21:44 good_news_everyone joined #mojo
21:44 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/ynDnfA
21:44 good_news_everyone mojo/master 2a0bfb7 Sebastian Riedel: documentation tweaks
21:44 good_news_everyone left #mojo
21:46 sri nic: see the test case
21:46 nic k
21:46 sri it's random order without it under 5.17.6
21:46 sri since both have a quality of 1
21:48 nic I see
21:53 xaka joined #mojo
21:58 good_news_everyone joined #mojo
21:58 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/0DDc0w
21:58 good_news_everyone mojo/master a4ac04b Sebastian Riedel: another MIME type prioritization test
21:58 good_news_everyone left #mojo
22:02 bluescreen joined #mojo
22:12 bluescreen_ joined #mojo
22:37 good_news_everyone joined #mojo
22:37 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/dV5tRw
22:37 good_news_everyone mojo/master f5482b3 Sebastian Riedel: small optimizations
22:37 good_news_everyone left #mojo
22:41 mattastrophe joined #mojo
22:42 marcus hay
22:52 Caelum 5.17.6 randomizes your sort order if the values are equivalent?
22:52 Caelum that's nice
22:54 tempire oh hai
22:56 sri o/
22:57 sri tempire: you were part of the original discussion https://github.com/kraih/mojo/issues/237 thoughts on using X-Requested-With as an indicator for good Accept headers?
22:58 sri whole changeset
22:58 sri https://github.com/kraih/mojo/compare/e2a​e7d46906457c39debb47ed56110e8134bc8c9...f​5482b3f804251b73e16b6a971fd0a57a325487a
22:58 tempire It's on my list to consider.  I'll take a look at it this evening.
22:59 sri it's evening here! :)
23:00 tempire no it's morning
23:00 tempire snap!
23:00 sri oh noes
23:08 cooper joined #mojo
23:20 * marty likes the new X-Requested-With support
23:23 sinkovsky joined #mojo
23:25 jzawodn joined #mojo
23:31 sri \o/
23:33 buu |
23:33 buu /// \
23:33 buu o.o
23:55 sri that does not look healthy

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