Camelia, the Perl 6 bug

IRC log for #mojo, 2011-05-21

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

All times shown according to UTC.

Time Nick Message
00:04 vel joined #mojo
00:08 ispy_ left #mojo
00:13 ispy_ joined #mojo
01:56 mattastrophe left #mojo
02:47 j3nnn1 left #mojo
03:18 j3nnn1 joined #mojo
03:46 ispy_ left #mojo
03:48 ispy_ joined #mojo
04:05 d4rkie joined #mojo
04:06 D4RK-PH0ENiX left #mojo
04:08 Kulag left #mojo
04:08 Kulag joined #mojo
04:14 Kulag left #mojo
04:14 Kulag joined #mojo
04:26 ispy_ left #mojo
04:34 perlrocks Twitter: "Mojolicious now thought to be wonderful. - Could not reproduce the behavior I wanted to reflow text disappears [Perl code] http://t.co/CTmn4NB" (ja) --purasiibo http://twitter.com/purasiib​o/status/71795886694473728
04:38 Kulag left #mojo
04:38 Kulag joined #mojo
04:48 perlrocks Twitter: "Slug has been further Mojolicious look like a." (ja) --hisaichi5518 http://twitter.com/hisaichi5​518/status/71799536749785088
04:51 j3nnn1 left #mojo
04:55 D4RK-PH0ENiX joined #mojo
04:57 d4rkie left #mojo
05:07 j3nnn1 joined #mojo
05:12 Kulag left #mojo
05:21 trone_ joined #mojo
05:23 Kulag joined #mojo
05:26 trone left #mojo
05:28 d4rkie joined #mojo
05:30 D4RK-PH0ENiX left #mojo
05:33 trone joined #mojo
05:35 Kulag left #mojo
05:35 sh4 joined #mojo
05:38 trone_ left #mojo
05:41 vel left #mojo
06:28 marcus mojolicious looks like a slug?
06:33 trone marcus: _,-._,O_o ?
06:35 marcus trone: just trying to parse the mysterious .jp
06:35 trone marcus: sorry, I'm missing something (what is .jp?)
06:36 marcus trone: http://twitter.com/#!/hisaichi​5518/status/71799536749785088
06:36 marcus trone: .jp => japan
06:37 trone ah ok. :) eheh... I'm working on template .ep … arrr.
08:19 d4rkie left #mojo
08:23 d4rkie joined #mojo
08:27 D4RK-PH0ENiX joined #mojo
08:33 d4rkie left #mojo
08:35 d4rkie joined #mojo
08:37 D4RK-PH0ENiX left #mojo
08:47 D4RK-PH0ENiX joined #mojo
08:49 d4rkie left #mojo
08:58 d4rkie joined #mojo
09:00 D4RK-PH0ENiX left #mojo
09:11 abra joined #mojo
09:14 Foxcool joined #mojo
09:45 D4RK-PH0ENiX joined #mojo
09:47 trone In MyApp, I have a sub in controller MyApp::Cont that want to use a parent method. It's ok access to the MyApp::method from MyApp::Cont using $self->app->method? Other ways? I have some problem with my design? :-/
09:47 d4rkie left #mojo
09:50 moritz calling methods is fine
09:50 moritz whether you have a design problem can't be answered from that short and high-level description
09:52 trone moritz: So, seem ok pass throught ->app-> to call a parent method. This was my problem.
09:52 * moritz can't parse that sentence
09:56 trone moritz: sorry. :-( I didnt know whether to use ->app on MyApp::Cont object was ok to call a MyApp method.
10:02 arthas joined #mojo
10:05 trone moritz: http://paste.debian.net/117534/ Maybe with code is more clear. (I would share the dbhandler among controllers)
10:31 sh4 left #mojo
10:57 trone Maybe I found a better solution: http://paste.debian.net/117538/ wrap with an helper (r.10) the connection sub (r.29), so I call it in the Controller easily (r.52). :-)
11:15 tty234 left #mojo
12:26 Kulag joined #mojo
12:46 j3nnn1 left #mojo
12:48 Akron joined #mojo
12:59 sri did i miss the rapture?
13:00 j3nnn1 joined #mojo
13:22 Akron Don't know. I only know people who have a deadline till october.
13:25 Foxcool left #mojo
13:41 sh4 joined #mojo
13:48 tty234 joined #mojo
14:01 trone After a POST action if I do a redirect the call keep the POST method?
14:05 trone Actually I setted the $self->req->method('GET') before $self->redirect_to() in the Controller action
14:07 sri http doesn't work that way
14:08 sri a followup request is always a fresh get
14:08 sri without any connection to the previous one, besides the url and maybe cookies
14:16 Foxcool joined #mojo
14:16 trone sri: ehm... sorry. You are right. Now it works. Probably I badly saved. :-(
14:36 Foxcool left #mojo
14:47 Foxcool joined #mojo
14:51 minimalist joined #mojo
15:07 Akron left #mojo
15:40 zimmski joined #mojo
15:50 zimmski hi! I'm trying to implement a simple echo websocket application with mojolicious (1.34) but firefox(with websocket enabled) and chrome keep disconnecting immediately. http://pastebin.com/4uWyW83K is it a bug in mojolicious?
15:50 sri zimmski: which mojolicious version?
15:51 zimmski sri: 1.34
15:51 sri and firefox version?
15:51 zimmski 4.0.1
15:51 sri can't work
15:52 sri mojolicious uses the new ietf-07 spec and firefox draft-76
15:53 zimmski Oh ok :) can you recommend a browser?
15:53 sri you would need one of the new Aurora builds with websocket support
15:53 Foxcool left #mojo
15:53 sri jetty has also been updated to ietf-07 (if you want command line tools)
15:54 sri zimmski: http://www.ducksong.com/misc/web​sockets-builds/ws-07/5.0.a2.04/
15:54 sri those are alpha builds from the guy working on websockets for mozilla
15:55 zimmski So ietf-07 is the websocket version which will get implemented in all new browser?
15:55 sri looks like it yea
15:56 sri the protocol spec was in working group last call
15:56 sri and i don't think there were any big issues
15:57 sri think they are just cleaning up details in the spec atm
15:57 zimmski I did not read anything about it in the mojolicious docs?
15:57 sri about what?
15:59 zimmski There is no hint that you need a nightly build browser for websocket to work.
16:00 sri that tends to change all the time
16:00 sri you can't use websockets in production anyway
16:01 sri doesn't seem worth pointing out all the current drawbacks all the time
16:01 sri at this point in time websockets are just a toy
16:02 zimmski Oh I just want to hold a presentation at university how you can use new html5 features. And I thought it would be nice to check out mojolicious
16:02 zimmski Besides my websocket problems I really like it =)
16:02 sri sounds like nightly browser builds are very much on topic then :)
16:04 sri make sure to try MOJO_WEBSOCKET_DEBUG=1
16:04 sri gives some great insights into the protocol
16:06 zimmski Do I have to enable something else too?
16:07 sri if you just want to check that websockets work use "mojo daemon" and connect to http://127.0.0.1/diag/ and click on websockets
16:07 sri *http://127.0.0.1:3000/diag/
16:08 sri there's a simple roundtrip test there
16:08 Foxcool joined #mojo
16:13 zimmski yesss it works
16:14 sri "MOJO_WEBSOCKET_DEBUG=1 mojo daemon" is fun
16:15 sri but i suppose you don't care too much about the protocol :)
16:16 zimmski Well i will dive into it :-)
16:17 sri http://tools.ietf.org/html/draft-​ietf-hybi-thewebsocketprotocol-07 # latest spec
16:17 sri they are basically just changing the wording now, with a bit of luck it's mostly final
16:19 zimmski I will take a closer look for my presentation. Thanks!
16:22 mattp left #mojo
16:22 sri oh, almost forgot
16:22 sri zimmski: the last version with draft-76 support was Mojolicious 1.16
16:23 mattp joined #mojo
16:23 sri you could use that for a demonstration too i guess
16:23 sri http://search.cpan.org/~kraih/Mojolicious-1.16/
16:24 sri i left it on cpan for that purpose actually
16:24 sri there are serious bugs, but for a demonstration it's fine
16:25 zimmski Would be nice, because people in the audience could play with the app while I'm jabbering to myself =)
16:27 sri just don't talk about the protocol then, draft-76 was very amateurish and ugly :)
16:27 zimmski Sorry I've to mention it
16:28 sri compare http://tools.ietf.org/html/draft-hix​ie-thewebsocketprotocol-76#section-4.2 vs http://tools.ietf.org/html/draft-ietf-​hybi-thewebsocketprotocol-07#section-4.2
16:33 marcus sri: any browsers got draft07 support yet?
16:33 sri nightly builds only
16:34 sri even internet explorer though :)
16:34 mattp left #mojo
16:34 sri they are all picking up ietf-07 now
16:36 mattp joined #mojo
16:36 marcus nice
16:37 marcus ie10 self-updates too, right?
16:37 sri prolly not
16:37 sri the firefox update path is also a bit weird
16:38 marcus it's very painless with chrome these days
16:38 sri yea, chrome updates are awesome
16:38 marcus my biggest concern with chrom is that they aren't using native scrollbars.
16:38 marcus which means it's pretty good all in all :)
16:38 marcus chrome
16:38 sri there's also chrome canary for os x now
16:39 marcus what's the difference?
16:39 purl the difference is Epsilon, a number that gets closer to zero the longer you think about it.
16:39 marcus oh, bleeding edge
16:39 purl bleeding edge is more like a gushing, spurting arterial spray edge.
16:39 marcus I need that :)
16:39 sri ;)
16:39 sri 13.0 version
16:40 sri and all yellow logo
16:40 * marcus has almost bought hype
16:41 * sri too
16:41 sri then i noticed how ugly it looked
16:41 vel joined #mojo
16:41 sri never trust ugly design software
16:42 marcus it looks like an ilife app :p
16:42 sri naah, it doesn't look native somehow
16:42 zimmski sri: I looked at both sections. 76 describes what you should do without any information and 07 describes actually a protocol. Is this the main difference?
16:43 sri zimmski: the sad thing is, that *is* actually the draft76 protocol
16:43 sri it only uses a utf8 stream that is delimited with a few token characters
16:44 sri back then there was a requirement, the protocol should be implementable by amateurs
16:45 sri now they've left that behind, and went with a more extendable real protocol
16:48 marcus apart from the icon, I can't tell the difference with canary.
16:48 sri more about:flags options
16:51 marcus ooh, lots of fun there
16:51 marcus Focus existing tab on open
16:51 marcus that must be my favorite so far
16:52 sri think i'm in love with iterm2 now
16:52 sri so much snappier than last time i tried it
16:54 sri looks like all the rough edges are gone
17:00 marcus yeah, I use it too
17:00 marcus I just wish the menu would appear if I hover at the top in fullscreen
17:00 marcus like it does in chrome
17:03 vel left #mojo
17:03 marcus new chrome 3 finger gesture is neat too
17:13 mattp left #mojo
17:14 mattp joined #mojo
17:20 d4rkie joined #mojo
17:22 D4RK-PH0ENiX left #mojo
17:29 dwierenga joined #mojo
17:30 marcus sri: with mojo::dom, can't I use at on the result for an each?
17:30 marcus sri: I tried $res->dom('li')->each(sub { print shift->at('a') }); but it didn't seem like the at was sensitive to the li, and it seems like it reset the dom object;
17:33 sri you can
17:39 sri i don't see how that example could not work
17:39 sri ->dom('li')->each(sub { print $_->at('li > a') })
17:40 sri only something like that could leave the results
17:41 sri since we normally don't generate new trees for every result
17:44 Foxcool left #mojo
17:59 j3nnn1_ joined #mojo
18:01 j3nnn1 left #mojo
18:03 Foxcool joined #mojo
18:06 GitHub88 joined #mojo
18:06 GitHub88 mojo: master Sebastian Riedel * c2d902d (1 files in 1 dirs): added more Mojo::DOM tests - http://bit.ly/mqRETV
18:06 GitHub88 left #mojo
18:06 sri marcus: and there's proof
18:08 sri btw
18:09 sri you can always make it not look upwards the tree by rendering and reparsing the result
18:10 sri ->dom('li')->each(sub { print Mojo::DOM->new->parse("$_")->at('li > a') })
18:10 sri something like that is a lot more expensive though
18:21 crab is there any point adding behind-password corporate sites to the mojo wiki list?
18:22 crab maybe i can't mention it publicly anyway. oh well, i'll just have to complete one or more of my non-work mojo projects and add them instead.
18:22 sri crab: of course there is
18:23 crab why? just to increase the number?
18:23 D4RK-PH0ENiX joined #mojo
18:24 sri to me it is very interesting
18:25 sri don't you think it is interesting that craigslist uses mongodb?
18:25 crab ok, i'll see if they mind being listed. probably they'll have no idea what i even mean.
18:25 d4rkie left #mojo
18:25 crab and i'll ahve to explain to them what is open source.
18:25 sri do you care that it is only for their data warehouse in the background and not the public facing website?
18:28 sri no idea why you would even think about not adding internal corporate usage to the list
18:30 crab i'm a marketing dinosaur.
18:31 crab spiky neck bones and all.
18:32 crab http://www.sparkjava.com/
18:32 sri lol
18:33 * crab giggles helplessly
18:49 D4RK-PH0ENiX left #mojo
18:49 d4rkie joined #mojo
18:51 j3nnn1_ left #mojo
18:54 j3nnn1_ joined #mojo
18:58 sh4 left #mojo
19:14 sri hmm, i really don't like the chrome downloader
19:37 miyagawa OMG http://www.sparkjava.com/why.html is epic
19:37 miyagawa "because we don't have time to learn Ruby"
19:46 zimmski sri: mojolicious 1.16 with websocket works really great, thanks again!
19:56 Foxcool left #mojo
20:00 abra left #mojo
20:33 perlite_ joined #mojo
20:35 D4RK-PH0ENiX joined #mojo
20:37 perlite left #mojo
20:37 perlite_ is now known as perlite
20:37 d4rkie left #mojo
20:48 perlrocks Twitter: "Adding 256 color terminal support to my #vim theme. :) #perl #mojolicious http://t.co/ovZc3qP" --kraih http://twitter.com/kraih/status/72041125837406208
21:38 * marcus just came back from seeing source code
21:41 marcus miyagawa: there should be a 'No really, why?' page as well :)
21:41 marcus sri: you're actually using vim now?
21:42 sri sometimes
21:42 sri mostly still textmate though
21:43 marcus same for me
21:44 marcus been thinking of trying bbedit
21:46 marcus maybe not. seems bbedit has no cmd-t open quickly equivalent
22:17 arpadszasz joined #mojo
22:27 sh4 joined #mojo
22:31 crab is it time for velocirapture yet?
22:40 sh4 left #mojo
22:46 sri i think you missed it
23:02 Akron joined #mojo
23:02 mattastrophe joined #mojo
23:11 arpadszasz left #mojo
23:12 crab you're right. i don't see a single velociraptor around...
23:12 perlrocks Twitter: "MOJO TaGO Truck headed to Hudson Street Hooligans right now.  Corner of Oakland and Summit.  Open by 8pm.  Mojolicious." --mojotago http://twitter.com/mojotag​o/status/72077321821106177
23:17 d4rkie joined #mojo
23:19 D4RK-PH0ENiX left #mojo
23:53 GitHub1 joined #mojo
23:53 GitHub1 mojo: master Sebastian Riedel * 719b2b6 (3 files in 3 dirs): fixed nested selector bug in Mojo::DOM - http://bit.ly/jbALPz
23:53 GitHub1 left #mojo
23:53 sri marcus: ok, nested selectors should be more predictable now
23:54 sri as in only search inside the current result
23:56 sri searching higher up the tree makes sense from an implementation point of view, but can be quite confusing from the user perspective i guess
23:57 Akron_ joined #mojo

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