Camelia, the Perl 6 bug

IRC log for #mojo, 2012-05-15

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

All times shown according to UTC.

Time Nick Message
01:04 scott joined #mojo
01:43 xaka joined #mojo
01:57 d4rkie joined #mojo
02:31 mire joined #mojo
03:18 angelixd hey, quck question.  I'm trying out mojolicious for the first time here, and trying to get a handle on how to use Mojolicious::Plugin::Config
03:19 angelixd what is the correct incantation for, say, accessing the config while inside a controller?
03:24 angelixd my immediate instinct is to look at $self->app->plugin('config'); but then since I'min a controller, it looks for something in Commands.pm.conf
03:25 angelixd is the correct way to go about this to creat an attribute on $app and load it there for use by external resources?
03:34 mire joined #mojo
03:57 tempire $self->config('myconfigvar')
04:20 cfmweston joined #mojo
04:21 cfmweston has anybody here worked with DBIx::Class for their Models?
04:22 cfmweston left #mojo
04:22 sri Akron: i can't replicate your example in master
04:24 sri could have been a bug that was fixed with the addition of Mojo::Path->merge
04:59 scott joined #mojo
05:27 Foxcool joined #mojo
05:42 tempire reminder to those paying attention: when people ask about DBIx::Class usage, just send them to http://mojoexample.herokuapp.com/
05:43 tempire also added to Database support section in wiki
06:08 GitHub182 joined #mojo
06:08 GitHub182 [mojo] amenonsen pushed 1 new commit to master: http://git.io/inS2Lg
06:08 GitHub182 [mojo/master] Less awkward wording - Abhijit Menon-Sen
06:08 GitHub182 left #mojo
06:14 AmeliePoulain joined #mojo
06:20 lukep joined #mojo
06:49 kenjiskywalker joined #mojo
06:49 fhelmber_ joined #mojo
06:55 kenjiskywalker_ joined #mojo
07:00 Vandal joined #mojo
07:04 cosmincx joined #mojo
07:17 ladnaV joined #mojo
07:18 batman joined #mojo
07:25 spleenjack joined #mojo
07:37 Leandr joined #mojo
07:42 mattastrophe joined #mojo
07:44 estrai morning
07:46 estrai is there a way to create a builder method when using Mojo::Base? I'm now doing that in the constructor but that doesn't look nice
07:46 estrai what I need is pretty much the same as Moose's builder
07:46 estrai (or lazy=>1)
07:52 tempire estrai: That's not what Mojo::Base is for.  If you need that functionality, just use Moose or Mouse or Moo
07:53 tempire moooooo
07:55 estrai thanks, I'm trying to do as much as I can in Mojo* (for fun, not a real requirement)
07:57 estrai hmm, but Moo is worth a try
08:08 pau4o joined #mojo
08:16 daxim joined #mojo
08:24 preflex joined #mojo
08:24 alexeiras joined #mojo
09:14 lukep joined #mojo
09:20 dotan_ joined #mojo
09:20 ver joined #mojo
11:00 perlite joined #mojo
11:42 taryk joined #mojo
11:49 ryozi joined #mojo
12:03 batman joined #mojo
12:08 d4rkie joined #mojo
12:14 AmeliePoulain joined #mojo
12:18 rem_lex joined #mojo
12:35 Akron joined #mojo
12:36 Akron sri: I just tested it with the recent cpan version.
13:01 amirite joined #mojo
13:02 amirite how do I get json posted in ?
13:02 amirite i.e. i'm sending in my post content a json encoded object
13:02 amirite how do i read it from mojo?
13:05 amirite anyone
13:06 amirite if it doesn't exist just tell me
13:06 Psyche^ joined #mojo
13:07 Akron amirite: Maybe there is a json-helper anywhere, but I think, instantiating a new Mojo::JSON object is simple enough.
13:07 amirite thanks akron
13:07 amirite found the response in a google group, Mojo::JSON->decode( $self->req->body )
13:07 amirite that's what i wanted to know
13:08 Akron That's it.
13:09 Akron amirite: However if you need to do it in a lot of controller methods, implementing a helper for it is pretty simple.
13:17 andrefs joined #mojo
13:24 jnap joined #mojo
13:29 sri Akron: cpan version is irrelevant
13:41 Akron sri: :)
13:46 vel joined #mojo
13:54 jbert joined #mojo
13:55 sri https://openshift.redhat.com/app/ # moar cloud hosting
13:58 jbert hi. I'm trying to use mojo for a special-purpose http proxy (one input PUT maps to 2x output PUT). plan is to:
13:58 jbert - hook req->content->body in the after_build_tx (so I get double-callback behaviour)
13:58 jbert - in my put handler, hook 'read' on req->content
13:58 jbert - in read handler, establish outbound mojo.ua to my PUT destinations
13:58 jbert conceptual problem: how do I handle throttling? I'd like to trigger a write on each outbound UA whenever read event fires, but it's clear that the outbound UA might be choking. Can anyone suggest a good model to follow?
14:10 jbert (one goal is to avoid buffering in memory if writer is slow. Can I throttle reads?)
15:51 sri hmm
15:51 sri https://github.com/kraih/mojo/commit/38​c62e815079b928a55997e1aa9d0001fc5a1b0f # i don't really get this
15:53 pau4o left #mojo
15:59 GitHub1 joined #mojo
15:59 GitHub1 [mojo] kraih pushed 1 new commit to master: http://git.io/a3lN7A
15:59 GitHub1 [mojo/master] removed description from Changes file - Sebastian Riedel
15:59 GitHub1 left #mojo
16:03 xaka joined #mojo
16:19 inokenty joined #mojo
16:21 Leandr joined #mojo
16:26 CromeDome joined #mojo
16:51 batman joined #mojo
17:43 fibo joined #mojo
17:56 angelixd I'm trying to strip down a controller and make a model class in Mojolicious that has knowledge of the Mojolicious app; i.e., access to {log,app,home} attributes for managing assets (I'm generating .png files I'd like to drop in public/). Is there a base class I can inherit from that will auto-populate these attributes for me, or should I just have this class do 'use Mojo::Base;' and then pass in the attributes I want?
18:10 andrefs joined #mojo
18:21 jbert left #mojo
18:35 CromeDome joined #mojo
19:03 tempire I tried openshift the other day
19:03 tempire the documentation is ugly
19:04 tempire I'm not sure how to get the daemon running
19:04 tempire sri: you're on the openshift page
19:04 tempire famous!
19:12 angelixd tempire: thanks for the help last night, btw
19:13 tempire your welcome
19:13 tempire for whatever I did
19:13 angelixd pointed out how to use M:P:Config app-side
19:47 rem_lex|pivo joined #mojo
19:48 mire joined #mojo
19:54 andrefs joined #mojo
20:00 mire joined #mojo
20:06 alexeiras joined #mojo
20:11 hide if I'm understanding this now, the bridge is occurring before the route, and the path hasn't been parsed into params yet, so that's why it's not available within the bridge code
20:11 hide can I make a bridge with a parameter?
20:11 mire joined #mojo
20:13 hide yes, yes I can. *SIGH*
20:35 snailfromhu joined #mojo
20:36 tempire dernit.
20:36 tempire openshift
20:36 tempire !!
20:36 snailfromhu hey guys, any idea why the route below is not working?
20:36 tempire can't seem to make cpanm happy
20:36 snailfromhu https://gist.github.com/2704917
20:39 tempire snailfromhu: make an executable lite app that I can quickly run, with that example the url you're using against it
20:39 tempire and I'll see what I can see
20:42 tempire oh, I see
20:42 tempire you're using the lite route like a full route
20:42 snailfromhu here is the sample script https://gist.github.com/2704979
20:42 snailfromhu yep, thats what I'm doing, is this wrong?
20:43 tempire http://mojolicious.org/perldoc/Mojol​icious/Lite#Restrictive_placeholders
20:48 snailfromhu @tempire gotcha
20:49 snailfromhu now how can I make sure my regexp is matching the beginning of a line when I'm not able to use ^?
20:50 snailfromhu can I take that for granted?
21:00 xaka joined #mojo
21:37 lukep joined #mojo
22:04 ispeak joined #mojo
22:07 rem_lex|pivo joined #mojo

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