Camelia, the Perl 6 bug

IRC log for #mojo, 2012-10-03

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

All times shown according to UTC.

Time Nick Message
00:00 henq joined #mojo
01:08 laouji joined #mojo
01:12 mandreacchio joined #mojo
01:59 d4rkie joined #mojo
02:03 ObseLeTe joined #mojo
02:10 asarch joined #mojo
02:28 noganex_ joined #mojo
02:42 mandreacchio joined #mojo
03:30 Foxcool joined #mojo
04:07 mandreacchio joined #mojo
04:53 mandreacchio joined #mojo
05:26 AmeliePoulain joined #mojo
05:43 yko joined #mojo
06:08 spleenjack joined #mojo
06:25 Vandal joined #mojo
06:34 mandreacchio joined #mojo
06:54 Britzel joined #mojo
07:01 ovnimancer joined #mojo
07:19 davido joined #mojo
07:35 pau4o joined #mojo
07:53 mandreacchio_ joined #mojo
07:53 davido joined #mojo
07:56 xaka joined #mojo
08:02 davido tempire: I'd buy the book. ;)  For me the biggest uphill battle at first was understanding routing, placeholders, how they match, how they translate to controllers and actions, etc.  I also think that it would be helpful to broaden the scope a little beyond where the POD leaves off: More discussion on how Mojolicious fits into the landscape of solving real problems, rather than only a focus on how to do exactly x or y with Mojolicious.  (
08:02 davido Does that make sense?)
08:07 dross davido: I'm sure it will be on ebookee and on torrent sites the moment it's released ;)
08:08 bobkare A good introduction to event-based programming and how that's done in Mojo would also be nice
08:10 dross I'd say people should crowdsource a book, but many have different degrees of writing.
08:10 davido Pro Git seems like a reasonably successful attempt at getting "the community" involved in the product.
08:13 dross davido: the problem with crowdsourced books is the style. When I'm reading a book I expect a certain degree of consistency.
08:13 dross I've read quite a few books, I update myself often. The more authors there are in a book, the less self references to other chapters happen
08:14 dross if I'm reading a book, I want references to preceding chapters. I'm a devop, I subject hop.
08:15 davido I agree.  Perhaps primary contributors would push to individual branches that one editor could rework before merging.  I'm not sure exactly how the workflow would go, but it does seem to me that there would need to be one person responsible for assimilating content.
08:15 dross I don't think I've ever read a tech book from start to finish, though I also speed read.
08:15 dross davido: well, there definitely needs to be some mojo books
08:15 davido I'm constantly reading.
08:16 dross davido: regardless of a person being leet enough, popularity requires the succesion of common IT folk to read
08:16 dross read, understand, do stuff
09:08 mandreacchio joined #mojo
09:11 mandreacchio_ joined #mojo
09:11 mandreacchio joined #mojo
09:51 daxim joined #mojo
10:05 heytrav what do I need to pass to url_for to generate  a uri with https and not http?
10:07 daxim untested:  …->url_for(…)->scheme('https');
10:08 heytrav tried that with ->url_for('/login')->scheme('https'); ended up with https://login
10:09 heytrav not https://domain.com/login
10:19 tempire heytrav: ->url_for('/login')->to_abs->scheme('https')
10:22 heytrav tempire: that did it. Thanks!
10:29 Foxcool_ joined #mojo
11:09 Lucas1 joined #mojo
11:11 ObseLeTe joined #mojo
11:15 andrefs joined #mojo
11:15 fhelmber_ joined #mojo
11:19 dpetrov_ joined #mojo
11:23 sunson joined #mojo
11:23 sunson is the mojocasts.com code available somewhere?
11:28 Britzel_ joined #mojo
11:36 cosmincx joined #mojo
11:40 marcus sunson: seemingly not.
11:47 sunson marcus: I'd very much like to understand how the "seek to video" and the flash player integration is done... and attempt to turn that into a plugin of use :) annotations on videos / seeking into videos will be kickass!
12:08 marcus sunson: I'm sure tempire will oblige.
12:08 marcus it's so lonely here when sri is cruisin' :-/
12:08 marcus guess they don't have internets on his boat.
12:34 d4rkie joined #mojo
12:44 nicomen what's the best way to set up a request wide available variable (but not having to do it in every controller)?
12:50 gryphon joined #mojo
12:54 sunson nicomen: using an 'under sub' is one way.
12:54 sunson nicomen: or session?
12:54 purl i think session is POE's equivalent of a process or thread.
12:54 nicomen not session
12:55 nicomen sunson: and where to store it?
13:06 sunson nicomen: ... err... in a variable?
13:06 bjoernfan Has anyone got a spec file for Mojolicious? Or is there a hidden command somewhere to generate one?
13:06 sunson bjoernfan: mojo generate lite_app myapp
13:07 sunson bjoernfan: or mojo generate app myapp
13:07 daxim that's not a spec file.
13:07 bjoernfan sunson: Don't think that's what I want. :)
13:07 bjoernfan I need a RPM .spec file for creating a RPM out of Mojolicious.
13:07 sunson nicomen: like "under sub { shift->stash('myvar', 'myvalue'); };"
13:08 sunson nicomen: but you asked "for each controller"? I'm not sure what you meant by that... I'm happy with lite apps ;)
13:08 daxim bjoernfan, try cpanspec, it ought to work
13:08 bjoernfan daxim: I'll check that out, thank you.
13:09 daxim if you want to base your specfile on an existing one, extract it from http://download.opensuse.org/repositori​es/devel:/languages:/perl/openSUSE_12.2​/src/perl-Mojolicious-2.40-1.1.src.rpm
13:10 bjoernfan Great, thanks.
13:10 nicomen sunson: so you need to access it with $self->stash->{myvar} later?
13:11 nicomen I was looking for an equivalent of "has" or "plugin" for requests
13:14 sunson nicomen: yes
13:14 jnap joined #mojo
13:21 marcus nicomen: defaults?
13:21 purl defaults is easier to read later
13:21 nicomen yeah true, still accessed as a hashref ;-/
13:21 nicomen but fair enough
13:22 marcus $app->defaults({foo => 'bar'});  $self-stash('foo')
13:29 fhelmber_ joined #mojo
13:33 kitt_vl joined #mojo
13:44 nicomen I think we settled on $app->helper('request_instance') = sub { $self->stash->{'request_instance'} ||= get_new_instance(); } for some $self->request_instance niceness
13:44 nicomen I think we settled on $app->helper('request_instance', sub { $self->stash->{'request_instance'} ||= get_new_instance(); }); for some $self->request_instance niceness
14:02 Jason_ joined #mojo
14:10 d4rkie joined #mojo
14:14 Coff joined #mojo
14:29 inokenty joined #mojo
14:31 bluescreen joined #mojo
14:37 knshaum joined #mojo
15:05 jmaister joined #mojo
15:30 motoboi joined #mojo
15:30 jnap joined #mojo
15:38 sn0rri joined #mojo
15:43 Foxcool joined #mojo
15:47 rem_lex|pivo joined #mojo
15:52 njlg joined #mojo
15:55 xaka joined #mojo
16:00 jnap joined #mojo
16:12 Foxcool_ joined #mojo
16:16 Coff joined #mojo
16:19 sh4 joined #mojo
16:40 jnap joined #mojo
16:58 sn0rri joined #mojo
17:02 Leandr joined #mojo
17:05 sn0rri left #mojo
17:11 xaka joined #mojo
17:42 andrefs joined #mojo
17:46 andrefs joined #mojo
17:49 andrefs joined #mojo
17:52 andrefs joined #mojo
17:56 andrefs joined #mojo
17:56 andrefs joined #mojo
17:58 andrefs joined #mojo
18:01 andrefs joined #mojo
18:03 andrefs joined #mojo
18:05 andrefs joined #mojo
18:07 andrefs joined #mojo
18:14 andrefs joined #mojo
18:17 andrefs joined #mojo
18:17 andrefs joined #mojo
18:18 andrefs joined #mojo
18:19 andrefs joined #mojo
18:23 andrefs joined #mojo
18:23 andrefs joined #mojo
18:25 andrefs joined #mojo
18:25 andrefs joined #mojo
18:26 andrefs joined #mojo
18:26 andrefs joined #mojo
18:27 andrefs joined #mojo
18:27 andrefs joined #mojo
18:30 andrefs joined #mojo
18:30 andrefs joined #mojo
18:31 henq joined #mojo
18:33 andrefs joined #mojo
18:34 andrefs joined #mojo
18:37 abra joined #mojo
18:38 andrefs joined #mojo
18:52 andrefs joined #mojo
18:57 andrefs joined #mojo
18:57 andrefs joined #mojo
18:59 andrefs joined #mojo
19:00 tempire sri's on a boat!
19:00 tempire international waters - no rights protection
19:01 andrefs joined #mojo
19:04 andrefs joined #mojo
19:04 batman i wonder if andrefs has issues with the internet connection.... ... .. .
19:13 tempire maybe he's just indecisive
19:16 batman :)
19:29 ghandi joined #mojo
19:46 mandreacchio joined #mojo
19:53 ObseLeTe joined #mojo
20:14 xaka joined #mojo
20:20 Coff joined #mojo
20:33 andrefs batman: not the internet connection, just the irc client :(
20:33 henq joined #mojo
20:34 andrefs but it should be fixed now
20:48 gryphon joined #mojo
20:53 bobkare joined #mojo
20:55 Coff joined #mojo
21:00 Coff Today I seriously considered renaming myself to 'Mc WTF-A-Lot'. But then I figured out my bizzare routing problem. Phew!
21:10 bobkare Coff: that really absurd thing you showed me?
21:17 ashleydev joined #mojo
21:29 Coff bobkare: yeah. that one. Lesson learned: be _really_, _really_ careful about where you do $self->app->whateverhelper() and $self->whateverhelper()   (where $self is a controller, app, or some other mojo-object).
21:32 bobkare Ah, right
21:33 bobkare that explains the constructor stuff we saw in the stacktrace
21:33 Coff Apparently, if you somehow end up in a context where your controller or whatever does not know about an 'app', one will be created, but _nothing_ concerning stash, sessions or anything will exist.
21:33 Coff Right. :)
21:34 bobkare the other way around, I think. see documentation of helpers in the Mojolicious class (which is the app object)
21:36 Coff Might be. One of my projects this weekend is to create a minimal working example of this c0ck-up of mine to understand the internals a bit better.
21:36 lukep joined #mojo
21:38 bobkare sounds like a plan. do share the result afterwards!
21:39 tempire ok.  potential theme song for mojolicious http://www.youtube.com/watch?v=​5ZOLTLxX1l4&feature=related
21:41 Coff tempire: I'm not a bronie, but I say GO FOR IT!
21:52 Adurah Do not associate Mojo with... "them"...
22:14 jzawodn joined #mojo
22:22 * marcus is playing with Galileo.
22:22 marcus tempire/crab: alive?
22:22 purl Hello, I'm Laurence Olivier.  I've been dead for over two years, but thanks to the marvelous technology of tape editing, I am able to speak to you from BEYOND THE GRAVE!
22:23 tempire sometimes
22:49 davido joined #mojo
23:19 mandreacchio joined #mojo
23:19 mandreacchio joined #mojo
23:22 zpmorgan joined #mojo

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