Camelia, the Perl 6 bug

IRC log for #mojo, 2013-08-15

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

All times shown according to UTC.

Time Nick Message
00:28 shmuel joined #mojo
00:34 asarch joined #mojo
00:44 egopro joined #mojo
00:58 amirite joined #mojo
01:28 amirite_ joined #mojo
01:33 amirite joined #mojo
01:39 amirite joined #mojo
01:44 amirite_ joined #mojo
01:51 amirite joined #mojo
01:52 d4rkie joined #mojo
01:56 amirite joined #mojo
02:18 hummeleBop joined #mojo
02:18 asarch joined #mojo
02:18 KindOne joined #mojo
02:18 lukep joined #mojo
02:18 jzawodn joined #mojo
02:18 basic6_ joined #mojo
02:18 tianon joined #mojo
02:18 cosimo joined #mojo
02:18 alnewkirk joined #mojo
02:18 Lee joined #mojo
02:18 wsri joined #mojo
02:18 batman joined #mojo
02:18 preflex joined #mojo
02:18 dwierenga joined #mojo
02:18 perlite joined #mojo
02:18 espent joined #mojo
02:18 nic joined #mojo
02:18 heytrav joined #mojo
02:18 jast joined #mojo
02:18 jnbek joined #mojo
02:18 HtbaaPi joined #mojo
02:18 bzero joined #mojo
02:18 sjn joined #mojo
02:18 andrefs joined #mojo
02:18 gabiruh joined #mojo
02:18 dabudabu joined #mojo
02:18 JiYu joined #mojo
02:18 mtths joined #mojo
02:18 memowe joined #mojo
02:18 migo joined #mojo
02:18 tholen42 joined #mojo
02:18 alzeih joined #mojo
02:18 cstamas joined #mojo
02:18 gautier joined #mojo
02:18 Mikey joined #mojo
02:18 Andreas joined #mojo
02:18 PerlJam joined #mojo
02:18 kthakore joined #mojo
02:18 sivoais joined #mojo
02:18 ask joined #mojo
02:18 Grrrr joined #mojo
02:18 BinGOs joined #mojo
02:18 cottoo joined #mojo
02:18 bayashi joined #mojo
02:18 d^_^b joined #mojo
02:18 tardisx` joined #mojo
02:18 _mkrull joined #mojo
02:18 charsbar___ joined #mojo
02:18 bd joined #mojo
02:18 augensalat joined #mojo
02:18 mattp joined #mojo
02:18 omega joined #mojo
02:18 mst joined #mojo
02:18 garu joined #mojo
02:18 nicomen joined #mojo
02:18 depesz joined #mojo
02:18 crab joined #mojo
02:18 stan_theman joined #mojo
02:27 Kundun joined #mojo
02:30 amirite_ joined #mojo
02:36 zivester joined #mojo
02:36 amirite joined #mojo
02:41 hlin_ joined #mojo
02:41 amirite_ joined #mojo
02:46 amirite joined #mojo
03:02 amirite_ joined #mojo
03:13 D4RK-PH0ENiX joined #mojo
03:15 amirite joined #mojo
03:16 basiliscos joined #mojo
03:25 amirite joined #mojo
03:30 preflex_ joined #mojo
04:10 jberger_ joined #mojo
04:18 KindTwo joined #mojo
04:27 dqw joined #mojo
04:48 tolid_air joined #mojo
04:49 arpadszasz joined #mojo
04:55 dqw joined #mojo
05:13 hrupp joined #mojo
05:15 d4rkie joined #mojo
05:22 dotandimet joined #mojo
05:29 arpadszasz joined #mojo
05:55 dotandimet joined #mojo
06:12 amirite_ joined #mojo
06:13 dotandimet joined #mojo
06:30 Vandal joined #mojo
06:32 hrupp joined #mojo
06:43 yakudza joined #mojo
07:01 Britzel_ joined #mojo
07:31 tolid_air joined #mojo
07:34 denisboyun joined #mojo
07:37 dpetrov__ joined #mojo
08:04 maxhq joined #mojo
08:14 marcus joined #mojo
08:14 wsri joined #mojo
08:14 batman joined #mojo
08:32 cosmincx joined #mojo
08:49 yakudza joined #mojo
08:57 basiliscos joined #mojo
09:02 cosimo joined #mojo
09:18 amirite joined #mojo
09:19 zibi joined #mojo
09:21 mire joined #mojo
09:55 mire joined #mojo
10:05 cosmincx joined #mojo
10:38 moltar joined #mojo
10:47 ladnaV joined #mojo
11:13 Vandal joined #mojo
11:15 * sri yawns
11:16 sri https://github.com/kraih/mojo/pull/525 # anyone else want to vote?
11:45 bowtie_ joined #mojo
11:54 denisboyun joined #mojo
11:56 jberger joined #mojo
11:58 jberger joined #mojo
12:03 jberger joined #mojo
12:08 jberger joined #mojo
12:42 jberger_ joined #mojo
13:13 kthakore sri: vote?
13:14 kthakore I vote for puppies!!
13:19 bluescreen joined #mojo
13:27 sri kthakore: vote or contribute more information
13:28 sri only the core team has formal votes, but all opinions are considered
13:37 d4rkie joined #mojo
13:42 laouji joined #mojo
13:43 asarch joined #mojo
13:43 Britzel joined #mojo
13:53 dqw joined #mojo
14:05 bluescreen joined #mojo
14:10 zivester joined #mojo
14:14 ryozi joined #mojo
14:31 gryphon joined #mojo
14:31 stephan48 joined #mojo
14:54 mire joined #mojo
15:13 * tempire votes formally
15:13 tempire http://data.whicdn.com/images/47908147/Pushee​n-pusheen-the-cat-24897482-325-325_large.gif
15:15 sri \o/
15:22 good_news_everyone joined #mojo
15:22 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/hVlCTg
15:22 good_news_everyone mojo/master 13f0cea Sebastian Riedel: fixed test description
15:22 good_news_everyone left #mojo
15:27 mrphilov joined #mojo
15:48 basiliscos1 joined #mojo
15:50 sri github is down, open source is over for today!
15:53 sri jberger_: you jinxed it! :(
15:56 jberger_ Arg! Moldy bread!
16:07 denisboyun joined #mojo
16:08 KindOne joined #mojo
16:10 dod joined #mojo
16:32 dod joined #mojo
16:32 delias joined #mojo
16:42 batman sri: just say it can't be done in an open source system.
16:42 batman s/say/reply/
16:43 sri reply to who?
16:43 batman the thing people should vote about
16:43 batman accpet...303
16:44 sri afraid i don't understand
16:44 sri what does it have to do with open source?
16:45 sri anyway, he seems to be evading the more intersting questions https://github.com/kraih/mojo/pull/525
16:45 sri think i'll close the issue soonish
16:47 zibi joined #mojo
16:47 sri dougwilson++ # his answers are always spot on
16:53 basic6 joined #mojo
17:45 batman sri: sorry about that. it's more of an internal joke :/
17:46 batman (and the joke is that it does not make any sense at all)
17:51 sri batman: CHEWBACCA DEFENSE!
17:51 * batman hides
17:53 dvinciguerra joined #mojo
18:30 delias joined #mojo
18:33 espent joined #mojo
18:52 r0b3rt joined #mojo
19:16 mire joined #mojo
19:17 dotandimet joined #mojo
19:26 Mike-PerlRecruiter_ joined #mojo
19:26 tolid_air joined #mojo
19:27 jzawodn joined #mojo
19:49 batman i wonder if i should change my cpan gravatar to http://s.gravatar.com/avatar/ab18​39667863f31e359d98364cfdef61?s=80
20:14 basic6 is it possible to access the session cookie (more specifically a value stored in the cookie, by a controller) from the application class?
20:14 cfedde joined #mojo
20:15 batman there's no $app->session() if that's what you're asking about
20:15 batman basic6: step back and explain what you're trying to achieve
20:15 basic6 batman: yes, that's what i'm asking. although i just noticed that there's app->sessions (which i have overlooked before)
20:17 batman the sessions() holds a Mojolicious::Sessions object which also load/store the session but it requires a controller.
20:18 basic6 batman: basically i want to save a session value ($self->session(setting => ...)) in controller1 and use that value in controller2. controller1 is used as a bridge before controller2 is accessed. however i could probably just use $self->session('setting') in controller2 - i should rethink my approach...
20:19 basic6 oh and i said application class because i though i'd have to do something like $self->app->session('setting') from controller2
20:19 batman i don't get it. is this inside the same request?
20:19 cfedde called by apache CGI "%= form_for upload => (...)" is generating "action='cgi-bin/script/upload'".  My post '/upload' => sub{...} does not get called.  What am I doing wrong?
20:19 basic6 batman: same request, yes
20:19 batman if you do something in a bridge, it should still be accessible inside your controller
20:20 batman bridge()->to(cb => sub { $c->session(foo => 123); }) # the "foo" value is available in your MyApp::Controller1 object later on
20:21 batman s/should/is/
20:24 batman doesn't it work as you expect..?
20:25 basic6 batman: yes, that works, thank you, but i have another question...
20:25 russum joined #mojo
20:26 batman :)
20:26 russum left #mojo
20:27 basic6 batman: in controller1, i set the setting in my session cookie (session(setting => $value)), but then i also generate a data structure (a db result, something i wouldn't store in a cookie) using that value (my $structure = $self->app->generate($value). i'm thinking i should cache this $structure somewhere in $self->app, so controller2 can just access $self->app->?->strucutre - instead of regenerating it ($self->app->generate($self->session('
20:27 basic6 setting')))
20:28 batman you should not cache it until you must
20:28 batman caching is hard. only do it when you know you need to.
20:29 sri and don't mix up scopes
20:29 basic6 batman: i don't *have* to, it would just make things easier for controller2
20:29 sri sessions work across processes, ->app->* not
20:29 batman it's harder to cache.
20:30 batman basic6: if you're doing something in the bridge that you want to share with the controller2, then store it in stash
20:30 batman if you want to store it for a later request then... don't.
20:30 batman come back when you see that you don't have enough CPU and you need caching.
20:31 basic6 batman: oh the stash, that might be a good place. i don't need the structure in any template, but i certainly don't need it direclty in the application class
20:31 batman $c->stash(structure => \%data);
20:31 basic6 yes i'll do that. straight-forward.
20:32 batman NEVER EVER store data related to a request in the $app
20:32 batman ALWAYS use the stash()
20:32 punter joined #mojo
20:33 basic6 batman: i won't store any request-related data in the app - the next request would see the same data, that would be wrong
20:33 batman basic6: excellent! i've done that, so just needed to know you didn't do the same mistake :)
20:34 basic6 batman: but thanks for pointing that out, i've actually made this mistake in the past as well. :-)
20:34 basic6 batman / sri thanks, i'll put it in the stash and be done
20:35 batman :)
21:08 dsteinbrunner joined #mojo
21:10 dotandimet joined #mojo
21:31 cfedde joined #mojo
21:48 KindOne joined #mojo
21:58 mire joined #mojo
23:18 zivester joined #mojo
23:31 StinkfooT joined #mojo
23:37 dsteinbrunner joined #mojo

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