Camelia, the Perl 6 bug

IRC log for #mojo, 2012-06-19

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

All times shown according to UTC.

Time Nick Message
00:00 jventer left #mojo
00:02 lammel2 joined #mojo
00:08 jventer joined #mojo
00:33 x86 so, I got my Mojo::Lite app working just peachy with morbo, but when I try to deploy it with hypnotoad, I get this in the production log: [Mon Jun 18 20:24:00 2012] [error] Event "read" failed: Bad arg length for Socket6::unpack_sockaddr_in6, length is 16, should be 28 at /usr/lib/perl5/Socket6.pm line 282.
00:33 x86 [Mon Jun 18 20:24:00 2012] [error] Event "read" failed: Bad arg length for Socket6::unpack_sockaddr_in6, length is 16, should be 28 at /usr/lib/perl5/Socket6.pm line 282.
00:34 x86 sorry for the double paste... stupid mouse
00:35 x86 so I'm not sure why this is happening... in both cases (morbo and hypnotoad), I'm accessing my application via a web browser using ipv4
00:36 x86 in the case of hypnotoad, the request just times out and returns nothing to the browser
00:52 ispy_ joined #mojo
00:54 jventer left #mojo
01:03 laouji joined #mojo
01:04 scott_ joined #mojo
01:28 tempire x86: the latest version of mojolicious?
01:31 tempire hmm, in marketing mojo get separately, I wonder if it would make sense to name it mojo req
01:31 tempire so "mojo req get"
01:31 tempire or mojo req g
01:32 tempire hell, I suppose I could just repackage it under another command
01:32 tempire make it almost like ojo
01:33 tempire with some arbitrary name, like pony
01:34 tempire pony g mojolicio.us '#introduction ul li'
01:35 tempire pony post mojolicio.us -p username=joe -p password=shmoe '/user/0/response'
01:49 tempire oh, I guess it would be pony post -c 'joe=username&shmoe=password' mojolicio.us '/user/0/response'
01:59 rem_lex| joined #mojo
02:08 noganex_ joined #mojo
02:30 jnap joined #mojo
02:49 tempire this is really neat thimble.webmaker.org/
03:23 mikegrb joined #mojo
03:44 d4rkie joined #mojo
04:00 Leandr joined #mojo
04:04 CromeDome joined #mojo
04:48 tetraodontidae joined #mojo
04:55 tetraodontidae joined #mojo
05:09 d0as8 joined #mojo
05:17 Leandr joined #mojo
05:30 laouji joined #mojo
05:44 spleenjack joined #mojo
05:46 fhelmber_ joined #mojo
06:05 Foxcool joined #mojo
06:22 ovnimancer joined #mojo
06:27 espent joined #mojo
06:30 Annihitek joined #mojo
06:36 Vandal joined #mojo
06:46 ladnaV joined #mojo
06:47 stephan48 http://paste.stejau.de/?42 i got these 4 lines, when i now hit /dyndns/myip i get a 404, when i removed the over clause from the second line it works, any idea why?
06:50 stephan48 probably i am missing something
07:00 davido joined #mojo
07:05 x86 tempire: yepper, latest version
07:05 zivester joined #mojo
07:09 batman joined #mojo
07:10 x86 so, I got my Mojo::Lite app working just peachy with morbo, but when I try to deploy it with hypnotoad, I get this in the production log: [Mon Jun 18 20:24:00 2012] [error] Event "read" failed: Bad arg length for Socket6::unpack_sockaddr_in6, length is 16, should be 28 at /usr/lib/perl5/Socket6.pm line 282.
07:10 x86 in the case of hypnotoad, the request just times out and returns nothing to the browser
07:10 pau4o joined #mojo
07:10 x86 so I'm not sure why this is happening... in both cases (morbo and hypnotoad), I'm accessing my application via a web browser using ipv4
07:19 xaka joined #mojo
07:21 Mad_Dud hey guys.
07:23 Mad_Dud how would you solve this design problem: webform with many fields (text, textarea, radio, checkboxes). the content of this form is going to be edited several times and i would like to keep a track of these changes. how would you design it?
07:23 stephan48 do you need to keep all changes?
07:24 Mad_Dud yeah - whole history of each field
07:25 Mad_Dud like version control thing..
07:26 stephan48 make a table, containing a value for your f.e. user or object, then a counter for ordering and for each change you insert a new row
07:26 stephan48 and then you can fetch the latest record by ordering on the counter
07:26 x86 then you're duplicating non-changed data for every single field change as well
07:26 stephan48 also true
07:27 Mad_Dud yeah. thats why i'm asking. i had this idea
07:27 Mad_Dud and i had an idea "field_name" > "value"
07:27 x86 that's called a hash, yeah ;)
07:28 Mad_Dud but this would reqire much more work to implement
07:28 Mad_Dud x86, yeah, you are right.
07:28 Mad_Dud so each modified field would have separate db record (+ incremental version of each field)
07:29 Mad_Dud ... but we don't have such a thing in the cpan or even in mojo plugins, right?
07:33 Mad_Dud well. thanks anyway. i like mojolicious very much.
07:47 x86 joined #mojo
07:47 cosmincx joined #mojo
07:51 niczero joined #mojo
07:58 * sri yawns
07:59 stephan48 good morning sri
07:59 sri good morning
08:03 stephan48 fixed my problem by adding a bridge()-> before the over
08:04 durcais joined #mojo
08:10 xaka1 joined #mojo
08:12 sri x86: broken IO::Socket::INET6 on your deployment box
08:15 sri that error means ->peerhost and friends die
08:16 sri btw. there is no need to post the same question multiple times
08:31 rem_lex joined #mojo
08:34 cosmincx1 joined #mojo
08:48 sh4|2 joined #mojo
08:58 rwstauner joined #mojo
09:14 cosmincx joined #mojo
09:19 x86 sri: it had been a while (8 hours or so), wasn't sure if new joiners saw it or not
09:19 x86 sri: thanks though...
09:19 x86 isn't IO::Socket::INET6 core?
09:21 x86 cpan[1]> install IO::Socket::INET6
09:21 x86 IO::Socket::INET6 is up to date (2.69).
09:24 x86 this is perl 5.14... wonder if I should install a newer version
09:25 x86 App::perlbrew looks interesting, maybe I'll build 5.16
09:31 sri nope INET6 is the old way of doing IPv6, the module sucks pretty bad, we only used it for one release
09:32 sri because we had to wait for IO::Socket::IP and IO::Socket::SSL bug fixes
09:36 sri guess it's time to start writing the 3.0 announcement
09:43 sri and just when i say that a new pull request pops up
09:43 sri oh well, then we another few days!
09:43 sri *+wait
09:46 mire joined #mojo
10:00 x86 ugh
10:00 x86 the problem was that hypnotoad was already running lmao
10:21 GitHub78 joined #mojo
10:21 GitHub78 [mojo] kraih pushed 1 new commit to master: http://git.io/zJkAuw
10:21 GitHub78 [mojo/master] added r function to ojo (closes #339) - Sebastian Riedel
10:21 GitHub78 left #mojo
10:34 daxim joined #mojo
10:36 geira joined #mojo
10:44 MichaelRpdx joined #mojo
10:54 sri https://github.com/kraih/mojo/pull/339 # any opinions on the j function?
11:02 sri what if we allowed "use Mojo::JSON 'j';"
11:02 sri and the j() function would encode arrayref and hashref arguments, and decode everything else
11:03 sri it would also die on errors
11:03 marcus I don't like that.
11:04 marcus would prefer to support exporting encode and decode with those properties then.
11:06 sri ok, that defeats the purpose ;p
11:07 marcus I don't like the ::ojo api leaking into other modules.
11:07 sri it's more the other way around
11:07 sri use Mojo::ByteStream 'b'; was first
11:08 sri things like g() will never go into Mojo::UserAgent, singletons and so on... but Mojo::ByteStream, Mojo::Collection, Mojo::JSON are harmless
11:09 marcus mostly harmless
11:09 marcus :)
11:09 sri oh well, i don't think we'll find a good api for j() in ojo
11:10 marcus I don't think it's equivalent to Mojo::DOM anyways.
11:10 sri not at all
11:10 sri DOM is one way only
11:11 sri DOM also doesn't care about errors
11:33 sri marcus: but you think a j() function would be useful?
11:33 sri (in ojo)
11:34 sri it would be 7 additional lines to maintain
11:35 andrefs joined #mojo
11:42 laouji joined #mojo
11:50 pau4o joined #mojo
11:52 marcus sri: I guess it would be.
12:26 GitHub146 joined #mojo
12:26 GitHub146 [mojo] kraih pushed 1 new commit to master: http://git.io/Ls-hfQ
12:26 GitHub146 [mojo/master] added j function to ojo (closes #339) - Sebastian Riedel
12:26 GitHub146 left #mojo
12:28 niczero joined #mojo
12:31 sri perl -Mojo -E 'say j({foo => 'bar'})'
12:33 sri perl -Mojo -E 'say j("[1, 2]")->[1]'
12:33 sri that's as close to x() as it gets
12:40 andrefs joined #mojo
12:44 gryphon joined #mojo
12:46 tetraodontidae joined #mojo
13:03 tetraodo1tidae joined #mojo
13:07 CromeDome joined #mojo
13:10 Psyche^ joined #mojo
13:16 marcus soo much punctuation
13:16 marcus :)
13:23 jnap joined #mojo
13:34 jnap_ joined #mojo
13:35 preflex_ joined #mojo
13:36 korshak joined #mojo
13:37 kthakore_ joined #mojo
13:37 sh4 joined #mojo
13:37 inokenty joined #mojo
13:37 lungchin1 joined #mojo
13:38 espen_ joined #mojo
13:39 tholen42 joined #mojo
13:40 _sri joined #mojo
13:40 Debolaz[Lo] joined #mojo
13:41 smpb joined #mojo
13:43 janliesendahl_de joined #mojo
13:43 JiYu joined #mojo
13:43 Annihitek joined #mojo
13:43 dbr joined #mojo
13:44 zivester joined #mojo
13:49 mire joined #mojo
13:51 niczero My current project task is to codereview a list of banned words to go into a db table
13:51 ovnimancer joined #mojo
13:52 zivester joined #mojo
13:53 daxim if they don't include shit, piss, fuck, cunt, cocksucker, motherfucker and tits, then I'm going to be disappointed
13:56 niczero it also includes many anticipated spelling variations
13:56 niczero but you can easily dodge the simplistic matcher by putting an accent on a char
13:58 abhishekisnot joined #mojo
14:01 stephan48 joined #mojo
14:04 stephan48 what was that?
14:07 Netfeed daxim: the other seems off
14:07 tetraodontidae joined #mojo
14:07 Netfeed or i might be misstaken, sounds better when you read it out loud
14:17 Leandr joined #mojo
14:25 daxim stephan48, http://enwp.org/Seven_dirty_words
14:38 zivester joined #mojo
14:45 andrefs joined #mojo
15:32 d4rkie joined #mojo
15:46 inokenty joined #mojo
15:50 trone_ joined #mojo
15:53 * sri wonders if $ua->plugin('Gzip') would make sense
15:59 knshaum joined #mojo
16:22 edenc joined #mojo
16:27 spaceships joined #mojo
16:42 sri i guess not
16:52 diegok sri: why?
16:53 sri diegok: i can't think of many use cases
16:53 diegok me neither :-/
16:53 sri if we don't find at least a dozen it makes no sense
16:53 diegok and I'm ok with my actual method...
16:54 sri i would expect at least 5-6 example plugins in core
16:54 diegok another would be 'Cached'
16:56 diegok 'Gzip', 'Cached' and 'Timed' is all I can think of...
16:58 mike_ joined #mojo
17:00 mike_ joined #mojo
17:01 BinGOs joined #mojo
17:26 mire joined #mojo
17:32 tempire the keyboard embedded into the ms surface cover is pretty neat
17:33 * tempire wonders how no one has thought of that before
17:33 edenc lots of people thought about it, I know at least two, they never got 'round to executing it though ;)
17:34 sri it sucks to type on that
17:44 rem_lex joined #mojo
17:45 Foxcool joined #mojo
17:47 loy joined #mojo
17:54 garu joined #mojo
17:57 alnewkirk tempire: you're on tv
17:58 tempire \o/
17:58 alnewkirk thats a mighty fine beard you got there :)
17:59 scruffy joined #mojo
18:06 mirc725 joined #mojo
18:09 alnewkirk damn tempire, pretty awesome presentation
18:10 alnewkirk wow
18:10 alnewkirk even the talk was purty
18:12 migo joined #mojo
18:34 tempire alnewkirk: thanks
18:35 sri diegok: gzip and cache are not even good examples for core plugins :S
18:35 sri timer is a bit poor too
18:43 alnewkirk tempire: np
18:46 CromeDome joined #mojo
18:59 jnap joined #mojo
19:13 kthakore_ hey guys
19:14 kthakore_ I am sending a json object in a request but I am not seeing it in $self->req->param of the callback
19:14 kthakore_ where does the json go?
19:15 tempire $self->req->json
19:15 tempire http://mojolicio.us/perldoc/Mojo/Message
19:16 kthakore_ tempire: thanks!
19:38 sri hmm
19:39 * sri starts to actually learn python
19:40 sri my first st2 plugin almost works
19:43 tempire rock on.  while you're at it, add ep support to pygments
19:47 sri pretty sure some of the apis are broken though :(
19:49 spaceships joined #mojo
20:10 jnap joined #mojo
20:19 sshaw joined #mojo
20:31 marcus sri: ntlm plugin? :)
20:31 marcus sri: lolcat plugin.
20:31 marcus that would be good for core :p
20:31 batman any idea of a password generator module which is *safe*?
20:35 sri batman: http://blog.thewaterdish.com.sg/wp-co​ntent/uploads/2011/01/ComputerCat.jpg
20:38 batman :D
20:50 sshaw shouldn't concating ByteStreams return a ByteStream?
20:51 sshaw b(b($x).b($y))
20:55 sshaw or b(link_to() . tag('span', sub { ..  }))
20:55 sshaw somewhat redundant
20:57 sshaw as they're already "safe"
21:14 russum joined #mojo
21:21 perlite joined #mojo
21:27 brambles joined #mojo
21:27 jwang joined #mojo
21:41 jnap_ joined #mojo
21:42 jnap_ joined #mojo
21:51 lukep joined #mojo
22:02 andrefs joined #mojo
22:03 jnap joined #mojo
22:28 sri marcus: authentication plugins are problematic btw. since they can require multiple roundtrips
22:28 sri which is something we don't have an api for
22:58 jventer joined #mojo
23:00 jnap joined #mojo
23:20 memowe joined #mojo
23:27 jventer left #mojo

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