Camelia, the Perl 6 bug

IRC log for #mojo, 2012-08-14

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

All times shown according to UTC.

Time Nick Message
00:10 jmmills joined #mojo
00:36 SmokeMachine_ joined #mojo
00:55 nich0s left #mojo
01:04 laouji joined #mojo
01:06 perlite joined #mojo
01:47 scott joined #mojo
01:48 zivester joined #mojo
01:53 xaka1 joined #mojo
01:59 d4rkie joined #mojo
02:38 Psyche^ joined #mojo
02:55 noganex_ joined #mojo
03:12 arpadszasz joined #mojo
03:18 krism joined #mojo
04:46 gabiruh joined #mojo
05:10 Britzel joined #mojo
05:55 jeen joined #mojo
05:56 spleenjack joined #mojo
06:27 espent joined #mojo
06:49 batman joined #mojo
06:56 Vandal joined #mojo
07:07 kmx joined #mojo
07:10 ovnimancer joined #mojo
07:37 taryk joined #mojo
07:44 taryk joined #mojo
08:05 scott joined #mojo
08:19 espen joined #mojo
08:35 espen joined #mojo
08:43 * sri wonders which editor will become usable first... ST2 or TM2
08:44 spiros ST2 probably - TM2 is cursed by the gods
08:44 sri TM2 got tons of bug fixes during the last few days, ST2 seems to have stalled now
08:46 marcus yeah, it's a tough call.
08:46 sri TM2 is almost usable, just tons of annoying bugs... while ST2 lacks features like search in project
08:48 * sri depends so much on search in project
08:49 sri ack.vim sucks too
08:50 cosmincx joined #mojo
08:51 marcus yeah, the search in project in TM2 is pretty awesome
08:51 marcus much better than the one in TM1 too
08:51 * sri nods
08:51 marcus #textmate has become a really busy place too
08:52 marcus sri: now that it's open source, are we going to get our bundle in there? :)
08:52 sri you tell me :)
08:52 sri i think bundles are still maintained somewhere else though
08:53 sri also +1 my latest issue ;p https://github.com/textmate/textmate/issues/117
08:54 sri SAVE THE WINDOWS!
09:00 marcus sri: also, great that you got #24 implemented
09:01 marcus I think I'm actually going to build from source to get that.
09:03 marcus oh, it's actually in the released build
09:12 marcus sri: btw, slowing down the mojolicious release cycle maybe? several releases a day seems a bit crazy.
09:14 sri yea, #24 was the one that annoyed me most
09:14 sri well, i like a fast release cycle when working on tests
09:16 marcus just for the smoking?
09:16 sri i should be done with that now though, from 58s down to 44s here \o/
09:16 marcus yay
09:17 sri yea, mostly for smoking
09:18 sri smokers don't find everything though, people pop up pretty quickly when i mess up a release :D
09:18 sri especially windows users, they only show up when things go wrong
09:22 fhelmber_ joined #mojo
09:25 mire joined #mojo
09:32 GitHub176 joined #mojo
09:32 GitHub176 [mojo] marcusramberg pushed 1 new commit to master: http://git.io/gb-BJA
09:32 GitHub176 [mojo/master] More useful doc for TE method - Marcus Ramberg
09:32 GitHub176 left #mojo
09:32 marcus self-referring documentation is self-referring.
09:33 rem_lex|pivo joined #mojo
09:34 sri marcus: umm, that's false
09:34 marcus oh?
09:34 sri the header is called TE
09:35 sri Transfer-Encoding is for applied encoding and TE for available
09:36 marcus ok, I'll fix it.
09:40 GitHub85 joined #mojo
09:40 GitHub85 [mojo] marcusramberg pushed 1 new commit to master: http://git.io/EecqwQ
09:40 GitHub85 [mojo/master] Fix previous stupidity - Marcus Ramberg
09:40 GitHub85 left #mojo
09:44 Andrei666 joined #mojo
10:29 sri marcus: why should we explain the headers anyway?
10:30 GitHub104 joined #mojo
10:30 GitHub104 [mojo] kraih pushed 1 new commit to master: http://git.io/olG82A
10:30 GitHub104 [mojo/master] refer to RFC for header descriptions - Sebastian Riedel
10:30 GitHub104 left #mojo
10:36 GitHub101 joined #mojo
10:36 GitHub101 [mojo] kraih pushed 1 new commit to master: http://git.io/5dNrCQ
10:36 GitHub101 [mojo/master] better synopsis example for Mojo::Headers - Sebastian Riedel
10:36 GitHub101 left #mojo
10:38 sri those commits are gonna cost watchers again :S
10:39 sri we should not do any tiny documentation commits, just bundle them with bigger ones
10:54 stephan48 tbh? just dont care
10:55 stephan48 if you care about that type of watchers you are absolutely doing it wrong..
10:57 sri no, you're doing it wrong, not scaring away "that kind of watcher" is good marketing
11:00 spiros I would assume watchers are prepared to receive the updates - people who dont want them could just "star" it.
11:02 sri actually that's true, all watchers have been turned into stars with the update
11:02 sri so there should be nothing to worry about anymore
11:05 daxim joined #mojo
11:09 Lucas1 joined #mojo
11:11 nv joined #mojo
11:45 crab urgh
11:45 alexeiras joined #mojo
11:46 andrefs joined #mojo
11:46 nv argl
11:51 sri \o\
11:51 sri /o/
11:55 nv I have a websocket object in my main front controller (where I define routes) .. how can make it know about the session ?
11:56 nv i mean, the session my controllers deal with, i have no session "object"
11:56 JiYu does someone got a complete example for a minimal mojo plugin? somehow I don't get it where to start. where to create the files, how to invoke them...
11:58 sri mojo generate plugin Foo
11:59 SmokeMachine joined #mojo
12:03 JiYu thx sri
12:10 nv i tried something like PWX::MyController->checkSession but the function always tells me the session var i check is undefined (I know it is by the way) .. I also tried by making "my $ctrl=myController->new; $ctrl->checkSession"
12:10 nv any idea?
12:13 berov joined #mojo
12:15 bc547 I tried is the code on https://github.com/kraih/mojo/wiki/Writi​ng-websocket-chat-using-Mojolicious-Lite ("Websocket server with Perl ... Mojolicious::Lite") supposed to work?
12:15 bc547 s/I tried//
12:16 sri that code seems outdated, you might have to replace a few method calls with newer ones
12:16 bc547 I get "[Tue Aug 14 14:15:44 2012] [error] Can't locate object method "receive_message" via package "Mojolicious::Controller" at server.pl line 10."
12:16 sri yea, that method doesn't exist anymore
12:18 Britzel joined #mojo
12:26 nicolasbd sri please help me
12:26 nicolasbd ~o~
12:27 sri poking me is not a good way to get help, better just rephrase your question so that someone might understand it
12:28 nicolasbd huh, okay sorry
12:29 nicolasbd I'm using a websocket, but in my function on("message"=>sub{ *here* }); I don't how to get a session var
12:32 sri sessions are HTTP, not WebSocket
12:35 berov "sessions are HTTP, not WebSocket" is there an equivalent for session then?
12:35 berov just qurious...
12:35 nicolasbd so there is no way for the websocket to know if user is logged in ?
12:39 sri the WebSocket handshake is HTTP
12:41 sri and no, there is no equivalent, WebSockets are closer to raw sockets than HTTP
12:41 sri it's a transport layer, you make your own semantics
12:50 nicolasbd but from a simple $r->websocket("/") route, how can access/deal at the handshake instant ?
12:51 sri rephrase that question
12:52 nicolasbd well, for now, my socket function is packed in a route like that : $r->websocket('/ws')->to(cb=>sub{      my $self=shift;       $self->on(       message=> sub { *I Work Here* }       });
12:53 nicolasbd and my client always make kind of a "ping" to the server, and I want it to check if the user is still logged in, and send the result (true or false or slenderman) to the client
12:54 sri you can't do that
12:54 nicolasbd \o/
12:58 nicolasbd so, I will do the reverse thing : every function that check if user is logged in will use the websocket to send a message to the client if it's expired
13:00 sri just don't forget to use a backend message bus like redis, or that won't work with hypnotoad
13:01 sri websocket might be in a different process than the incoming requests
13:01 nicolasbd i have no clue what it means but i'll dig it
13:01 nicolasbd okay, thanks .. i get the idea
13:19 spiros Is there a guide or something on moving from a traditional 3-tier Apache/mod_perl architecture to MVC/Mojolicous?
13:23 CromeDome joined #mojo
13:27 fhelmber_ joined #mojo
13:34 jnap joined #mojo
13:43 gryphon joined #mojo
13:46 inokenty joined #mojo
13:53 CromeDome joined #mojo
14:01 CromeDome joined #mojo
14:08 CromeDome joined #mojo
14:24 Britzel_ joined #mojo
14:37 alester joined #mojo
14:49 garu spiros: if you find it, let us know :)
14:49 xxtjaxx_ sri: Hey I've created a boilerplate example for Mojolicious implementing H5BP want to include it in the wiki?
14:50 * garu just pushed a new version of MojoX::Renderer::Haml to CPAN o/
14:50 sri xxtjaxx_: it's a wiki, you can include it :)
14:50 sri garu++
15:02 labrown joined #mojo
15:03 garu sri: last night I also updated MojoX::Log::Log4perl :D
15:04 garu sri: I was a bit confused by the tangling of Mojo::Log with the EventEmitter
15:05 garu do I need to emit a logging message? should I?
15:09 sri if you want to be compatible
15:09 garu what does the eventemitter do? I mean, regarding 'the big picture' of a mojo app?
15:10 sri you're basically not supposed to replace the whole logger anymore
15:10 sri you could just app->log->unsubscribe('message')->on(message => sub {...}) from a plugin
15:11 sri the whole default logger is just a subscriber of the message event
15:11 garu hmm
15:12 garu I see. I'll try to make a new version then :)
15:12 sri we are moving away from having entire components replaced to just letting plugins reuse events
15:13 xxtjaxx_ sri: done
15:13 sri so you can for example log to a websocket console somewhere in addition to log4perl
15:13 sri http://mojolicio.us/perldoc/Mojolicious/​Guides/Cookbook#EventSource_web_service
15:13 sri or eventsource
15:14 sri or forward error log message to some web service ;)
15:14 sri *+s
15:14 sri xxtjaxx++
15:17 sri which reminds me... we could make Mojo::EventEmitter a lot more resilient towards memory leaks
15:18 rem_lex joined #mojo
15:18 garu sounds good :)
15:18 sri by storing the callbacks outside of the objects
15:19 garu sri: btw, any quick pointers on how to test if the log extension is working properly with the event emitter?
15:19 sri downside however would be that callbacks can't be inherited via my $new = SubClass->new($old)
15:19 sri garu: subscribe and capture a log message?
15:20 sri http://mojolicio.us/perldoc/Mojo/Log#message
15:20 sri oh, a typo
15:20 garu yeah, sure. I was thinking more on the line of is there a standard way to test this plugged somewhere in Test::Mojo or a particular t/ file I should pay attention to :)
15:22 garu or maybe an updated log extension that would do the right thing
15:22 GitHub48 joined #mojo
15:22 GitHub48 [mojo] kraih pushed 1 new commit to master: http://git.io/XpsNMw
15:22 GitHub48 [mojo/master] fixed Mojo::Log example - Sebastian Riedel
15:22 GitHub48 left #mojo
15:25 GitHub175 joined #mojo
15:25 GitHub175 [mojo] kraih pushed 1 new commit to master: http://git.io/Zgs_uw
15:25 GitHub175 [mojo/master] small Mojo::Log tweaks - Sebastian Riedel
15:25 GitHub175 left #mojo
15:25 sri garu: i'd imagine t/mojo/log.t
15:27 sri https://github.com/kraih/mojo​/blob/master/t/mojo/log.t#L32
15:27 sri that one
15:27 garu yup, found it already :)
15:27 garu thanks!
15:29 sri hmm, now that not everybody is a watcher on github, i guess there is no need to worry about tiny commits anymore \o/
15:45 spiros Hey uhm - something that has been bugging me - are signed cookies invalidated on server restart?
15:46 sri only if the secret changes
15:46 spiros Hm ok
15:47 spiros I will try to create a test for what is happening. I keep getting very many messages on badly signed cookies.
15:58 sri http://washingtondc.craigslis​t.org/doc/eng/3203128244.html # mojolicious job at #11 of fortunes 100 best companies to work for
16:02 xaka1 joined #mojo
16:14 whee relocation:|
16:17 mire joined #mojo
16:22 d4rkie joined #mojo
17:03 rem_lex|pivo joined #mojo
17:13 rem_lex| joined #mojo
17:18 batman joined #mojo
17:22 Leandr joined #mojo
17:35 jwang joined #mojo
17:49 CromeDome joined #mojo
17:55 fhelmber_ joined #mojo
18:03 rem_lex|pivo joined #mojo
18:11 berov joined #mojo
18:15 fhelmber_ joined #mojo
18:32 xaka joined #mojo
18:45 xaka1 joined #mojo
19:07 rem_lex joined #mojo
19:17 tempire whoa
19:18 Psyche^ joined #mojo
19:18 tempire this khanacademy js responsive environment stuff with resig is pretty sweet.
19:18 xaka joined #mojo
19:24 berov left #mojo
19:29 marcus tempire: link?
19:29 tempire blog post with intro video: http://ejohn.org/blog/introducing-khan-cs/
19:29 tempire direct link to content: http://www.khanacademy.org/cs
19:31 tempire responsive example: http://www.youtube.com/watch?v=tygZ2A8r​ytQ&feature=player_embedded#t=366s
19:42 xaka joined #mojo
20:16 vel joined #mojo
20:23 mha joined #mojo
20:25 mha i have a question regarding Application plugins and plugin helpers
20:26 tempire excellent
20:28 mha how do i use helpers defined in another plugin within an Application plugin that is a mojo lite embedded app?
20:52 jnap joined #mojo
21:24 perlite joined #mojo
21:45 lukep joined #mojo
22:00 mire joined #mojo
22:32 nich0s joined #mojo
23:18 dean joined #mojo
23:30 Psyche^ joined #mojo

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