Camelia, the Perl 6 bug

IRC log for #mojo, 2011-03-07

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

All times shown according to UTC.

Time Nick Message
00:05 ispy_ left #mojo
00:14 alnewkirk-away joined #mojo
00:30 mateu sri: thanks for the 10gen video links.  I've watched one before and just watched another, both good (reasonably clear and I learned some shit).
00:31 mateu I watched the indexing vid. and here's one example - indexing/searching an embeded doc: http://codepeek.com/paste/4d74269abc0680f76ccb0e00
00:32 mateu Looks like indexing is not a weakness of mongo
01:54 alnewkirk-away trying to find url_for in the docs?
01:54 alnewkirk-away at /foo/bar and <%= url_for 'this.css' %> doesnt give me an absolute URL
01:58 tempire alnewkirk-away: http://stackoverflow.com/questions/464​6689/mojolicious-url-for-absolute-path
02:06 alnewkirk-away very cool
02:06 alnewkirk-away mojolicious saved my marriage
02:10 Hammit joined #mojo
02:25 metaperl1 joined #mojo
02:28 metaperl left #mojo
02:40 metaperl joined #mojo
02:40 alnewkirk-away mojolicious saved my marriage
02:42 metaperl1 left #mojo
02:44 metaperl1 joined #mojo
02:46 daviddelikat1 left #mojo
02:46 metaperl left #mojo
02:54 metaperl joined #mojo
02:58 metaperl1 left #mojo
03:03 alnewkirk-away left #mojo
04:05 sigue left #mojo
04:10 sigue joined #mojo
04:23 daviddelikat joined #mojo
04:25 GitHub29 joined #mojo
04:25 GitHub29 mojo: master Sebastian Riedel * 3b8dba4 (2 files in 2 dirs): fixed small embedding bug - http://bit.ly/ghDXRX
04:25 GitHub29 left #mojo
04:26 sri good morning fellow mice with big heads!
04:34 GitHub36 joined #mojo
04:34 GitHub36 mojo: master Sebastian Riedel * 042f091 (1 files in 1 dirs): small pod update - http://bit.ly/g6nAdM
04:34 GitHub36 left #mojo
04:38 aiglenoir left #mojo
04:47 crab hi sri
05:06 Hammit hello
05:07 Hammit i want to have  a sass stylesheet in my public or templates dir and spit out css with Text::Sass
05:09 Hammit not sure how to go about it
05:09 sri Hammit: you would write a sass renderer plugin
05:09 sri in case it doesn't exist yet
05:10 Hammit ok, i thought i may have to write a plugin
05:10 Hammit thanks sri
05:10 perlrocks Twitter: "@vtivti Does that mean you're back hacking on #mojolicious? :) #perl" --kraih http://twitter.com/kraih/status/44625953883815937
05:11 kaare joined #mojo
05:15 sri Hammit: well, you don't "have to", but it would be the cleanest solution
05:17 tempire_ joined #mojo
05:17 tempire_ left #mojo
05:20 * Hammit is looking at the source for the EpRenderer :)
05:22 sri better epl
05:22 sri ep is just a wrapper around epl
05:22 tempire lulz.  nice response.
05:22 sri the latest tt renderer could also be a good example
05:24 Joey joined #mojo
05:26 sri :)
05:26 Joey Most likely I am missing something in the documentation but is there a way to loop vars in the .epl templates ?
05:26 sri ep and epl templates are just perl
05:27 sri you can do everything perl can do
05:27 Joey Oh, wow. Didn't know that. Thanks Sri
05:27 sri http://mojolicio.us/perldoc?Mojolic​ious/Guides/Rendering#Embedded_Perl
06:14 perlrocks Twitter: "Mojolicious:: Lite Controller to force in more than one file or might be a bad approach. Shiro is not a Lite and Mojolicious? ? Hmm. ." (ja) --clicktx http://twitter.com/clicktx​/status/44642111005523968
06:22 vel left #mojo
06:30 mattastrophe joined #mojo
06:39 ysyrota joined #mojo
06:43 tardisx_ joined #mojo
06:43 tardisx_ left #mojo
06:47 tardisx left #mojo
06:50 sri tag helpers would make a good topic for a blog post
06:51 sri i think most people don't see yet how they can design their own template language with them
07:08 perlrocks Twitter: "Now that #mojolicious tag helpers have become stable i'd like to write more documentation for them, wishes? :) #perl" --kraih http://twitter.com/kraih/status/44655660658470913
07:10 aiglenoir joined #mojo
07:12 su-bzero left #mojo
07:28 crab must... have... release...
07:32 sri this week
07:43 Christian joined #mojo
07:43 Christian moin
07:44 * sri waves
07:51 esskar joined #mojo
08:04 metaperl left #mojo
08:05 metaperl joined #mojo
08:09 MisterHa1t if one wanted to mess with http headers or meta-data on a per-page basis with mojolicious, what would be the best way?
08:10 MisterHa1t for purposes of SEO or signaling a cache what to do with a page f.e.
08:11 sri just do it
08:11 sri $self->res->headers
08:11 sri knock yourself out
08:11 sri you have total control in mojolicious
08:25 breaker313 joined #mojo
08:53 metaperl1 joined #mojo
08:56 metaperl left #mojo
09:09 Hammit sri: thanks for the suggestion on the Sass renderer
09:09 Hammit got it working, and gotta say...i'm really liking mojo
09:10 sri \o/
09:10 sri turn it into a cpan module, i'm sure there are more fans of sass who'd like to use it with mojolicious
09:11 Hammit i'd love to, but don't have an account and have never done it before...would you like to?
09:11 Hammit i can pastebin the code...
09:11 Hammit it's really small tho
09:11 Hammit wiki entry perhaps...?
09:12 moritz wiki is better than pastebin :-)
09:12 sri indeed
09:12 sri Hammit: http://pause.perl.org/paus​e/query?ACTION=request_id # get an account
09:13 Hammit ok pause, here i come
09:14 sri :)
09:14 Hammit MojoX::Render::Sass I guess?
09:16 Alias_ left #mojo
09:16 fridh joined #mojo
09:16 sri Mojolicious::Plugin::SassRenderer
09:16 sri MojoX is deprecated
09:17 sri https://github.com/igit/Mojo​licious-Plugin-MasonRenderer # here's a rather fresh example distribution layout
09:17 sri it looks unfinished, but you get the idea, tt renderer prolly has better examples for tests
09:18 sri but actually a good question, i'll make namespace selection a FAQ entry
09:18 Hammit kewl
09:19 Hammit and while we're here...
09:19 Hammit oh, nvm
09:19 Hammit :)
09:21 moritz I want to make set a variable on the stash to 0 or 1, depending on whether a user is logged in or not
09:21 moritz and I want to do it once, so that I don't have to repeat it in every controller method
09:21 moritz what's the best way to do it?
09:21 purl the best way to do it is probably to delegate it ;)
09:21 moritz something like   under '' => { logic here } ?
09:22 sri yea
09:22 * moritz should actually read all of the docs at some point
09:25 GitHub193 joined #mojo
09:25 GitHub193 mojo: master Sebastian Riedel * b06943b (1 files in 1 dirs): added new FAQ answer - http://bit.ly/gYQhzy
09:25 GitHub193 left #mojo
09:26 Hammit does it take long to get a pause account?
09:28 perlrocks Twitter: "And another frequently asked question about #mojolicious gets answered. :) http://t.co/o7kV7mN #perl" --kraih http://twitter.com/kraih/status/44690761819766784
09:28 sri Hammit: humans actually review it
09:28 sri so hard to say
09:28 moritz sometimes two days
09:28 moritz sometimes hours
09:28 moritz and remember to check your spam filter after a day
09:28 Hammit oh, ok. i thought it may be the case
09:28 DaTa but sometimes weeks :)
09:29 Hammit :o
09:29 moritz DaTa: that is very rare
09:29 sri very rarely ;p
09:29 DaTa i've waited to weeks :)
09:29 DaTa two
09:30 moritz most people I've met who waited for weeks later found a mail in their spam folder, which was sent one or two days after the application
09:33 moritz "In conformance with Mojolicious::Guides::CodingGuidelines, we will always deprecate a feature for at least one major release before removing or changing it in incompatible ways" -- what counts as a "major" release? an increase the first version number?
09:34 sri also in codingguidelines ;p
09:35 moritz ah.
09:35 sri cutesy names are cooler than those stupid version numbers
09:36 sri especially in perl
09:37 moritz rakudo also avoids stupid version numbers
09:37 moritz and uses year.month + a .pm group name
09:38 sri that's where i got the idea :)
09:39 sri stumbled over it when i did the rakudo 1.0 logo mockup last year
09:40 sri while i also like versioning based on year it is bad for marketing
09:41 Hammit unless ur microsoft, who version the product in the future :)
09:41 sri hehe
09:42 sri Rakudo 2011 Home Premium Deluxe
09:42 moritz with Guarantueed Money Back if you don't like it, or if it's too slow for your purposes :-)
09:46 Hammit hahaha
10:10 sri oh, nokia sold qt already, that was quick
10:10 sri http://www.digia.com/C2256FEF0043E9C1/0/405002251
10:10 sri to some company i never heard of
10:20 espent left #mojo
10:21 moritz sri: better than stopping entirely
10:21 espent joined #mojo
10:39 sri well, they could be as evil as oracle, who knows
10:46 moritz nokia could be too now, as far as we know
10:58 alnewkirk-away joined #mojo
11:17 alnewkirk-away left #mojo
11:42 Hammit sri: what's the deal with naming rendering plugins with "_renderer"?
11:42 sri got a better idea? :)
11:42 Hammit is there magic in there?
11:42 sri nope
11:42 sri just convention
11:42 Hammit oh, ok
11:43 sri all plugins are equal
11:43 Hammit it looks like magic is there, i must be missing something....
11:43 Hammit Plugin "sass" missing, maybe you need to install it?
11:44 Hammit that is my when trying to use the sass plugin from "startup"
11:44 Hammit when i change to "sass_renderer", it doesn't display that error, and server loads
11:45 Hammit oh, sorry, my bad
11:45 sri umm
11:45 Hammit :D
11:45 sri you of course have to rename the module
11:46 sri as in Mojolicious::Plugin::Sass
11:46 sri you're lucky the channel alligator is still on vacation :)
11:46 Hammit ok, so sass_renderer translates into Mojolicious::Plugin::SassRenderer?
11:46 Hammit hehe
11:46 Hammit yep, sorry :)
12:01 Hammit sorry sri, that's what I meant by magic...it's not entirely clear about the package name / plugin name relationship exists
12:02 Hammit i was expecting to have to register the plugin in a name myself. good that i don't have to tho :)
12:35 alnewkirk-away joined #mojo
12:39 janus left #mojo
12:41 janus joined #mojo
12:45 tholen left #mojo
12:47 janus left #mojo
12:53 * sri is going to watch the latest simpsons episode now while eating doughnuts!
12:54 janus joined #mojo
12:56 tholen joined #mojo
12:56 Hammit left #mojo
12:57 alnewkirk-away left #mojo
13:01 janus left #mojo
13:01 janus joined #mojo
13:01 alnewkirk-away joined #mojo
13:12 esskar left #mojo
13:13 kaare left #mojo
13:13 esskar joined #mojo
13:15 meraxes joined #mojo
13:37 daviddelikat1 joined #mojo
13:42 daviddelikat left #mojo
13:45 dotan joined #mojo
14:00 edenc joined #mojo
14:02 alnewkirk-away left #mojo
14:13 tempire sri: I think you were on target about riak's marketing & such.  So I spoke to a dude there I've interacted before, this was a portion of his reply:
14:13 tempire http://pastie.org/1643290
14:16 mattastrophe left #mojo
14:16 sri sounds good, but i still doubt they are willing to go all the way
14:17 sri the average developer does not want to touch erlang
14:17 sri i've talked with them about that before too
14:17 sri it starts with the config file format, it is erlang
14:18 sri you just can't do that if you;re targeting the average open source developer
14:19 * marcus tries brew install with -v to see why erlang is stopping
14:19 sri they could totally turn everything around and reach the mainstream, but i don't think that goes well with their company culture
14:19 marcus I don't want to touch erlang
14:19 marcus and I'm not even an average developer
14:19 marcus (I am much lazier, for one)
14:22 sri http://ncannasse.fr/blog/is_nodejs_wrong # the comments are epic
14:23 sri "if you want performance you can just use C++!!!!"
14:24 marcus hmm, continuations for async is a very interesting idea
14:24 sri you mean coroutines?
14:25 marcus This involves using Continuation Passing Style transformation (CPS). I am still considering adding CPS to haXe but if you're using Javascript there is already some CPS tools such as NarrativeJS."
14:25 sri or continuation passing?
14:25 moritz continuations = coroutines + cloning
14:25 sri ah
14:26 sri yea, must be nice to have a language that can do it
14:28 mattastrophe joined #mojo
14:29 marcus mhm
14:29 marcus it's not like node.js apps use it tho
14:30 sri the primary target of node.js are scrubs that don't want to learn another language
14:31 kaare joined #mojo
14:32 sri and that won't change unless someone comes up with a revolutionary web framework on top of it that can't be done in another language
14:33 hoelzro joined #mojo
14:36 ispy_ joined #mojo
14:48 dekimsey joined #mojo
14:52 sri ETOOMANYDOUGHNUTS
14:55 marcus was it a good episode_
14:55 marcus ?
14:57 sri the ending was rather gross
14:57 marcus so don't watch it with a small child?
14:57 marcus :)
14:59 sri better not ;p
14:59 sri could end really bad i guess
15:15 marty joined #mojo
15:29 marcus http://labs.linkfluence.net/nosql/2011/​03/07/moving_from_couchdb_to_riak.html
15:30 daviddelikat1 left #mojo
15:31 sri says so little with so many words
15:31 mattastrophe left #mojo
15:31 mattastrophe joined #mojo
15:32 sri but yea, couchdb lost completely
15:32 * marcus joins the riak irc channel
15:33 marcus seems this is the last thing my erlang installation sees before hanging - http://paste.scsys.co.uk/91348
15:34 sri weird
15:54 Christian cu all
15:55 Christian left #mojo
15:59 perlrocks Twitter: "Mojolicious::Lite or Dancer?" --pac_man http://twitter.com/pac_man​/status/44789359320367104
16:12 perlrocks Twitter: "@pac_man Mojolicious. :)" --kraih http://twitter.com/kraih/status/44792659092582400
16:19 perlrocks Twitter: "@pac_man Beer! #mojolicious" --nordmarcus http://twitter.com/nordmarc​us/status/44794187798945792
16:19 marcus damnit, wrong account
16:19 sri fail
16:20 sri then again... beer is never fail
16:20 marcus true
16:21 sri purl: pony
16:21 purl i think pony is multi-functional or http://www.angryflower.com/pony.html or http://svn.rcbowen.com/svn/​public/mod_pony/mod_pony.c
16:21 sri :O
16:23 sri purl: forget pony
16:23 purl sri: I forgot pony
16:24 sri purl: pony is pony pony pony pony pony pony pony pony pony pony pony pony pony pony pony pony pony pony pony pony pony pony pony!
16:24 purl OK, sri.
16:24 sri pony?
16:24 purl pony is pony pony pony pony pony pony pony pony pony pony pony pony pony pony pony pony pony pony pony pony pony pony pony!
16:53 breaker313 left #mojo
16:53 ysyrota left #mojo
17:03 dotan left #mojo
17:33 ispy_ left #mojo
17:39 Foxcool joined #mojo
17:41 ispy_ joined #mojo
17:41 sri looks like the dancer war is back on :o
17:41 sri they started bashing the velociraptor
17:43 sri at least i think daxim was one of them
17:45 crab bashing where?
17:45 sri over in #perl
17:45 sri he called me "a boor" :)
17:46 crab clearly a typo for boar. maybe he's jealous of your fine tusks and ability to find truffles?
17:46 sri that would explain a lot
17:56 ispy_ left #mojo
18:00 esskar left #mojo
18:21 crab hm. one has to be very careful with not leaving stash values lying around.
18:21 crab e.g. if you include many templates with certain parameters in the stash, you should always specify all of them so that they don't use the wrong value by mistake, etc.
18:31 xris joined #mojo
18:32 GitHub150 joined #mojo
18:32 GitHub150 mojo: master Sebastian Riedel * 2fb4cce (1 files in 1 dirs): small boolean tweak - http://bit.ly/gRID7a
18:32 GitHub150 left #mojo
19:21 fhelmber_ left #mojo
19:25 fhelmber_ joined #mojo
19:25 fhelmber_ left #mojo
19:56 mattastrophe left #mojo
20:12 Foxcool left #mojo
20:31 mattastrophe joined #mojo
21:10 hoelzro left #mojo
21:17 xris left #mojo
21:58 minimalist joined #mojo
22:06 kaare left #mojo
22:29 * mateu pilfers hypnotoad conf file technique, thanks mojo.
23:11 daviddelikat joined #mojo
23:40 tardisx joined #mojo
23:40 tardisx left #mojo
23:41 tardisx joined #mojo
23:55 * tempire don't want no scrubs

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