Camelia, the Perl 6 bug

IRC log for #mojo, 2012-04-27

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

All times shown according to UTC.

Time Nick Message
00:01 ryanc joined #mojo
00:01 tempire there's still the senate and the president
00:02 tempire I don't have hopes for obama, though.  he said he would veto the ndaa too, but then signed it "reluctantly"
00:02 tempire :\
00:03 tempire ah, vervain already covered it
00:08 tempire I need to make a couple billion, buy a large island, recruit some uber cool folks, and then hide for 6 years.  call ourselves wakanda.
00:09 tempire declare that we accept dual citizenships, and accept citizens based on merit of character, honesty, and capability.
00:09 tempire after 10 years, wakanda's technology would surpass everyone
00:10 tempire then when we're attacked, they won't understand how all incoming missiles mid-flight by something that looked eerily similar to a sentinel.
00:11 tempire *were disassembled mid-flight
00:11 sri :D
00:14 tempire I already have our national mascot
00:14 tempire the black panther robocop ponycorn
00:16 tempire I'm sad that the dancer people didn't take advantage of the fact that this is national dancer week
00:20 tempire </end monologue>
00:21 * sri dances
00:22 * tempire claps
00:44 tardisx joined #mojo
01:18 jnap joined #mojo
01:21 scott joined #mojo
01:32 scott joined #mojo
01:56 d4rkie joined #mojo
02:38 mire joined #mojo
03:50 xaka joined #mojo
04:02 vel joined #mojo
05:09 Leandr joined #mojo
05:28 Leandr joined #mojo
05:51 Leandr joined #mojo
06:05 Vandal joined #mojo
06:19 fhelmber_ joined #mojo
06:32 cosmincx joined #mojo
07:50 tempire http://www.sliceofscifi.com/2012​/04/26/fringe-gets-final-season/
07:50 tempire \o/
08:01 cosmincx joined #mojo
08:12 spleenjack joined #mojo
08:18 yko joined #mojo
08:19 bzero joined #mojo
08:49 batman joined #mojo
09:07 taryk joined #mojo
09:23 daxim joined #mojo
10:11 heytrav joined #mojo
10:13 sri \o/
10:34 heytrav joined #mojo
10:57 AmeliePoulain joined #mojo
11:30 daxim http://stackoverflow.com/questions/10349727/mo​jodom-do-some-characters-need-special-escaping
11:51 sri hmm
11:51 sri mojo get 'http://gdata.youtube.com/feeds/ap​i/playlists/E7511681ABEA8635?v=2' 'media\:group'
11:51 sri that's not intentional i believe
11:51 athenot joined #mojo
11:52 sri it's actually rather stupid, i might break it
11:54 sri marcus: don't recommend that please
12:00 * sri wonders if people actually use that already
12:07 sri oh great, microsoft decided not to follow the spec and made that hack a feature -.- http://msdn.microsoft.com/en-u​s/library/ms762307(VS.85).aspx
12:13 sri oh well, screw correctness, i'll make it a feature
12:14 sri marcus: carry on
12:20 GitHub104 joined #mojo
12:20 GitHub104 [mojo] kraih pushed 1 new commit to master: http://git.io/d4W-1A
12:20 GitHub104 [mojo/master] better namespace tests - Sebastian Riedel
12:20 GitHub104 left #mojo
12:22 sri namespace handling in css sucks anyway
12:31 GitHub151 joined #mojo
12:31 GitHub151 [mojo] kraih pushed 1 new commit to master: http://git.io/krXlIg
12:31 GitHub151 [mojo/master] a few more escaped selector tests - Sebastian Riedel
12:31 GitHub151 left #mojo
13:36 inokenty joined #mojo
13:41 baton8 joined #mojo
13:42 meraxes joined #mojo
13:54 vel joined #mojo
14:09 marcus sri: that is how jquery does it
14:09 marcus which is why i recommended it
14:10 * sri never cared for the way namespace handling is described in the selector spec anyway
14:10 sri perfect example for worse is better ;p
14:12 sri although, depending on an actual namespace prefix instead of namespace semantics is still stupid
14:18 random joined #mojo
14:23 Akron joined #mojo
14:27 Akron sri: Please do not document this feature! It seems so wrong ...
14:27 Akron s/seem/feel/
14:28 Htbaa joined #mojo
14:28 sri Akron: browsers support it
14:28 sri i completely agree though
14:29 sri but it is already in use, not just with Mojo::DOM but also jquery according to marcus
14:29 Akron The headline of that microsoft site has nothing to do with what they are doing ...
14:31 Akron It may even be useful. But only if you know your files - i.e. your prefixes. So, jquery to manipulate a local dom or css for local documents may be fine, but I think Mojo::DOM is mostly used as part of Mojo::UserAgent and so it expects unknown documents.
14:32 sri i disagree
14:32 Akron On the other hand - I expect 99% of all users use "svg" as the prefix for the svg ns ...
14:32 sri primary use case is still testing, in which case you know exactly what to expect
14:33 Akron As long as you do not document that feature. :)
14:33 sri and even for scraping, you still need to know the document structure, prefix change or small structure change... it's not too different
14:35 sri it's not like namespace handling will magically get usable in css4 or css5
14:35 Akron That's true.
14:37 sri and i don't see this "feature" break with upcoming additions to the spec
14:38 sri : is already a special char (pseudo classes) and escaped for this use
14:38 Akron Fortunately \: looks totally ugly. A good reason not to use it.
14:38 sri for portability you even need \3A :)
14:38 Akron Much better! ;)
14:57 random left #mojo
15:06 marcus Congrats, you've gained the privilege – edit community wiki and 1 other privilege
15:06 marcus I am moving up in the stack overflow world...
15:15 sri :)
15:28 GitHub177 joined #mojo
15:28 GitHub177 [mojo] kraih pushed 1 new commit to master: http://git.io/ARppyg
15:28 GitHub177 [mojo/master] added namespace examples to Mojo::DOM - Sebastian Riedel
15:28 GitHub177 left #mojo
15:28 DaTa joined #mojo
15:28 memowe joined #mojo
15:40 mattastrophe joined #mojo
15:48 Psyche^ joined #mojo
15:51 athenot joined #mojo
15:52 xaka joined #mojo
16:00 Leandr joined #mojo
16:32 mire joined #mojo
16:35 Leandr joined #mojo
17:59 ruz joined #mojo
18:23 hipyhop joined #mojo
18:32 stephan48 joined #mojo
18:49 Leandr joined #mojo
18:53 tempire hey there's a new potential slogan
18:53 tempire mojolicious::lite - slicker than snot
18:53 tempire mojolicious: it's fantastic
18:53 tempire mojolicious: robots and vikings
18:53 tempire so many!
18:53 purl so many are on holiday today
18:54 sri :)
18:56 tempire shnikies.  42 perl jobs just showed up in my feed.
18:57 tempire oh nevermind, reader fail.
19:13 qbit joined #mojo
19:13 qbit is there a way to serve static files using Mojo::Lite?
19:15 rhaen hohoho!
19:15 rhaen qbit: sure!
19:15 rhaen qbit: hang on
19:16 qbit sweet .. i have attempted by using Mojo::Static and adding with $static->paths( '/blablabalb/albalbla' )
19:16 qbit but it doesn't seem to take it
19:16 d4rkie joined #mojo
19:16 rhaen oh, you should use that in the app context
19:16 rhaen lile app->static->root($absolute_path)
19:17 rhaen just place that before app->run and you should be fine.
19:17 sri root is deprecated
19:17 rhaen ooops. true
19:18 qbit hm.. is there anyway to set the path from within a " get '/' => sub { blablablab set the root here }" kinda way?
19:20 rhaen hm. well.
19:20 rhaen Just create a directory named "public"
19:20 rhaen beside your Mojolicious::Lite script and it will serve the files automatically.
19:20 rhaen your don't even have to set anything for it.
19:22 qbit k
19:26 d4rkie joined #mojo
19:26 rhaen qbit: does it work for you?
19:28 heytrav joined #mojo
19:29 qbit yep - thanks :D
19:30 rhaen :)
19:37 mire joined #mojo
19:40 rem_lex|pivo joined #mojo
19:48 GitHub157 joined #mojo
19:48 GitHub157 [mojo] kraih pushed 1 new commit to master: http://git.io/HrhlDw
19:48 GitHub157 [mojo/master] fixed attribute namespace selector bugs in Mojo::DOM::CSS - Sebastian Riedel
19:48 GitHub157 left #mojo
20:26 perlite_ joined #mojo
21:08 mire joined #mojo
21:14 jfuller joined #mojo
21:16 jfuller How exactly does debugging tests work? I see that I'm getting a status response of 500 back. But, it doesn't seem to log anywhere. I can do a dump of the response, but it is the full development template which is difficult to work with. I tried using a conditional template exception.testing.html.ep, but it still using the development one even though I am setting MOJO_MODE to testing in my...
21:16 jfuller ...test. Any advice?
21:16 jfuller I'm using v. 2.91
21:23 sri use -v
21:33 jfuller That did get it logging to development.log
21:33 jfuller sri: ^
21:42 kthakore hi sri
21:42 kthakore how do you make PDF and Word files on the fly?
21:52 tempire kthakore: cpan
21:56 qbit does remote-addr and x-forwarded-for ever get set in $self->req->headers ?
21:58 alnewkirk qbit: if you tell it to, sure
21:59 qbit but not automatically?
22:00 alnewkirk errr, you're misunderstanding something
22:00 alnewkirk also, remote_addr is set and available via $self->tx
22:00 qbit i must have asked incorrectly.
22:00 qbit k
22:01 qbit say mojo is being touched only by a reverse proxy...will x-forwarded-for ever be in the headers?
22:02 alnewkirk qbit: I think you want https://metacpan.org/module/M​ojolicious::Guides::Cookbook
22:02 alnewkirk https://metacpan.org/module/Mojolicio​us::Guides::Cookbook#Apache-mod_proxy for e.g.
22:05 qbit pretty sure i just want : $self->req->headers->heade​r('X-Forwarded-Protocol')
22:05 qbit s/Protocol/For/
22:05 tempire qbit: if the header was passed in the request, that will retrieve it.
22:06 qbit cool - thanks tempire that's what i was lookin for
22:06 qbit it will be 'X-Forwarded-For' ? correct?
22:07 tempire it's just a get method for whatever header value you're looking for
22:07 tempire it will be X-Forwarded-For if that's what you ask for
22:07 tempire there's no magic involved.
22:09 qbit right.. not assuming magic.. but in CGI it's called "HTTP_X_FORWARDED_FOR" so I just wanted to make sure the Capitalization
22:09 tempire I don't know how CGI does it.  But there's really only one way to be sure.
22:10 tempire try it!
22:10 * qbit pushes the dev version to the "behind proxy" live version... BREAK ALL THE THINGS!
22:22 * sri wonders if $dom->children and $dom->attrs should have namespace support too
22:23 sri $dom->svg->circle does currently not work for <svg><svg:circle /></svg>
22:23 sri instead it is $dom->svg->children('svg:circle')->first
22:25 sri suppose it's not worth the trouble
22:33 mire joined #mojo
23:18 zivester joined #mojo
23:52 GitHub141 joined #mojo
23:52 GitHub141 [mojo] kraih pushed 1 new commit to master: http://git.io/0NiEWQ
23:52 GitHub141 [mojo/master] small optimizations - Sebastian Riedel
23:52 GitHub141 left #mojo

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