Camelia, the Perl 6 bug

IRC log for #mojo, 2013-08-08

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

All times shown according to UTC.

Time Nick Message
00:06 amirite_ joined #mojo
00:11 amirite joined #mojo
00:23 dvinciguerra joined #mojo
00:46 shmuel joined #mojo
01:10 amirite_ joined #mojo
01:27 amirite joined #mojo
01:46 cakes joined #mojo
01:49 btyler joined #mojo
01:52 amirite_ joined #mojo
01:57 d4rkie joined #mojo
02:11 shmuel_ joined #mojo
03:18 asarch joined #mojo
03:35 basic6_ joined #mojo
03:36 Adurah joined #mojo
03:37 preflex_ joined #mojo
03:54 StinkfooT joined #mojo
04:11 Meiermann joined #mojo
04:26 rem_lex joined #mojo
04:31 Adurah_ joined #mojo
04:32 dotandimet joined #mojo
04:55 punter joined #mojo
04:55 Adurah joined #mojo
04:56 punter left #mojo
05:37 Britzel_ joined #mojo
06:02 rem_lex|pivo joined #mojo
06:12 dpetrov_ joined #mojo
06:26 basiliscos joined #mojo
06:42 Vandal joined #mojo
06:54 dod joined #mojo
07:04 dod joined #mojo
07:05 shmuel joined #mojo
07:07 rem_lex joined #mojo
07:14 human39 joined #mojo
07:42 trone joined #mojo
07:46 inokenty joined #mojo
08:28 punter joined #mojo
08:32 gregf joined #mojo
08:32 denisboyun joined #mojo
08:34 KindTwo joined #mojo
08:36 denis_boyun_ joined #mojo
08:37 gregf left #mojo
09:07 arthas joined #mojo
09:25 mire_ joined #mojo
09:33 good_news_everyone joined #mojo
09:33 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/UUJ4Fw
09:33 good_news_everyone mojo/master 7f66812 Sebastian Riedel: fixed small bug where Mojo::IOLoop::Stream timeout was not always available
09:33 good_news_everyone left #mojo
09:34 perlite joined #mojo
09:37 tianon joined #mojo
09:49 maxhq joined #mojo
10:06 inokenty joined #mojo
10:12 wolf joined #mojo
10:16 * sri yawns
10:35 dsteinbrunner joined #mojo
10:46 good_news_everyone joined #mojo
10:46 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/9M6fLg
10:46 good_news_everyone mojo/master 786af75 Sebastian Riedel: fixed another timeout bug in Mojo::IOLoop::Stream
10:46 good_news_everyone left #mojo
10:49 denis_boyun joined #mojo
10:50 marcus good morning
10:50 sri \o
10:50 nic well, that's a rather subjective statement
10:50 marcus nic: I'm a very subjective subject
10:51 marcus nic: and I was talking to sri, who seemed to have just woken up. Personally I've been up for ~5 hours
10:52 * sri yawns all day
10:53 * nic envies anyone who's only been up for 5 hrs
10:53 marcus sri: are you saying you *havent* just woken up? :)
10:54 marcus frickin' timezones
10:54 * sri nods
11:42 punter joined #mojo
11:42 punter left #mojo
11:47 good_news_everyone joined #mojo
11:47 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/6WK2dQ
11:47 good_news_everyone mojo/master b43248e Sebastian Riedel: small optimization
11:47 good_news_everyone left #mojo
11:50 basiliscos1 joined #mojo
12:20 KindTwo joined #mojo
12:23 Meiermann joined #mojo
12:38 dod joined #mojo
12:41 rem_lex|pivo joined #mojo
13:04 asarch joined #mojo
13:09 jpn joined #mojo
13:34 btyler joined #mojo
13:56 dqw joined #mojo
13:56 Dandre1 joined #mojo
13:56 bluescreen joined #mojo
13:58 Dandre joined #mojo
13:59 Dandre1 joined #mojo
14:00 Dandre joined #mojo
14:01 quickstart joined #mojo
14:01 quickstart hi
14:01 dbolser hihi
14:01 dbolser how to surpress a header?
14:02 dbolser $self->res->headers->content_length();
14:02 dbolser $self->res->headers->content_length();
14:02 dbolser doesn't work
14:02 jast that's because that *returns* the header's value
14:03 dbolser $self->res->headers->content_length(''); # doesn't work either
14:03 dbolser hi jast
14:03 jast headers->remove('content-length')
14:03 dbolser many thanks jast
14:04 jast you're welcome. 's all documented, by the way. ;)
14:04 dbolser was looking here:
14:04 dbolser http://mojolicio.us/perldoc/Mojo/Headers
14:04 jast yeah, that's where it's documented
14:05 dbolser but the list was 90% 'Shortcut for the x header'
14:05 jast yeah... I guessed it because that's not the first time I've seen this pattern
14:05 dbolser could do with a couple of sub-headings for the method list, shortcuts and 'other'
14:05 dbolser hehe
14:06 dbolser but, yeah, I should have read down the list at least ;-)
14:06 dbolser thanks again
14:06 jast or type-ahead-searched for 'remove'
14:07 dbolser funny thing... it isn't being removed
14:08 dbolser tried also "$self->res->headers->remove('Content-Length');"
14:11 crab why are you trying to remove content-length?
14:12 dbolser being dumb
14:13 crab i don't think you should try to remove content-length, or infer anything about whether headers->remove() works or not based on trying to remove content-length.
14:13 dbolser actually, trying to build a solr 'proxy', and want to exactly clone the solr servers behaviour
14:13 dbolser a client calls HEAD on .../solr/admin/ping, and I want to mimic what solr returns exactly
14:13 punter joined #mojo
14:13 dbolser but it's prolly a waste of time here
14:14 dbolser crab: well... if I call remove... I'd expect it to be removed... but nevermind
14:14 jast that header is probably generated after you get the chance to alter the headers :)
14:14 dbolser ic
14:14 crab dbolser: content-length is probably added later
14:14 dbolser I'm sure it's harmless here
14:14 jast I mean, the content-length header needs to know the content length, right?
14:14 dbolser jup
14:14 jast can't do that before the controller has rendered everything
14:17 sh4 joined #mojo
14:19 dbolser BTW, if I'm faking a JSON response, should I just set the content-type header, or is there a smarter way to do it?
14:25 gryphon joined #mojo
14:26 jast "faking"?
14:33 Moataz-E joined #mojo
14:35 Moataz-E nic: gladly, i just took the server down as i have a feeling i need to secure it more first
14:35 nic ?
14:35 Moataz-E nic: also, the website is pretty basic and doesn't set a good example of what Mojo can really achieve.
14:35 Moataz-E nic> Moataz-E: It's customary to send a sample of your produce to the Mojolicious chief dev :)
14:36 nic oh, sorry, my joke was misworded
14:36 nic I was meaning sending sri one of your cars :)
14:37 Moataz-E nic: ahahahah, i wish i can do that, butmy father is just the manager :(
14:37 Dandre joined #mojo
14:41 denisboyun joined #mojo
14:44 * sri demands his car!
14:45 Dandre left #mojo
14:49 sri marcus: DUDE! WHERE'S MY CAR?!
14:49 jast you wouldn't download a car
14:54 nic http://gizmodo.com/5678476/the-worlds​-first-3d+printed-car-actually-works
15:02 bowtie_ joined #mojo
15:02 dod joined #mojo
15:07 marcus jast: yes I would. If I could get a big enough 3d printer.
15:08 denis_boyun joined #mojo
15:26 d4rkie joined #mojo
15:30 bpmedley joined #mojo
15:31 jast marcus: just assemble from lots of small parts :)
15:32 bpmedley http://perlnews.org/2013/08/a​nnouncing-closebargains-com/  <-- Thanks, Mojolicious makes web development fun
15:33 sri \o/
15:37 crab bpmedley: the about popup thingy says "jQuery Mobille"
15:37 bpmedley hrmm
15:38 dbolser is LWP part of Mojo::Lite?
15:38 crab no
15:38 dbolser I want to query a website as art of my web-app
15:38 jast LWP is an independent project
15:38 dbolser s/art/part/
15:38 crab use Mojo::UserAgent
15:38 dbolser crab: ty
15:39 bpmedley crab: Thanks!  It's fixed.
15:56 * sri wonders if Mojo::DOM needs helper methods for dealing with comments
15:56 sri ->remove_comments
16:05 human39 joined #mojo
16:19 dbolser hrm, this is kind of weird, when I run "HEAD url" on the term I get various headers, but when I run "$ua->head(url)->res->headers->to_string" I see only one of the headers and a new Content-Length header
16:20 dbolser same when I print Dumper $tx->res->headers
16:20 dbolser url is the same in both cases
16:23 dbolser peraps I should call get and look for the headers there?
16:35 r0b3rt joined #mojo
16:36 rem_lex| joined #mojo
16:45 good_news_everyone joined #mojo
16:45 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/V1BFSA
16:45 good_news_everyone mojo/master b8307fd Sebastian Riedel: added ancestors method to Mojo::DOM
16:45 good_news_everyone left #mojo
16:46 sri rather nice for quick ancestor checks
16:47 Dandre joined #mojo
16:48 sri ->ancestors->pluck('type')->first(qr/^div$/)
16:54 sri was a little unsure if the root element should be included too... but it's not a *real* ancestor
17:06 asarch joined #mojo
17:15 good_news_everyone joined #mojo
17:15 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/a1uVGw
17:15 good_news_everyone mojo/master 00bc857 Sebastian Riedel: small optimizations
17:15 good_news_everyone left #mojo
17:34 dvinciguerra joined #mojo
17:37 Britzel_ joined #mojo
17:42 Britzel joined #mojo
17:50 cooper joined #mojo
18:24 * sri thinks a compact method might still make sense for Mojo::Collection
18:24 sri but it should remove undef and ""
18:47 libsysguy joined #mojo
18:47 libsysguy o/
18:50 denisboyun joined #mojo
18:50 libsysguy I am working on a unit test for a post function.  when I run the test it tries to post but I can't retrieve any of the params.  Here is the test code: http://pastebin.com/WCGFkm13
18:50 libsysguy I should also say if I test with curl with the app running it works fine
18:52 good_news_everyone joined #mojo
18:52 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/qD5f5g
18:52 good_news_everyone mojo/master fd3f674 Sebastian Riedel: better ancestor example
18:52 good_news_everyone left #mojo
18:53 sri libsysguy: where did you see that in the documentation?
18:53 libsysguy yes
18:53 libsysguy oh
18:53 libsysguy heh *where*
18:54 libsysguy here: http://mojolicio.us/perldoc/Test/Mojo
18:54 libsysguy I did a search for test file upload
18:54 sri please be more specific
18:55 sri if it's there i need to fix it
18:55 libsysguy http://mojolicio.us/perldoc/Test/Mojo#post_ok
18:55 sri that's not the same
18:56 libsysguy I also saw the example here https://github.com/kraih/mojo/blob/ma​ster/t/mojolicious/upload_lite_app.t
18:56 libsysguy I'm not sure I see what is different
18:56 libsysguy other than there are more params
18:56 sri look closely
18:58 libsysguy poop
18:58 libsysguy took me long enough to see that
18:58 sri :)
18:59 * libsysguy sigh
18:59 libsysguy thanks sri
19:00 sri there should also be a garbage form: HASH(...) header in the request
19:01 * libsysguy nods
19:19 mire_ joined #mojo
19:32 stephan48 is there a way to do xpath on a json structure in mojolicious?
19:33 stephan48 http://tools.ietf.org/html/draft-ie​tf-appsawg-json-patch-10#appendix-A.1 like this
19:46 trone joined #mojo
19:53 amirite joined #mojo
19:54 sri that's called json pointers
19:54 sri RFC 6901
20:05 tm joined #mojo
20:14 sh4|2 joined #mojo
20:19 KindTwo joined #mojo
20:22 denis_boyun joined #mojo
20:41 tm left #mojo
21:04 btyler_ joined #mojo
21:10 good_news_everyone joined #mojo
21:10 good_news_everyone [mojo] kraih tagged v4.24 at e6ac0e6: http://git.io/jLjKYQ
21:10 good_news_everyone left #mojo
21:18 rem_lex joined #mojo
21:33 lukep joined #mojo
22:35 Akron joined #mojo
22:40 Akron Today I gave a talk in Montréal which included some bits of Mojo::DOM if someone's interested - https://github.com/Akron/XML-Loy-XStandoff
22:40 rem_lex|pivo joined #mojo
23:04 dqw joined #mojo
23:32 sh4|2 joined #mojo
23:40 espent joined #mojo
23:43 StinkfooT joined #mojo
23:57 bzero joined #mojo

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