Camelia, the Perl 6 bug

IRC log for #mojo, 2013-04-17

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

All times shown according to UTC.

Time Nick Message
00:14 sri NO YOU CAN'T!
00:15 * sri thinks FIREWORKS might have a better chance though
00:19 whitebook joined #mojo
00:19 ka2u joined #mojo
00:30 hesperaux__ joined #mojo
00:34 jberger joined #mojo
00:43 shmuel joined #mojo
00:54 tempire alien monster is a break from previous themes
00:55 tempire I kind of like face screaming in fear
00:55 tempire doesn't have the same ring to it, though
00:59 tempire 🔮
01:00 tempire ^crystal ball
01:00 tempire oh wait
01:00 tempire the osx alien monster is awesome
01:00 tempire 👾
01:00 tempire yeah, I definitely support that.
01:01 tempire this one is horrible: http://www.fileformat.info/inf​o/unicode/char/1f47e/index.htm
01:01 sri JAPANESE GOBLIN
01:01 sri 👺
01:01 d4rkie joined #mojo
01:02 sri JAPANESE OGRE
01:02 sri 👹
01:02 sri SPEAK-NO-EVIL MONKEY
01:02 sri 🙊
01:02 sri SPARKLES
01:02 sri ✨
01:03 sri TOP HAT
01:03 sri 🎩
01:03 chansen ENOGLYPH ;P
01:06 sri JACK-O-LANTERN
01:06 sri 🎃
01:08 sri SLICE OF PIZZA
01:08 sri 🍕
01:09 moltar joined #mojo
01:11 sri SUN BEHIND CLOUD
01:11 sri â›…
01:25 ka2u joined #mojo
01:29 trone joined #mojo
01:42 sri in retrospect... i really should have designed Mango with connection pooling from the start :S
01:44 jberger SPARKLES should be a combining glyph!
01:46 jberger one more: SUNRISE OVER MOUNTAINS
01:46 jberger 🌄
01:46 jberger SLICE OF PIZZA would probably be best for marketing
01:51 Akron joined #mojo
01:55 mattastrophe joined #mojo
01:57 Meiermann joined #mojo
01:59 wsirc_1787235 joined #mojo
02:05 whitebook joined #mojo
02:06 d4rkie joined #mojo
02:49 asarch joined #mojo
02:56 preflex joined #mojo
03:16 rem_lex| joined #mojo
03:29 jberger if only there was a character PONY, then we could say Mojolicious 4.0 comes with a pony!
03:30 rihegher joined #mojo
03:30 sri HORSE 🐎
03:31 sri OCTOPUS 🐙
03:31 sri BUG 🐛
03:32 sri BACTRIAN CAMEL 🐫
03:32 sri DROMEDARY CAMEL 🐪
04:19 Meiermann joined #mojo
04:35 rem_lex joined #mojo
04:39 sh4 joined #mojo
04:46 ka2u joined #mojo
04:52 rihegher left #mojo
05:00 Averna joined #mojo
05:10 sh4|2 joined #mojo
05:15 wsirc_1787235 joined #mojo
05:37 ver joined #mojo
05:44 xaka joined #mojo
05:55 sh4 joined #mojo
05:57 dod joined #mojo
05:58 arpadszasz joined #mojo
06:03 d4rkie joined #mojo
06:32 dod joined #mojo
06:36 denisboyun joined #mojo
06:40 dpetrov_ joined #mojo
06:48 hrupp joined #mojo
06:54 Vandal joined #mojo
06:56 ladnaV joined #mojo
07:13 suy joined #mojo
07:50 Britzel joined #mojo
07:52 gabiruh joined #mojo
07:59 Vandal joined #mojo
08:11 bowtie joined #mojo
08:20 Averna joined #mojo
08:21 wsirc_1787235 joined #mojo
08:48 alnewkirk joined #mojo
08:49 mire joined #mojo
09:06 nelio joined #mojo
09:07 bowtie joined #mojo
09:07 KindTwo joined #mojo
09:10 KindOne- joined #mojo
09:15 mrphilov joined #mojo
09:20 Nei joined #mojo
09:21 Nei hi how do I ship out my pages as application/xhtml+xml if possible?
09:43 judofyr joined #mojo
09:55 maxhq joined #mojo
10:19 jpn joined #mojo
10:39 Britzel_ joined #mojo
10:56 cy joined #mojo
10:57 whitebook joined #mojo
11:34 mrphilov joined #mojo
11:49 d4rkie joined #mojo
11:50 mire joined #mojo
11:52 arpadszasz joined #mojo
12:02 maxhq joined #mojo
12:03 Kripton joined #mojo
12:07 dod joined #mojo
12:24 dvinciguerra joined #mojo
12:28 whitebook joined #mojo
12:38 dod joined #mojo
12:50 heytrav joined #mojo
12:52 whitebook joined #mojo
12:59 podz joined #mojo
13:00 asarch joined #mojo
13:06 anielsen joined #mojo
13:09 dod joined #mojo
13:09 podz hi, are HTTP PUT supported yet without use of mojox-scaffold?
13:10 judofyr podz: what do you mean "supported"? if you have a client that does PUT, Mojo should route it correctly
13:11 judofyr podz: if you want to support it in the browser, you might want to add a before_dispatch-hook that checks for a _method-parameter or something
13:12 podz ok
13:12 whitebook joined #mojo
13:14 gryphon joined #mojo
13:15 podz so mojo doesn't provide any syntactic sugar for tunneling PUT and DELETE via POST requests?
13:15 judofyr podz: I don't think so (can't say for sure)
13:17 podz so i have routes defined for PUT, DELETE, etc
13:18 podz how would I check for _method before choosing a route?
13:20 gryphon_ joined #mojo
13:25 podz problem solved, i just add to methods to my update and delete routes: ->via('PUT', 'POST')
13:36 marty_ joined #mojo
13:37 podz being able to add multiple via methods to a route is the syntactic sugar i was looking for ;-)
13:41 dod joined #mojo
13:45 mire joined #mojo
13:49 arpadszasz joined #mojo
13:53 dod joined #mojo
14:00 sh4 joined #mojo
14:01 moltar joined #mojo
14:17 arpadszasz joined #mojo
14:29 Mike-PerlRecruiter_ joined #mojo
14:30 * sri yawns
14:38 Mithaldu sri: might wanna send them a pull req :) http://www.techempower.com/blog/​2013/03/28/framework-benchmarks/
14:39 sri someone already did
14:39 Mithaldu oh, neat!
14:39 * sri would not support something that stupid
14:39 Mithaldu stupid or not, it's attention
14:39 sri https://github.com/pfig/FrameworkBenchmarks/commi​t/e101d0cecd32e51c784d43e075697a27296fb68d#L1R22
14:40 sri benchmarks with random numbers
14:40 Mithaldu as far as i'm concerned it's not about being the fastest, but about being included in the first place, to give perl frameworks mindshare
15:05 btyler joined #mojo
15:09 mire joined #mojo
15:24 Vandal Defiance gaphics suxx :(
15:25 sri it's a tv show and not a prime time movie
15:26 Vandal still, its like on Sega games and it is 2013
15:26 njlg joined #mojo
15:26 sri if anything the cgi was inconsistent... the intro sequence was pretty good quality
15:26 Vandal very sad picture
15:27 sri show me a tv show with better cgi
15:27 Vandal firefly
15:28 sri firefly used much less effects
15:28 sri the train scene was not particularly high quality either
15:29 Vandal yea
15:29 sh3 joined #mojo
15:29 Vandal but it was long ago and still looxk better
15:30 sri stargate was produced until recently, and the effects were not better
15:30 Vandal whole stargate suxx
15:30 sri defiance is no firefly or bsg, but it's good
15:32 Nei left #mojo
15:32 Vandal bsg?
15:33 sri battlestar galactica of course
15:33 Vandal oh
15:33 * sri also loves doctor who
15:34 Vandal is it good?
15:35 sri you have no right to talk about scifi if you've not seen bsg :O
15:35 Vandal I'm asking about doctor who
15:35 sri haha
15:35 Vandal bsg I saw - it sux
15:35 sri :O
15:36 sri i doubt you'll like doctor who then either, it's extremely quirky
15:37 Vandal :)
15:37 Vandal how so?
15:38 sri impossible to explain
15:38 Vandal I saw some episodes on tv of some show which I belive spinoff of doctor who
15:38 Vandal it wasnt bad
15:49 andrefs joined #mojo
16:06 JiYu joined #mojo
16:13 btyler joined #mojo
16:15 JiYu joined #mojo
16:22 xaka joined #mojo
16:30 sri http://www.futurealoof.com/​posts/broken-promises.html # "callback manager" is not such a bad description for our delays :)
16:33 mattastrophe joined #mojo
16:43 labrown joined #mojo
17:00 jberger_ joined #mojo
17:00 * jberger_ likes callback manager too
17:01 jberger_ my $manager = Mojo::IOLoop->manager ?
17:01 jberger_ $manager->steps( ... )
17:10 Mikey i'm wondering if there's a place in the mojo startup routine that runs exactly one time for a server starting up
17:10 Mikey and is guaranteed to run just the once, regardless of it being started with hypnotoad, daemon, or whatever
17:12 Mikey maybe like a after_server_ready hook
17:13 Vandal I have bridge $b = $r->bridge('/')->to('default#base'); and route $b->route('/:foo')->via('get')->to('default#act');
17:13 Vandal how can I get :foo in default#base?
17:18 Mikey $controller->stash('foo')
17:20 Vandal Mikey, nope
17:20 Vandal it's empty in default#base
17:31 sri jberger_: no
17:32 Mikey erm try param() not stash()
17:32 sri delay is a good name, callback manager is a description
17:40 dod joined #mojo
17:43 bluescreen joined #mojo
17:50 basiliscos joined #mojo
18:05 ObseLeTe joined #mojo
18:07 mattastrophe joined #mojo
18:09 alester joined #mojo
18:14 basiliscos joined #mojo
18:22 Mike-PerlRecruiter_ joined #mojo
18:31 sh3 joined #mojo
18:34 btyler joined #mojo
18:43 hesperaux joined #mojo
19:19 jzawodn joined #mojo
19:21 mire joined #mojo
19:32 nelio joined #mojo
19:33 dpetrov_ joined #mojo
19:52 BeDa joined #mojo
20:02 mattastrophe joined #mojo
20:42 joakim joined #mojo
20:55 perlite joined #mojo
21:00 two_tired I'm serving up some REST data with mojo. What's the best way to cache it, so that the data is updated every 30 or 60 seconds?
21:01 two_tired currently using apache -> hypnotoad
21:03 janus shouldn't the request patterns/stats tell you?
21:03 janus or is it a technical question - then i would suggest Cache::* on cpan ;)
21:04 two_tired I know that the source data in a PG DB doesn't get updated more than 1x per minute
21:04 two_tired so I'm just wondering how to keep the results cached in memory for 30 to 60 seconds...
21:10 janus so Mojo::Cache may be not exactly what you are looking for but the only thing that keeps popping up in my head apart from what i said already and general caching techniques which are not mojo specific either
21:11 janus well, you could use Mojo::Cache at least as a starting point
21:11 two_tired ok, looks good
21:11 two_tired I was thinking of trying memcached
21:11 janus the api (set/get) should be the same, hence easy to change later
21:12 janus also memcached isn't really in memory as i was thinking (proccess scope)
21:13 two_tired so does Mojo::Cache get() eventually return undef, which means you need to set it at that point?
21:14 janus it returns undef the first time and after the key expires, yes
21:14 two_tired I see...
21:15 two_tired I don't see any reference to max_age...
21:16 janus maybe check the code, its just a few lines ;)
21:33 lukep joined #mojo
21:34 jberger_ janus, perhaps you are thinking of the memorize helper
21:34 jberger_ two_tired, https://metacpan.org/module/Mojolici​ous::Plugin::DefaultHelpers#memorize
21:36 gryphon_ joined #mojo
21:43 komodo joined #mojo
21:44 denisboyun joined #mojo
22:07 gryphon joined #mojo
22:09 ka2u joined #mojo
22:28 good_news_everyone joined #mojo
22:28 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/qOA2Tg
22:28 good_news_everyone mojo/master 626a4a3 Sebastian Riedel: better descriptions for delays
22:28 good_news_everyone left #mojo
22:34 marty joined #mojo
22:39 mattastrophe joined #mojo
22:49 mrphilov A common pattern I'm doing: set about five $self->session(varN => valN); — then in many different controllers across the app, do $self->stash(varN => $self->session('varN')); so many pages share the same thing. LIke username, email, etc. I can't find how to give the template direct access to $self or $self->session(). If I keep searching, will I find something?
22:53 sri yes
22:57 Kripton I know that perl has many ways to do something, but in this days,  what can be considered as best programming practice: die () if $var < 0;
22:58 Kripton or
22:58 Kripton if ( $var < 0) {
22:58 Kripton die();
22:58 Kripton }
23:03 Kripton sorry but  have to go, i will ready the log latter
23:06 marty mrphilov:  this might help...  http://mojolicio.us/perldoc/Mojolic​ious/Plugin/DefaultHelpers#session
23:08 mrphilov marty: Aha! Thanks. That's the trick. I was looking at Rendering.
23:12 sri or just the tutorial http://mojolicio.us/perldoc​/Mojolicious/Lite#Sessions
23:17 mrphilov /shrug - I went through the tutorial, but forgot this bit. I guess it's just a question of mindset. I thought "this is a rendering problem" so I looked at renderer, which has no hint it's possible. I should have thought instead "this is a session problem," and I'd hit the proper docs.
23:19 sri you should have at least stumbled over the $self bit in the rendering guide
23:20 sri the helper section would also have led to the plugin
23:22 sri ($self->session(...) just works in templates as well)
23:23 mrphilov I'll have to look into helpers more. This is the first I've used them. I searched http://mojolicio.us/perldoc/​Mojolicious/Guides/Rendering for "session" and there's nothing. Oh… $self->session(…) works? I tried that and it failed for me. Perhaps because I needed to print it or something? Or maybe I synerror'd or whatevs.
23:24 mrphilov Just trying straight up $self->session(…) was my first guess/attempt at this.
23:27 mrphilov It is somewhat cool/amazing how much more advanced this is than Catalyst I gotta say. I'm a distributed database backend administrator sort and… I'm doing web programming! Making impossible things hard, I suppose. :)
23:28 sri :)
23:53 komodo joined #mojo
23:54 ka2u joined #mojo

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