Camelia, the Perl 6 bug

IRC log for #mojo, 2012-05-30

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

All times shown according to UTC.

Time Nick Message
00:07 rem_lex joined #mojo
00:23 jnap joined #mojo
01:17 burk joined #mojo
01:17 robinsmidsrod joined #mojo
01:17 jmmills joined #mojo
01:17 kmx joined #mojo
01:17 charsbar__ joined #mojo
01:17 predgtr1 joined #mojo
01:17 kenjiskywalker joined #mojo
01:17 atrodo joined #mojo
01:17 kthakore joined #mojo
01:17 crab joined #mojo
01:17 stephan48 joined #mojo
01:17 tempire joined #mojo
01:17 Gedge joined #mojo
01:17 mattastrophe joined #mojo
01:17 Debolaz joined #mojo
01:19 Patterner joined #mojo
01:19 perlite joined #mojo
01:19 amirite joined #mojo
01:19 ryanc joined #mojo
01:19 alnewkirk joined #mojo
01:19 nuba joined #mojo
01:19 bobkare joined #mojo
01:19 DaTa joined #mojo
01:19 keedi joined #mojo
01:19 mikegrb joined #mojo
01:28 scott joined #mojo
01:30 SmokeMachine_ joined #mojo
01:32 jnap joined #mojo
01:58 d4rkie joined #mojo
02:14 tempire sri: is there a particular article you're referring to on hackernews?
02:26 xaka joined #mojo
02:32 crab hi tempire.
02:32 tempire hello crab
03:26 Gedge joined #mojo
03:31 Gedge joined #mojo
03:41 asarch joined #mojo
05:15 ovnimancer joined #mojo
05:23 bird joined #mojo
06:01 Leandr joined #mojo
06:04 Foxcool joined #mojo
06:07 Vandal joined #mojo
06:09 jwang joined #mojo
06:33 spleenjack joined #mojo
06:45 bessarabov joined #mojo
06:52 rem_lex|pivo joined #mojo
07:18 mire joined #mojo
07:36 cosmincx joined #mojo
07:36 AmeliePoulain joined #mojo
07:53 cosmincx joined #mojo
07:55 fhelmber_ joined #mojo
08:01 spleenjack1 joined #mojo
08:04 marcus good morning, hoomans
08:04 marcus and sri
08:06 sri good morning vikings
08:06 bessarabov joined #mojo
08:07 * marcus wants to play more with Lua
08:07 marcus sri: that FFI::Raw thing looked interesting.
08:07 sri indeed
08:08 sri only downside i can see so far is that it doesn't bundle libffi
08:08 crab what is FFI::Raw?
08:08 marcus agree
08:09 marcus crab: https://metacpan.org/module/FFI::Raw
08:09 batman marcus: did you see the comment about M::P::Oauth2 ?
08:09 batman can you make it use its own ua?
08:10 marcus batman: I did not see that. Wouldn't making it use its own ua be counterproductive in an async env?
08:10 sri i thought marcus already did that
08:10 sri marcus: not at all
08:11 marcus sri: no, I use $c->ua now
08:11 sri that's bad
08:11 crab "Note that this module has nothing to do with FFI"
08:11 batman marcus: could you also add a helper $c->get_authorize_url($provider) ?
08:12 marcus batman: send me a pull request? ;-)
08:12 batman i sometimes would like to add a link instead of doing the actual redirect
08:12 marcus I just merged https://github.com/marcusramberg/​Mojolicious-Plugin-OAuth2/pull/7 from judofyr
08:12 batman ok. i'll send you a pull request :)
08:14 marcus \o/
08:15 marcus crab: right, but it is an interface to libffi
08:15 marcus crab: it's just not related to the FFI perl module
08:19 batman pull request sent
08:31 marcus batman: what, no get_authorize_url helper? :)
08:31 batman it will come in a pull request soon
08:33 Xorg joined #mojo
08:34 GitHub78 joined #mojo
08:34 GitHub78 [mojo] kraih pushed 1 new commit to master: http://git.io/7TGBug
08:34 GitHub78 [mojo/master] encourage the use of new user agents in plugins - Sebastian Riedel
08:34 GitHub78 left #mojo
08:37 sri no idea how to say it better
08:39 batman marcus: got another pull request now
08:39 batman with tests even ;)
08:41 batman would you mind poking me once you have a new release or if anything is odd with my pull requests?
08:42 batman sri++ # encourage the user to do the right thing
08:43 batman i need to start moving now... taking the day off to move, and what do i do? :)
08:43 alexeiras joined #mojo
08:43 marcus code
08:43 batman yes
08:43 batman at least i managed to push a new version of betsy
08:43 marcus batman: release due in a few minutes.
08:43 batman marcus: sweet! do you acccept both my pull requests, just like that?
08:44 marcus batman: I already merged the first one
08:44 batman http://www.getbetsy.com/ <-- "Powered by Perl and Mojolicious." :)
08:44 batman marcus: cool
08:48 sri oh, that looks nice
08:54 batman thanks :)
08:58 batman just waiting for acceptance from facebook, and we're good to go
08:58 batman got both responsive html (for desktop+android) and an iphone app
09:02 pau4o joined #mojo
09:05 pau4o joined #mojo
09:12 daxim joined #mojo
09:27 xxtjaxx_ joined #mojo
09:29 scott joined #mojo
09:30 crab illegal hamburger
09:30 crab we need to get that into unicode so that we can name mojolicious 3.0 that
09:31 * crab hides
09:43 sri :D
09:56 daxim perl5.16.0 -C -E'say "\N{HAMBURGER}\N{COMBINING ENCLOSING CIRCLE BACKSLASH}"' > illegalhamburger
11:32 jnap joined #mojo
12:40 bessarabov joined #mojo
12:41 Patterner my hamburger is questionable ☹
12:41 hugh joined #mojo
12:46 spleenjack joined #mojo
13:08 Psyche^ joined #mojo
13:12 jnap joined #mojo
13:39 andrefs joined #mojo
13:42 stephan48 is there a way in a helper to get the name of the current controller?
13:44 hide joined #mojo
13:44 stephan48 i am currently checking controller, and it turned out it actually worked what i had done but i let mojo escape the html that came from the helper and thus it wasnt displayed
14:03 asarch joined #mojo
14:04 CromeDome joined #mojo
14:39 espent joined #mojo
14:40 Htbaa joined #mojo
14:45 stephan48 perl -MMojo::URL -E "say Mojo::URL->new('https://test')->query(hostname => ['test1','test2'], value2 => ['test3','test4']);"
14:45 stephan48 https://test?value2=ARRAY%280x9b8338%29&h​ostname=test1&hostname=test2
14:46 stephan48 i am getting this behaviour, any idea why the second array isnt expanded into 2 value keys?
14:56 bessarabov joined #mojo
14:56 inokenty joined #mojo
15:20 Leandr joined #mojo
15:22 sri stephan48: bug
15:29 stephan48 bug for that you want a testcase or bug you will fix without?
15:33 fhelmber_ joined #mojo
15:35 GitHub86 joined #mojo
15:35 GitHub86 [mojo] kraih pushed 1 new commit to master: http://git.io/8iAWCw
15:35 GitHub86 [mojo/master] fixed array appending bug in Mojo::Parameters - Sebastian Riedel
15:35 GitHub86 left #mojo
15:35 sri stephan48: fixed
15:36 jnap joined #mojo
15:44 GitHub142 joined #mojo
15:44 GitHub142 [mojo] kraih pushed 1 new commit to master: http://git.io/WO5EJA
15:44 GitHub142 [mojo/master] more tests and documentation for Mojo::Parameters - Sebastian Riedel
15:44 GitHub142 left #mojo
15:52 AmeliePoulain joined #mojo
15:59 GitHub164 joined #mojo
15:59 GitHub164 [mojo] kraih pushed 1 new commit to master: http://git.io/ZMHayQ
15:59 GitHub164 [mojo/master] more Mojo::Parameters tests - Sebastian Riedel
15:59 GitHub164 left #mojo
16:22 stephan48 is there any known problem with Net::LDAP & ldaps in combination with mojo?
16:26 stephan48 a call to establish an ldap con fails with this error:
16:26 stephan48 Unexpected keys - SSL_ca_file, SSL_ca_path, SSL_check_crl, SSL_cipher_list, SSL_honor_cipher_order, SSL_server, SSL_use_cert, SSL_verify_mode, SSL_version at /home/stephan/perl5/perlbrew/perls/perl-​5.12.4/lib/site_perl/5.12.4/Net/LDAP.pm line 178
16:27 stephan48 outside from an Mojolicious app the code works
16:27 stephan48 $ldap = Net::LDAP->new( 'ns2.opennic.glue', scheme => 'ldaps' ) or die "$@";
16:27 stephan48 this is the offending line
16:27 sri mojo version?
16:29 stephan48 http://p.stejau.de/?18
16:30 sri i think it's the ipv6 workaround breaking it
16:30 stephan48 ipv6?
16:30 stephan48 in Net::LDAP?
16:31 sri https://github.com/kraih/mojo/commit/35​78ae624d7fc441a8e5dba0741720213b45517a
16:34 stephan48 ok
16:34 stephan48 any way to still use it?
16:34 sri no
16:35 stephan48 anyway to disable this workaround?
16:35 sri no
16:35 xaka joined #mojo
16:35 stephan48 cool
16:35 stephan48 cause i need ldaps its a remote server..
16:35 stephan48 and i dont need ipv6 in this app(reverse proxied behind ap2)
16:35 sri find a better workaround
16:36 stephan48 export MOJO_NO_IPV6=1;
16:37 stephan48 brougth the success
16:37 sri that is not a solution
16:37 stephan48 nope
16:37 stephan48 a workaroung for the workaround
16:37 stephan48 sadly i dont know enougth of the stuff to solve it decently
16:38 sri ok, unless someone finds a better solution i'm gonna kick ipv6 support out of Mojolicious for now
16:39 stephan48 ok also a not so nice step...
16:39 stephan48 why cant this shit just work?
16:39 stephan48 why does everything have to break something else?
16:40 sri i'm annoyed with IO::Socket::IP
16:41 sri there is no reason whatsoever for it to break on unknown arguments
16:41 stephan48 yea
16:42 Vandal joined #mojo
16:48 sri the code of IO::Socket::INET6 is total garbage, but since we depend on IO::Socket::SSL it seems to be the only option
16:52 stephan48 is IO::Socket::IP actually actively maintained?
16:52 sri it is
16:53 sri IO::Socket::INET6 is the mostly unmaintained one
16:53 sri this is a huge step backwards, IO::Socket::INET6 is garbage by design
16:56 stephan48 why dont we file a critical bug against IO::S::IP?
16:56 stephan48 it claims to be a dropin replacement
16:56 sri LeoNerd is on vacation, and arguing with him about pragmatism vs correctness is not such a great experience
16:56 stephan48 and thus it should react the same as the IO::Socket::INET in regards to public api..
16:57 stephan48 so dieing now is a bug
16:58 sri i don't think we have time to wait, this will surely break apps, as demonstrated by you
16:59 * sri pokes crab, tempire and marcus
16:59 stephan48 is INET6 also a dropin?
16:59 sri also... IO::Socket::IP lies, it can't ever be a dropin
17:00 sri INET6 is a real dropin
17:00 stephan48 i would nonetheless file the bug and if possible in this time use INET6 as replacement till IP is fixed
17:00 stephan48 ok
17:00 sri please file a bug
17:00 d4rkie joined #mojo
17:00 stephan48 is it ok when i take reference to the ipv6 workaround in your commit?
17:01 andrefs joined #mojo
17:01 sri i think you can just demonstrate it with a oneliner
17:01 stephan48 ah yea true
17:01 sri use IO::Socket::IP -register; use IO::Socket::SSL; IO::Socket::SSL->new(...)
17:01 brambles joined #mojo
17:02 stephan48 perl -MIO::Socket::IP -E 'my $ip = IO::Socket::IP->new(blabla => 1);'
17:02 stephan48 Unexpected keys - blabla at -e line 1
17:02 sri or just like that :)
17:02 stephan48 even better thanks
17:02 stephan48 nono your example is better cause it shows how this breaks inter package stuff
17:03 stephan48 erl -E 'use IO::Socket::IP -register; use IO::Socket::SSL; my $test = IO::Socket::SSL->new(eeebla =>1);'
17:03 stephan48 perl -E 'use IO::Socket::IP -register; use IO::Socket::SSL; my $test = IO::Socket::SSL->new(eeebla =>1);'
17:03 stephan48 doesnt crash
17:04 sri i suspect -register doesn't actually work
17:04 sri i've not tried it, just saw it in the docs
17:04 stephan48 yea
17:05 stephan48 i suspect to have it working i would need to push it to the top of the IO::Socket::SSL file
17:06 stephan48 perl -E 'use IO::Socket::IP; use IO::Socket::SSL; $IO::Socket::SSL::ISA[0] = 'IO::Socket::IP'; my $test = IO::Socket::SSL->new(SSL_ =>1);'
17:06 stephan48 Unexpected keys - SSL_, SSL_cert_file, SSL_check_crl, SSL_honor_cipher_order, SSL_key_file, SSL_server, SSL_use_cert, SSL_verify_mode, SSL_version at -e line 1
17:06 jnap joined #mojo
17:06 stephan48 but this works ;)
17:06 stephan48 and shows excactly the error i am getting with Net::LDAP
17:07 mire joined #mojo
17:07 stephan48 should i take you into cc?
17:11 brambles joined #mojo
17:16 stephan48 https://rt.cpan.org/Ticket/Display.html?id=77536
17:17 brambles joined #mojo
17:19 sri stephan48++
17:22 brambles joined #mojo
17:23 d4rkie joined #mojo
17:27 brambles joined #mojo
17:29 Leo joined #mojo
17:30 sri ok, i have all tests pass with IO::Socket::INET6
17:36 Leandr joined #mojo
17:37 brambles joined #mojo
17:40 GitHub137 joined #mojo
17:40 GitHub137 [mojo] kraih pushed 1 new commit to master: http://git.io/JgqLCQ
17:40 GitHub137 [mojo/master] switched from IO::Socket::IP to IO::Socket::INET6 for IPv6 support - Sebastian Riedel
17:40 GitHub137 left #mojo
17:40 sri please test
17:41 sri if everything works i'll upload a release later
17:42 brambles joined #mojo
17:43 sri I HATE IPV6!
17:48 brambles joined #mojo
17:52 tempire hooray ipv6!
17:52 sri BOOOOOO IPV6!
17:53 brambles joined #mojo
17:53 * sri picks up a chair and starts hitting ipv6
17:58 brambles joined #mojo
18:03 brambles joined #mojo
18:05 sri tempire: since you're here, do you want to do the release?
18:05 tempire for shurbs
18:06 jnap joined #mojo
18:07 sri IO::Socket::INET6 seems to pass all the usual IPv6 tests, with IPv4 fallback and stuff
18:08 tempire "Improved IPV6 support" good enough for a tagline?
18:08 jnap joined #mojo
18:08 sri not sure
18:09 sri important IPv6 bug fixes might be more appropriate
18:09 brambles joined #mojo
18:09 tempire oh right, the problems earlier
18:10 sri yea, last release should have broken all apps that use a module that uses IO::Socket::SSL
18:10 tempire fun!
18:13 stephan48 "Resolving other Peoples Mistakes"
18:14 brambles joined #mojo
18:19 brambles joined #mojo
18:20 tempire hmm.  haven't done this in a while.
18:20 tempire feel like I'm missing something.
18:20 tempire guess we'll find out.
18:21 andrefs joined #mojo
18:23 tempire sri: missing permission on Mojolicious::Plugin::Config::Sandbox
18:28 brambles joined #mojo
18:33 brambles joined #mojo
18:37 sri tempire: huh? that's not a real package
18:39 brambles joined #mojo
18:39 jnap joined #mojo
18:40 tempire http://www.evernote.com/shard/s15/sh​/221daf3c-1b7f-4cad-91de-0c60cad958a​9/2c44c665cd4c4a05fbb6606873b8bb66
18:40 sri anyway, i've reassigned all permissions
18:40 tempire ah, Plugin/Config.pm
18:43 sri tempire: force reindex if you want to be sure
18:43 tempire already done
18:43 sri \o/
18:44 tempire wish I knew how many beginners were going to be at my talk
18:44 brambles joined #mojo
18:44 sri now we are really running out of version numbers
18:44 tempire yeah, what are we going to do about that?
18:44 tempire 2.991?
18:44 sri time to start thinking about a new code name
18:45 sri naah, 3.0 imo
18:49 brambles joined #mojo
19:07 rem_lex joined #mojo
19:30 GitHub148 joined #mojo
19:30 GitHub148 [mojo] kraih pushed 1 new commit to master: http://git.io/TQ8dBg
19:30 GitHub148 [mojo/master] added another query example - Sebastian Riedel
19:30 GitHub148 left #mojo
19:34 jnap joined #mojo
19:48 tempire whoa
19:49 tempire forcing reindexing makes cpan recognition a lot faster
19:49 sri :o
19:49 sri you're blue
19:50 tempire I've morphed into the avatar
19:50 sri dabadi dabada
19:52 tempire this talk is going to be more like a mojocast than a normal presentation
19:59 jnap joined #mojo
20:22 xaka joined #mojo
20:52 andrefs joined #mojo
21:15 sri looks like IO::Socket::IP gets fixed now
21:15 sri so at some point we will switch back
21:15 sri it's going into core after all
21:26 stephan48 https://rt.cpan.org/Ticket/Display.html?id=77536
21:26 stephan48 that was quick
21:28 stephan48 will test it tomorrow and report back
21:29 sri we've just talked about it in #p5p, there is a lot of interest in getting IO::Socket::IP finally into core
21:29 stephan48 would make sense
21:29 sri IO::Socket::SSL compatibility should be fixed too, since HTTP::Tiny uses that too for HTTPS
21:30 stephan48 you mean the bug?
21:30 JasonCrome joined #mojo
21:30 sri hopefully real compatibility
21:30 stephan48 idk
21:31 sri as in it "just works"
21:31 stephan48 we will see
21:31 stephan48 you actually read the patch?
21:31 sri it only addresses the die() i believe
21:31 sri i'll stay away from hacking IO::Socket::SSL for now :)
21:31 stephan48 hehe
21:32 sri IO::Socket::INET6 works until we can switch back later this year
21:32 stephan48 2cool
21:32 stephan48 when i apply it i will tell if its real compatibility
21:33 sri stephan48++
21:33 stephan48 it removes the check yes but also doesnt introduce code which puts the arg into the self hash
21:33 sri that's bad
21:33 stephan48 if that piece is in the original code all is fine if not -> the other args would be ignoreds
21:33 stephan48 we will see tomorrow
21:47 lukep joined #mojo
22:02 batman joined #mojo
22:11 batman c3p0?
22:12 batman "codename 3 point 0" :P
22:12 batman got to go to bed now.... it's been a loooong day
22:37 GabrielVieira joined #mojo
23:04 mire joined #mojo
23:42 sri marcus: have you looked at chocolate recently?
23:43 sri it looks a lot better these days, they're going to release 1.0 in 29 days apparently :o
23:51 sri highlighting only has a few issues like qr!!
23:52 sri but mojolicious template highlighting actually works just like in textmate :o
23:52 sri soooooo pretty

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