Camelia, the Perl 6 bug

IRC log for #mojo, 2012-05-14

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

All times shown according to UTC.

Time Nick Message
00:03 Elraraniel tempire: Just an update - working fine :) Thanks for your help
00:27 tempire great
00:52 Elraraniel left #mojo
01:04 scott joined #mojo
01:06 d4rkie joined #mojo
01:16 bird joined #mojo
02:06 nicedawg joined #mojo
02:15 jnap joined #mojo
02:41 ispy_ joined #mojo
04:15 jnap joined #mojo
05:44 ask joined #mojo
06:17 Foxcool joined #mojo
06:31 fhelmber_ joined #mojo
06:33 Vandal joined #mojo
06:50 AmeliePoulain joined #mojo
06:55 taryk joined #mojo
06:55 pau4o joined #mojo
07:09 spleenjack joined #mojo
07:11 batman joined #mojo
07:22 Leandr joined #mojo
07:24 cosmincx joined #mojo
07:33 * sri yawns
07:34 tempire sri: what do you think are the most confusing things for n00bs when moving from lite to full?
07:34 sri tempire: i'm surprised there's so little confusion
07:34 tempire From what I can tell, it's been mostly about bridge and the location of app
07:35 sri when we get questions it's usually just people new to perl... which is totally fine
07:35 sri location of app?
07:36 tempire app->* in lite, not understanding that it's $self in startup, and $self->app in a controller action
07:36 sri ah, did we get that question from experienced perl programmers too yet?
07:36 tempire no, just earlier by a self-proclaimed beginner
07:40 tempire guess I could ask the mailing list
07:48 snailfromhu joined #mojo
07:49 snailfromhu hey guys
07:49 tempire oh hai
07:49 andrefs joined #mojo
07:50 snailfromhu i'm browsing through the release notes of the last year and i found that before_render hook has been removed. is there anything that provides the same functionality at the moment?
07:53 cosmincx joined #mojo
07:54 sri snailfromhu: define same functionality
07:54 sri everybody agreed in the end that the hook was useless
07:54 snailfromhu the hook is called right before the http headers are sent in the response (i'd like to set cookies in there)
07:55 sri that's not correct
07:55 sri the hook also ran for partial rendering and stuff
07:55 snailfromhu i see
07:56 sri i believe you want after_dispatch
07:56 snailfromhu can i still send cookies in after_dispatch?
07:56 sri yes
07:57 sri in fact, after_dispatch gets emitted right before we set the session cookie
07:59 snailfromhu sounds good, going to try it, thanks for help
08:03 snailfromhu works like charm, thanks again :)
08:03 GitHub25 joined #mojo
08:03 GitHub25 [mojo] kraih pushed 1 new commit to master: http://git.io/yOz97w
08:03 GitHub25 [mojo/master] better description for after_dispatch hook - Sebastian Riedel
08:03 GitHub25 left #mojo
08:32 Leandr joined #mojo
08:54 hugh joined #mojo
08:55 daxim joined #mojo
09:33 batman joined #mojo
09:46 brambles joined #mojo
09:57 cosmincx joined #mojo
10:25 nicedawg joined #mojo
11:16 Akron joined #mojo
11:51 mire joined #mojo
12:29 migo joined #mojo
13:07 jnap joined #mojo
13:10 ispy_ joined #mojo
13:11 Psyche^ joined #mojo
13:13 CromeDome joined #mojo
13:25 batman joined #mojo
13:40 rem_lex| joined #mojo
13:49 jnap joined #mojo
14:16 inokenty joined #mojo
14:31 alexeiras joined #mojo
15:05 mire joined #mojo
15:17 black joined #mojo
15:52 ajmrch joined #mojo
16:14 xaka joined #mojo
16:16 ryozi joined #mojo
16:27 Leandr joined #mojo
16:48 espent joined #mojo
17:00 sri tempire: i guess there are no problems :)
17:00 tempire indeed
17:00 tempire or I've just crossed the line into sri territory
17:00 tempire Y U NO GIVE FEEDBACK
17:00 sri welcome to my world!
17:12 tempire ugh.
17:12 tempire ruby command line tools
17:28 rem_lex| joined #mojo
17:53 rwstauner joined #mojo
17:55 vel joined #mojo
18:01 d4rkie joined #mojo
18:31 sri https://github.com/kraih/mojo/issues/328 # maybe someone else can replicate this?
19:00 Leandr joined #mojo
19:22 sri hmm
19:22 sri are we responsible for mitigating servers jumping around in time?
19:38 estrai is it good practice to add a return after render_not_found in controller?
19:39 estrai I found that it works just fine without it in the browser but when tests seem to evaluate whole method
19:39 estrai s/when//
19:43 hide can I access a url param in a bridge?
19:47 rem_lex|pivo joined #mojo
19:52 chansen joined #mojo
20:02 xaka joined #mojo
20:03 hide I have /action/:id passing through a bridge, and the bridge needs access to :id, $self->param('id') isn't set within the bridge.
20:05 GitHub68 joined #mojo
20:05 GitHub68 [mojo] kraih pushed 1 new commit to master: http://git.io/uuj6AA
20:05 GitHub68 [mojo/master] document time jump behavior of Mojo::Reactor::Poll - Sebastian Riedel
20:05 GitHub68 left #mojo
20:06 sri i don't really want to deal with monotonic clocks... gonna leave it to other backends
20:09 sri os x doesn't even do clock_gettime...
20:21 rem_lex joined #mojo
20:22 sri interesting, the Twisted folks are discussing the implementation of monotonic clocks for over 5 years :o
20:37 jnap_ joined #mojo
20:45 fibo joined #mojo
21:04 tempire estrai: if it's your intent to return from the action, then use return
21:04 tempire render does not return, it just executes the rendering process
21:05 tempire return $self->render if [condition] <- that sort of thing
21:08 estrai tempire: thank you!
21:11 alexeiras joined #mojo
21:16 chansen joined #mojo
21:23 * sri wonders if he should get diablo 3
21:34 lukep joined #mojo
21:36 toebu joined #mojo
21:36 toebu good evening
21:36 purl Ah, evening. The tumultuous mind tarries and contemplates, reveling in the silence afforded by the diurnal proletariat. Good evening, indeed.
21:38 * sri will be afk for the next few weeks :D
21:38 * sri waves
21:38 toebu I just upgraded to the lates Mojolicious version and get the impression that the handling of static files has changed. It seems as if Mojolicious would be shipping files in public/.. before handling any routes in the app
21:38 sri that was always the case
21:39 toebu hmmm
21:40 toebu odd it seemd to have worked fine before ... in any event, can I change it ?
21:41 toebu actually I am using a second static router to ship some alternate files while developing the app than when it is in production ...
21:42 toebu after upgrading, the development files do not get shipped anymore, once a production version file is sitting in public
21:45 perlite_ joined #mojo
21:46 sri that's silly, you should just change app->static->paths
21:47 toebu after looking at the mojolicious.pm code, I think the simplest way todo this would be to remove 'public' from the static router in dev mode
21:48 toebu the reason I am using a second router is the mapping between request path and filesystem path is a bit more complex than just setting an additional root directory ...
21:49 toebu in dev mode the static files come from a number of places ...
21:50 sri so what? we support multiple paths and classes
21:51 sri but whatever works for you
21:51 toebu '/(*prefix)/framework/source/(*a)/file.js' maps to /$prefix/file.js
21:52 toebu but I think I have figured it out now :-) maybe not the most elegant way, but it works :-)
22:04 sshaw joined #mojo
22:06 angelixd joined #mojo
22:11 rem_lex joined #mojo
22:15 dmn001 joined #mojo
22:16 rem_lex joined #mojo
22:17 dmn001 how do you install mojo on a mac?
22:18 dmn001 does a mac have sh and curl available in terminal?
22:31 tempire dmn001: yes
22:31 tempire spotlight terminal
22:31 tempire then curl get.mojolicio.us | sh
22:32 tempire most people in here develop on a mac
22:32 dmn001 thanks. im on a pc, might be getting a macbook soon though
23:28 hide Is there a better way to get at parts of a URL in a bridge than: $self->tx->req->url->path->parts->[1]; ?
23:37 Akron joined #mojo
23:41 Akron Is this the correct behaviour of Mojo::URL/Mojo::Path? https://gist.github.com/2698091
23:49 alnewkirk Akron: Mojo::URL->new('broker.js?foo=bar') should probably be Mojo::URL->new->path('broker.js?foo=bar')
23:50 Akron alnewkirk: And how can I ad this as a relative path to url1?
23:50 Akron add
23:52 Akron Ah - simply by cloning and modifying url instead of creating a new path!
23:52 alnewkirk yay
23:54 Akron :)
23:54 Akron Thank you!
23:58 alnewkirk np

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