Camelia, the Perl 6 bug

IRC log for #mojo, 2011-07-30

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

All times shown according to UTC.

Time Nick Message
00:01 mfridh_ joined #mojo
00:03 sri xantus[]: i was wrong :)
00:04 sri xantus[]: empty lite app with a timer just works in hypnotoad, even if you're not listening with anything
00:04 sri even with EV
00:04 mfridh left #mojo
00:04 sri so hypnotoad it already a general purpose ioloop server
00:06 mattastrophe left #mojo
00:08 sri xaka: $t->ua->ioloop
00:09 xaka oh, wow :) +1 nail in the my head
00:17 mattastrophe joined #mojo
00:22 ispy_ left #mojo
00:40 xaka left #mojo
01:39 mattastrophe left #mojo
01:51 xaka joined #mojo
02:55 perlrocks Twitter: "@GLENDA_G_ MOJOLICIOUS!" --Chap4mtheSouth http://twitter.com/Chap4mtheS​outh/status/97138102119833601
03:04 Drossel left #mojo
03:04 Kulag joined #mojo
03:09 Drossel joined #mojo
03:13 Kulag left #mojo
03:17 alnewkirk-hiring left #mojo
03:23 kaare joined #mojo
03:30 robinsmidsrod left #mojo
03:34 robinsmidsrod joined #mojo
04:48 kaare left #mojo
05:28 j3nnn1 left #mojo
05:41 perlrocks Twitter: "@otterbook really enjoyed your Mojolicious article in the latest ;login." --philiph http://twitter.com/philiph​/status/97179976289361920
06:08 sh9 joined #mojo
07:25 xaka left #mojo
07:40 cstamas left #mojo
08:03 tabbi joined #mojo
08:11 tabbi left #mojo
08:28 sh9 left #mojo
08:38 Foxcool joined #mojo
09:03 MisterHatt hmm, is it possible (or at least easy) to have an app restart itself?
09:03 MisterHatt like adding a plugin from an admin interface, and it'd require aditional module loading
09:03 MisterHatt or unloading even
09:41 sh9 joined #mojo
09:56 arthas left #mojo
10:20 cosimo joined #mojo
10:32 Foxcool left #mojo
11:09 mattastrophe joined #mojo
11:16 sh9 left #mojo
11:56 Cside joined #mojo
12:25 sh9 joined #mojo
12:42 marcus left #mojo
12:42 marcus_ joined #mojo
12:42 marcus_ is now known as marcus
13:06 tabbi joined #mojo
13:06 tabbi left #mojo
13:28 bosphorus joined #mojo
13:28 bosphorus left #mojo
13:29 bosphorus joined #mojo
13:55 sromanov joined #mojo
13:58 bosphorus left #mojo
14:00 sh9 left #mojo
15:09 Kulag joined #mojo
15:15 Drossel left #mojo
15:18 sh9 joined #mojo
15:25 tabbi joined #mojo
15:44 tabbi left #mojo
15:48 sh9 left #mojo
16:01 vifo joined #mojo
16:02 vifo hey folks! i am new to Mojolicious and have some trouble with the standalone daemon not reloading template files, even though i am starting it with .\app.pl daemon --reload (Win32, Strawberry latest, Mojolicious latest). Any hints?
16:09 alnewkirk-hiring joined #mojo
16:11 minimalist vifo: daemon --reload is not used anymore
16:11 minimalist use morbo app.pl
16:11 sh9 joined #mojo
16:16 vifo thanks for the hint
16:21 dan joined #mojo
16:21 minimalist ping marcus
16:21 crab vifo: doesn't using the latest mojo display a warning that --reload isn't used?
16:22 minimalist marcus: ping
16:22 crab Ignoring --reload (use 'morbo myapp.pl' instead)!
16:22 dan left #mojo
16:23 sri crab: warning doesn't work, people still get it wrong all the time
16:23 crab would dying be better?
16:24 sri naah, they will figure it out eventually
16:25 vifo_used joined #mojo
16:26 vifo_used @crab: no, starting the daemon (e.g. ./app daemon) does not emit any warnings, that morbo should be used instead
16:27 vifo_used Mojolicious version 9999 required--this is only version 1.68 at -e line 1.
16:27 vifo_used anyway, morbo works fine
16:29 vifo left #mojo
16:29 sri hmm, now people keep sending me random links to template systems...
16:30 vifo_used is now known as vifo
16:33 vifo is there any recommended way to modify reponse headers inside a controller? i'd like to set no-cache or expires. $self->tx->res->headers->add(...)? or is there an easier way?
16:33 vifo s/reponse/response/
16:34 sri $self->res->headers->header(foo => 'bar');
16:34 sri http://mojolicio.us/perldoc/Mojolicious/Lite#HTTP
16:52 vifo how can I route to controllers in subdirs? Main app: Smarttech::Net::SNMS::M. Controller: Smarttech::Net::SNMS::M::Ui::Footer. Route? Tried with $r->route('/ui/footer/get_s​erver_time')->to(controller => 'Ui::Footer', action => 'get_server_time'), but no go.
17:06 vifo_used joined #mojo
17:10 vifo left #mojo
17:16 vifo joined #mojo
17:19 vifo_used left #mojo
17:27 perlrocks Twitter: "And on more Q about # mojolicious, have it something like symfony assetic for work with css, js - minify, summarize etc?" (ru) --korjavin http://twitter.com/korjavi​n/status/97357576165015553
17:28 perlrocks Twitter: "What is best way for # mojolicious to cache partial templates? memorize partial, work again on each page. ssi + nginx? esi + varnish? need advice" (ru) --korjavin http://twitter.com/korjavi​n/status/97357876619771905
17:36 crab vifo: read http://toroid.org/ams/etc/m​ojolicious-static-resources
17:36 henq joined #mojo
17:39 xaka joined #mojo
17:49 vifo_used joined #mojo
17:50 crab too many vifos.
17:51 vifo left #mojo
17:53 vifo_used damn ..
17:53 vifo_used i constantly get reconnected for whatever reason ...
17:53 vifo_used is now known as vifo
17:54 vifo_used joined #mojo
17:54 mspo do you usually give / its own route?
17:56 kaare joined #mojo
17:56 sri vifo: http://mojolicio.us/perldoc/Mojolic​ious/Guides/Routing#Special_Stash_V​alues_28_controller_and_action_29
17:56 sri it's all in the documentation
17:56 crab mspo: yes
17:57 crab (how else would it work?)
17:57 mspo a null stash value or something?
17:57 sri that actually works too
17:58 sri but might look weird depending on context
17:59 sri "under sub {…};" for example looks fine imo, while "get sub {…};" can be confusing
17:59 vifo left #mojo
18:00 sri however, for "under '/foo'; get sub {…}; post sub {…};" it can look good again :)
18:00 sri depends on context really
18:00 sh9 left #mojo
18:00 vifo joined #mojo
18:01 vifo left #mojo
18:02 mspo I'll just stick to the / route and make a home template
18:02 sri can't go wrong with that
18:04 vifo_used left #mojo
18:08 crab i can't think of anything to write about, and i feel like writing. oh well.
18:09 sri unicorns?
18:09 purl unicorns is, like, http://xrl.us/2dn5
18:10 crab not enough horns.
18:12 sri hmm… then you won't like narwhals either :/
18:17 sri ooooh
18:17 sri ietf-10 websockets have arrived in chromium
18:18 sri so they will be in stable later this year
18:20 sri looks like it will be in all webkit browsers soon
18:22 sri yay!
18:23 sri it already works in canary
19:14 jwang joined #mojo
19:26 sh9 joined #mojo
19:43 memowe_ joined #mojo
19:43 memowe left #mojo
19:45 marty__ joined #mojo
19:46 espent_ joined #mojo
19:47 _[R] joined #mojo
19:47 gabiruh_ joined #mojo
19:47 bpaluch_ joined #mojo
19:47 bpaluch_ left #mojo
19:47 sh9 left #mojo
19:47 alnewkirk-hiring left #mojo
19:47 mfridh_ left #mojo
19:47 cosimo left #mojo
19:47 marty_ left #mojo
19:47 ashleydev left #mojo
19:47 bpaluch left #mojo
19:47 xantus[] left #mojo
19:47 tardisx left #mojo
19:47 s0va_ left #mojo
19:47 sri left #mojo
19:47 Trelane left #mojo
19:47 chansen left #mojo
19:47 nuba left #mojo
19:47 Beirdo left #mojo
19:47 gabiruh left #mojo
19:47 espent left #mojo
19:47 [R] left #mojo
19:48 _[R] is now known as [R]
19:48 cosimo joined #mojo
19:48 Beirdo joined #mojo
19:49 mfridh joined #mojo
19:49 nuba joined #mojo
19:51 sh9 joined #mojo
19:53 alnewkirk-hiring joined #mojo
19:53 ashleydev joined #mojo
19:53 xantus[] joined #mojo
19:53 tardisx joined #mojo
19:53 sri joined #mojo
19:53 s0va_ joined #mojo
19:53 chansen joined #mojo
20:16 kaare left #mojo
20:26 Foxcool joined #mojo
20:39 abra left #mojo
20:47 GitHub165 joined #mojo
20:47 GitHub165 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/0b​209dbf94efcfbbf5466ac246a8fd2539c1e8f5
20:47 GitHub165 [mojo/master] mention current WebSocket spec in documentation - Sebastian Riedel
20:47 GitHub165 left #mojo
20:49 abra joined #mojo
20:51 sh9 left #mojo
21:12 Foxcool left #mojo
21:48 ispy_ joined #mojo
22:08 sromanov left #mojo
22:08 sromanov joined #mojo
22:14 arpadszasz joined #mojo
22:29 heince joined #mojo
22:29 heince how do i redirect_to controller ?
22:32 alnewkirk-hiring you dont, you redirect to a route or url
22:35 heince i'm newbie, just finish reading mojo lite, now looking at normal mojo can;t stop pulling my hair
22:38 sri heince: http://mojolicio.us/perldoc​/Mojolicious/Guides/Growing
22:39 heince i'm trying session with normal app structure, and i have my login module, how do i check the session on all my page ?
22:41 sri step back, take a deep breath, and then check out the guides
22:41 sri all information you need is in there
22:43 sri but funny how the answer to pretty much all questions about normal mojolicious apps is "bridges" :)
22:44 alnewkirk-hiring sri, i think the bridges documentation needs to be expanded upon ...
22:45 alnewkirk-hiring i still don't get it completely so im not really qualified to contribute
22:45 sri and i'm not interested in problems, just solutions ;)
22:47 alnewkirk-hiring write more documentation
22:47 alnewkirk-hiring and/or tutor me and i'll do it ;)
22:52 minimalist alnewkirk-hiring: hey Al, I was looking at the code of Validation::Class
22:52 minimalist do you mind if I sent you a bug report?
22:54 alnewkirk-hiring not at all, what bug?
22:55 minimalist directive 'between' can't take a negative number because you split by '-'
22:56 alnewkirk-hiring minimalist, is there a plausable use-case for validating between a negative number and a positive?
22:56 alnewkirk-hiring ... it never occurred to me
22:57 minimalist oh, it's a string length .. I though it was a number range
22:57 minimalist nevermind then
22:58 alnewkirk-hiring minimalist, thats a good suggestion for a new directive, "range"
22:59 alnewkirk-hiring e.g. range => [-100, 100]
23:04 sromanov left #mojo
23:23 perlrocks Twitter: "I think I'll be leaving Catalyst for Mojolicious... there is something I can't define that attracts me to it a lot :)" --tomaszmiklas http://twitter.com/tomaszmik​las/status/97447186064883712
23:27 Kulag left #mojo
23:31 Kulag joined #mojo
23:37 alnewkirk-hiring nice
23:39 Kulag left #mojo
23:49 sri alnewkirk-hiring: the majority seems to have no problem understanding bridges, so i'm not very concerned
23:49 sri the concept is simple, don't even know what else to write about it
23:50 alnewkirk-hiring sri, to clarify-a-bit, I understand what bridges are and the concept behind them but the syntax trips me up from time to time
23:50 alnewkirk-hiring for example ...
23:53 alnewkirk-hiring http://paste.scsys.co.uk/127774
23:53 alnewkirk-hiring from actual code, and it now occurs to me that I may not understand how routes are built
23:53 alnewkirk-hiring that may be my issue
23:54 alnewkirk-hiring its the syntax that trips me up
23:54 sri your problem is that you don't understand routes
23:54 alnewkirk-hiring agreed
23:54 sri bridges have absolutely nothing to do with it
23:55 alnewkirk-hiring also agreed, from an api standpoint, imo, i dont see why the extra ->route->to(...) is neccessary
23:55 sri one small hint, child routes inherit all their parents default values
23:56 sri to put it bluntly, that route is total bullshit ;p
23:56 alnewkirk-hiring crab helped me write this, i have know idea how it works
23:56 sri and there's your problem
23:58 alnewkirk-hiring from an expressive pov, http://paste.scsys.co.uk/127775 makes perfect sense to me but didnt work in my app
23:58 sri rule of thumb, if you're repeating information your most likely doing something wrong
23:59 Kulag joined #mojo
23:59 alnewkirk-hiring sri, oh i get it now
23:59 sri that second paste only has a typo

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