Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6-lwp-gsoc, 2014-07-21

| Channels | #perl6-lwp-gsoc index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:18 FROGGS__ joined #perl6-lwp-gsoc
06:29 sergot morning o/
07:14 FROGGS__ morning
08:04 sergot FROGGS__: could you update all gsoc repos?
08:04 sergot and modify ex_readme.p6 in http-useragent to .get('https://github.com')?
08:04 sergot Then you probably would see "Malformed UTF8" error.
08:04 sergot And I have no idea why it is so
08:05 FROGGS__ will do, but can't do that now :(
08:07 sergot okok, no problem :)
12:42 dalek perl6-encode: 67fb4ef | sergot++ | / (5 files):
12:42 dalek perl6-encode: &decode returns a Str
12:42 dalek perl6-encode: review: https://github.com/sergot/perl6-encode/commit/67fb4efd93
13:52 FROGGS[mobile] joined #perl6-lwp-gsoc
13:55 FROGGS[mobile] sergot: when we fetch that github site, do we detect an encoding?
13:56 FROGGS[mobile] sergot: IIRC there is a regex that looks for a CHARSET
13:56 FROGGS[mobile] do we hit this?
13:56 FROGGS[mobile] if not, do the headers tell what encoding it is?
14:03 sergot Content-Type: text/html; charset=utf-8
14:03 sergot yes, we hit this.
14:06 sergot http://devopsreactions.tumblr.com/post/86295268875/cleaning-up-openssl-code :D
14:06 sergot http://devopsreactions.tumblr.com/post/86197392990/libressl-developers-every-night-before-going-to
14:14 sergot I should definately use grammars in HTTP::Cookies
15:38 FROGGS__ ummm
15:38 FROGGS__ that github page starts with:
15:38 FROGGS__ �<!DOCTYPE html>
15:38 FROGGS__ <html class="   ">
15:40 FROGGS__ that thing at the beginngin is 0x3c
15:41 FROGGS__ so it is not part of a BOM
15:44 FROGGS__ ewww
15:44 FROGGS__ when I dump the headers I see this:
15:44 FROGGS__ HTTP::Header.new(name => "Strict-Transport-Securit\x[0]y", values =>...
15:44 FROGGS__ a \0 sneaked in there!
15:49 FROGGS__ so I guess there is another usage of CArray in the OpenSSL module?
15:50 FROGGS__ we probably cannot use Str there but we need to take care of lengths
19:20 sergot hmmm, sounds reasonable
19:23 sergot yeah, it should pass n+1 I think
19:50 sergot anyway I dont know, why it starts with 0x3c
19:51 sergot how did you dump it?
20:02 FROGGS sergot: http://paste.scsys.co.uk/409056
20:04 sergot thanks
20:08 sergot interesting problem... :)
20:12 sergot Do you have any idea about the 0x3c?
20:16 sergot hmm, I'll work on this tomorrow. :)
20:17 sergot It's too late or something for me..
20:19 sergot I tried with $count + 1, but it didnt help
20:20 FROGGS what $count?
20:20 sergot https://github.com/sergot/openssl/blob/master/lib/OpenSSL.pm6#L59
20:20 sergot here
20:20 sergot actually, #58
20:21 FROGGS now I have 0xcc 0x3c before the proper content...
20:22 sergot ymm
20:22 sergot eww
20:22 FROGGS also: Strict-Transport-Security\x[0]
20:23 sergot hmm
20:28 sergot https://github.com/sergot/openssl/blob/master/lib/OpenSSL.pm6#L61 - $read - 1 helps here
20:28 sergot and here: https://github.com/sergot/openssl/blob/master/lib/OpenSSL.pm6#L63
20:28 FROGGS ohh, that makes sense
20:30 sergot we dont need $count + 1 then
20:31 FROGGS correct
20:31 FROGGS $read-- right after obtaining it helps, aye
20:31 FROGGS either you do that, or instead of 0..$read you do ^$read
20:32 FROGGS because $read is the *amount* of bytes we get, and 0..$read is one more
20:33 dalek openssl: 95e688e | sergot++ | lib/OpenSSL.pm6:
20:33 dalek openssl: encoding fix
20:33 dalek openssl:
20:33 dalek openssl: now it truncates \0 at the end
20:33 dalek openssl: review: https://github.com/sergot/openssl/commit/95e688e92a
20:33 FROGGS <FROGGS> m: my $read = 32; say (0..$read).elems
20:33 FROGGS <camelia> rakudo-moar 043cc0: OUTPUT«33␤»
20:33 FROGGS <FROGGS> m: my $read = 32; say (^$read).elems
20:33 FROGGS <camelia> rakudo-moar 043cc0: OUTPUT«32␤»
20:33 sergot oh.. right, I forgot about this
20:34 sergot thanks :)
20:35 FROGGS so, you can also fetch the github site just fine?
20:37 sergot yes \o/
20:37 dalek openssl: 578d549 | sergot++ | lib/OpenSSL.pm6:
20:37 dalek openssl: ($read - 1) better written
20:37 dalek openssl: review: https://github.com/sergot/openssl/commit/578d549067
20:37 sergot and you?
20:38 FROGGS yes, works :D
20:38 sergot oh, "also" was there... :)
20:39 sergot I'm sleepy.
20:39 sergot and a little bit tired
20:39 FROGGS yeah... me too
20:39 FROGGS gnight then
20:39 sergot good night! o/

| Channels | #perl6-lwp-gsoc index | Today | | Search | Google Search | Plain-Text | summary