Camelia, the Perl 6 bug

IRC log for #mojo, 2010-12-28

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

All times shown according to UTC.

Time Nick Message
00:01 marcus arne just discovered we are using mojolicious :D
00:02 marcus "OH, The mojolicious warnings are much prettier than the catalyst ones"
00:02 sri :)
00:03 sri you should show him the slider to look inside ep templates, maybe he'll rethink the haml thing ;p
00:03 sri actually, you could add the ability for haml too i guess
00:05 sri all you need is a __DIE__ handler https://github.com/kraih/mojo/blob​/master/lib/Mojo/Template.pm#L184
00:06 sri shouldn't matter if your renderer or TextHaml defines it
00:10 sri wonder what haml folks will do about html5
00:15 jawnsy left #mojo
00:20 * sri is still looking for the holy grail template system
00:22 sri btw. anyone seen mason2 filters? :)
00:23 sri <% $.Trim { %>This string will be trimmed</%>
00:23 sri the end tag is not bad at all...but the start...damn
00:36 kvorg joined #mojo
00:38 perlrocks Twitter: "Finally was able to play a bit today with #mojolicious.  In a word, awesome. #perl" --fsfiii http://twitter.com/fsfiii/status/19552744180285440
01:00 seb_ I see you talking about haml. Did you take in consideration, the posibility of use of svg file ( with javascript / dom ect )? Does general templating system not enought?
01:01 seb_ svg file or other xml...
01:01 sri yea
01:01 sri you get in trouble with html5 too
01:01 sri since it mostly uses the new semantic tags
01:01 sri instead of divs all over the place
01:02 sri header/section/article/footer
01:04 seb_ don't understant. Traductor don't help .
01:04 seb_ :)
01:05 seb_ I'm not a html gourou. if you understand better and you don't see problem, it should be ok.
01:06 sri actually, i see the exact same problems you see ;p
01:07 sri http://msdn.microsoft.com/e​n-us/scriptjunkie/gg454786
01:09 alnewkirk joined #mojo
01:11 avkhozov left #mojo
01:20 avkhozov joined #mojo
01:22 GitHub31 joined #mojo
01:22 GitHub31 mojo: master Sebastian Riedel * b5942e0 (2 files in 2 dirs): relicensed some of the images to make sure Mojolicious can be shipped with commercial products - http://bit.ly/f1yPGE
01:22 GitHub31 left #mojo
01:24 seb_ well writen article.
01:25 sri who would have expected that on msdn :)
01:26 seb_ :)
01:55 MojoGuest646 joined #mojo
01:55 MojoGuest646 From: http://www.google.com/url?sa=D&amp​;q=http://dev.xantus.org&amp;usg=A​FQjCNF_rM6vpg9DT3eh4McOgWqn8mn5Xw (5 hits)
01:58 MojoGuest646 left #mojo
02:21 avkhozov left #mojo
02:30 perlrocks Twitter: "A next generation web framework for the Perl! / Mojolicious Web Framework - Join the revolution! Http://htn.to/C4kWdB" (ja) --kyoro353 http://twitter.com/kyoro35​3/status/19580875318501376
02:46 perlrocks Twitter: "Experimenting with #mojolicious + WebSockets. Liking the short learning curve to get your first app up and running." --Parsify http://twitter.com/Parsify​/status/19584969407991809
03:20 avkhozov joined #mojo
03:37 yuki joined #mojo
03:45 yuki left #mojo
04:03 tl joined #mojo
04:05 tholen42 left #mojo
04:21 perlrocks Twitter: "In mojolicious, controller in a stash I have to wait to test how 法Tsu. model to test the actual url like that I guess that's like beating a response." (ja) --rin1024 http://twitter.com/rin1024​/status/19608738465849344
04:26 perlrocks Twitter: "Mojolicious Web Framework - Join the revolution! Http://htn.to/pmdVzr" (ja) --fukumura http://twitter.com/fukumur​a/status/19610091426680832
04:31 GitHub93 joined #mojo
04:31 GitHub93 mojo: master Sebastian Riedel * b9b0198 (2 files in 2 dirs): warn about Perl 5.10 requirement in the not too distant future - http://bit.ly/h9872y
04:31 GitHub93 left #mojo
04:42 perlrocks Twitter: "Officially #mojolicious will now require #perl 5.10, inofficially we will support 5.8.7 a little longer. http://bit.ly/fqTU9U" --kraih http://twitter.com/kraih/status/19614204298264578
04:54 perlrocks Twitter: "Mojolicious, Perl 5.8.7 is no longer supported. Hey is this for real. In Perl or other Yameyo." (ja) --kuusou_kyokusen http://twitter.com/kuusou_kyok​usen/status/19617080059891712
04:56 perlrocks Twitter: "Mojolicious:: Guides:: Cookbook - Cookbook http://bit.ly/eaG7y8" (ja) --wPerlnews http://twitter.com/wPerlnew​s/status/19617556163723264
04:56 perlrocks Twitter: "Mojolicious:: Guides:: Cheatsheet - Reference http://bit.ly/eC5L0O" (ja) --wPerlnews http://twitter.com/wPerlnew​s/status/19617558760001536
05:10 GitHub30 joined #mojo
05:10 GitHub30 mojo: master Sebastian Riedel * 68f0304 (1 files in 1 dirs): updated changes - http://bit.ly/hSvfen
05:10 GitHub30 left #mojo
05:14 perlrocks Twitter: "#mojolicious will require #perl 5.10 in the not too distant future. http://bit.ly/fqTU9U" --kraih http://twitter.com/kraih/status/19622094887198720
05:15 sri that sounds a little less scary
05:15 sri not sure many people even care though
05:17 perlrocks Twitter: "no Mojolicious;" (ja) --kuusou_kyokusen http://twitter.com/kuusou_kyok​usen/status/19623033861832704
05:21 sri Oo
05:21 yakudzo how About deploiment applications on shared hostings that has perl 5.8 ? it wont work in near future ?
05:21 sri there is no production quality linux distribution left shipping 5.8
05:22 yakudzo ok then. I will look forward for better hostings ((:
05:25 diegok sri: what is going to change that needs 5.10?, using some core module or anything else?
05:25 sri we already disable features on 5.8
05:26 diegok oh, ok. But "in the near future" that won't be possible?
05:26 sri the whole documentation browser is disabled
05:26 sri it gets more and more
05:27 diegok ops... that's a very good reason to jump to 5.10 then :)
05:28 sri no idea why people get all scared
05:29 diegok me neither... I only have 5.8 to test modules. Don't remember since when...
05:29 sri well, you got scared ;p
05:30 diegok because I test my modules?, sure... you're right :p
05:35 sri 5.8 is almost 9 years old
05:39 jamesw 5.8.9 is newer than 5.10.0
05:40 GitHub6 joined #mojo
05:40 GitHub6 mojo: master Sebastian Riedel * a6846a9 (3 files in 2 dirs): CentOS needs more time... - http://bit.ly/geZpIE
05:40 GitHub6 left #mojo
05:42 sri :(
05:58 yakudzo sri do they plan to move to perl 5.10 ?
05:58 sri it's the free version of RHEL
05:59 sri they are still at RHEL5 stage...
05:59 sri at some point they will move to RHEL6
06:02 sri i really did not expect people to get so scared
06:07 yakudzo After I remember that perl 5.8 do not support local::lib I stop scare (:
06:07 sri ;p
06:37 tempire local::lib isn't supported by 5.8?
06:37 tempire it's a shame perl 5.10+ fails often with perlbrew.
06:46 perlrocks Twitter: "oo! # Mojolicious soon migrate to Perl 5.10 http://is.gd/jCdUR're pretty excited about # perl" (ru) --xomaa http://twitter.com/xomaa/status/19645334447718400
06:47 marcus sri: don't understand the problem with haml and html5. wouldn't you just do %header= $header
06:47 marcus or whatever?
06:51 kaare joined #mojo
06:52 marcus $self->plugin('haml_renderer',{escape_html=>0, vars_as_subs=>1, format=>'html5'});
06:53 marcus I actually think that should be the default settings
07:10 Zaur left #mojo
07:10 koban joined #mojo
07:13 ispy_ left #mojo
07:16 marcus maybe not lvalue subs. They are scary
07:27 kvorg left #mojo
07:31 ysyrota joined #mojo
07:36 snearch joined #mojo
07:41 MojoGuest701 joined #mojo
07:41 MojoGuest701 /j #ru.pm
07:42 MojoGuest701 left #mojo
07:59 MojoGuest200 joined #mojo
08:02 MojoGuest200 left #mojo
08:11 ok22 joined #mojo
08:41 perlrocks Twitter: "Fetching Mojolicious-1.0.tar.gz ... OK          #perl #mojolicious" --oyvindsk http://twitter.com/oyvinds​k/status/19674209529630720
08:47 arthas joined #mojo
09:17 marcus Moo
09:46 arthas left #mojo
09:46 crab hi marcus.
09:49 snearch left #mojo
10:00 MojoGuest586 joined #mojo
10:00 rhaen aloha!
10:06 MojoGuest586 left #mojo
10:11 arthas joined #mojo
10:12 baton8 left #mojo
10:24 spleenjack joined #mojo
10:24 marcus Hmm, writing tests for an oauth plugin is kinda hard.
10:25 marcus Maybe The best thing is to fake a provider over http.
10:25 maez joined #mojo
10:26 maez hi *
10:26 yko marcus: or write real provider, use it for tests and then in production :)
10:27 yko hi maez
10:29 maez could anyone help me? How can i use html tags in string variables in mojo templates?  %$foo="<br>"; and <%= $foo %> - just printing <br>
10:29 maez not a tag <br>
10:29 yko <%== $foo %>
10:30 maez rly, so easy, thx a lot =)
10:31 yko maez: please spend one minute and read http://mojolicio.us/perldoc?Mojolic​ious/Guides/Rendering#Embedded_Perl
10:31 yko that will save few hours of your time.
10:39 maez tnx, and one more Q: what about tags into reusable blocks? <%== '<br>' %> doesn't work into begin--end block..
10:42 perlrocks Twitter: "Ru_perl community in LiveJournal: Mojolicious:: Lite vs AJAX http://ff.im/vX5Z6" (ru) --planetperlru http://twitter.com/planetper​lru/status/19704752967262208
10:42 maez how can i create a html structure into block? like: % my $block = begin\n %my $name = shift;\n <br><%= $name %>\n% end
10:45 yakudzo maez, please no code in channel use http://paste.scsys.co.uk/
10:51 pid joined #mojo
10:54 avkhozov left #mojo
10:55 snearch joined #mojo
10:58 jamesw left #mojo
11:00 pid left #mojo
11:15 yakudzo When I do Mojo::URL->path->append('asdfasdfasd'); it adds '/' at the end of path.. how do I append new path without '/' at the end ?
11:19 yko umm. yakudzo, i'm not sure if i understand you right. you want to get path like foo/asdfasdfasd or fooasdfasdfasd ?
11:20 yakudzo yko, I want to get path http://192.168.23.95:9999/cluster/stor​age/ds/alias/properties?addr=asdfasdf not http://192.168.23.95:9999/cluster/stor​age/ds/alias/properties/?addr=asdfasdf
11:21 yko ouch
11:21 yakudzo just last slash
11:22 yko ah... your original url had leading slash
11:23 yakudzo yko, on one erlang server blablala.com/path and blablabla.com/path/ are different
11:23 yakudzo yes
11:24 yakudzo yko, thanks for translation. Now I know what I missed in doc (:
11:24 yko aha, ye
11:26 yko yakudzo: https://gist.github.com/757150 is what you actually need
11:27 yko i mixed leading/trailing
11:27 yakudzo yes I see
11:31 ok22 left #mojo
11:31 jamesw joined #mojo
11:42 ok22 joined #mojo
11:43 seb_ Hi there,
11:44 seb_ Does someone understand this syntax : get '/' => sub {}
11:45 yko Mojolicious::Lite should.
11:45 seb_ and point me to ressource that will help me to understand?
11:45 yko http://mojolicio.us/perldoc?Mojolicious/Lite
11:45 yko http://mojolicio.us/perldoc​?Mojolicious/Guides/Growing
11:46 seb_ it did not see this in code I have lerned before, and don't understand what is "get" for example.
11:46 seb_ is get a simple function?
11:47 yko seb_: http://mojolicio.us/perldoc?Mojolicious/Lite#get
11:47 seb_ thank yko
11:47 yko yes it is. just like print, grep, ...
11:48 seb_ but what does the "=>" stand for. I did not see this in "programming perl" book?
11:48 seb_ I have only see it in hash
11:49 seb_ it is a new syntax for me. I intrigue me :°)
11:49 yko right you are, it's just like a hash
11:50 seb_ ok
11:50 seb_ I will look at the get function
11:52 yko seb: to better understand perl itself you possibly have to read about comma operator: http://mojolicio.us/perldoc/?perlop#Comma_Operator
11:53 seb_ it look complicated. This is a call to a function, with an anonymous function at the right of "=>"
11:53 yko => in lists acts like comma, except left side doesn't need to be quoted.
11:53 yko it's equivalent to get('/', sub { });
11:54 seb_ ok !
11:57 ok22 left #mojo
11:58 yko actually get/post/... in M::Lite shouldn't be considered as subroutine calls, but as declarations.
12:01 seb_ yes youre atenrely right. It works the same.
12:02 seb_ whao; I'm not a big perl user. What you just told need reflexion/traduction/research from my side :)
12:05 maez How can i use dot in url to get string parm in stash? Like "mysite.com/controller/action/smth.value" and get not "smth" but "smth.value"? Is it possible?
12:16 MojoGuest77 joined #mojo
12:16 MojoGuest77 From: http://www.google.com/search?sourceid​=chrome&amp;ie=UTF-8&amp;q=html5+irc (1 hits)
12:16 MojoGuest77 left #mojo
12:20 yko maez: http://mojolicio.us/perldoc?Mojoliciou​s/Guides/Routing#Relaxed_Placeholders
12:21 yko You definitely should read the guides :)
12:22 seb_ the link you give me is exellent (http://mojolicio.us/perldoc/?perlop)
12:22 seb_ I did not find it in the wiki or documentation
12:22 seb_ no link to it.
12:22 yko that's native perl documentation :))
12:22 seb_ !
12:23 yko http://perldoc.perl.org/index-language.html <-- there you can find full list of pod files by topics
12:24 yko you can read them there or with a precious look at http://mojolicio.us/perldoc?[name] thanks to sri!
12:26 seb_ thanks to you :). All is allready written.
12:26 maez yko, thx
12:27 seb_ I suggest some links on the mojolicious documentation linkd to some special topics in perldocs (like you do for me). We then can learn deeper perl whille using Mojo
12:28 seb_ and you will probably less questionned :°)
12:29 seb_ probably be less questionned (what is the most english)
12:29 yko well be much questioned in any case :) but since we have perldoc builtin i can just throw a link instead of answering
12:29 yko ...or just silently ingoring :)
12:31 yko seb_: i'm not sure about links. looks like parts that should have cross-links already has them. but you can for mojolicious on github and offer a patch for documentation
12:33 yko after all pages overloaded by links too much would look dirty and ugly
12:34 seb_ maybe some links at the foot of the article "go deeper" would be great?
12:34 yko perldoc is a firend of perl user, and every single programmer must read contents of /pods dir file by file
12:35 seb_ It is yes
12:35 yko i bet you didn't know that just typing `perldoc -f substr` will give you help about perl substr function
12:35 seb_ but as a new perl user, it is not a reflexe. And when you don't understand something, great chances that you don'tt know where to find the solution
12:36 seb_ nope
12:36 perlrocks Twitter: "Mojolicious - Web framework for Perl http://www.findbestopensour​ce.com/product/mojolicious  #web-framework" --bestopensource http://twitter.com/bestopenso​urce/status/19733363753484288
12:36 yko but now you know that )
12:36 seb_ yep
12:39 seb_ thanks, it can save me time :). Nice function.
12:41 yko If you want to help the hungry, do not give him a fish, give him a fishing rod
12:42 seb_ nice words
12:46 seb_ I did not understand your previous message. How can I offer patch for documentation?
12:47 yko if you are familar with git you can fork the project on github, make changes and then send pull request to author
12:48 seb_ man git
12:48 seb_ :)
12:48 yko ohoho, you would like it. but sometimes i'm saing that git is much clever than i am
12:49 seb_ it's ok ok. I know a little of it.
12:52 spleenjack left #mojo
12:54 spleenjack joined #mojo
13:22 dotan joined #mojo
13:24 avkhozov joined #mojo
13:25 perlrocks Twitter: "#perl lighttpd + perl + mojolicious = ? http://goo.gl/Q36Cw" --perloop http://twitter.com/perloop​/status/19745824753844224
13:26 seb_ left #mojo
13:28 rhaen omg!
13:28 rhaen he should have checked the wiki
13:28 rhaen and the guides
13:32 maez where can i read about ldap auth in mojo? pls
13:34 dotan rhaen: It's not in the guides - we have apache, nginx, but not lighty
13:35 yko there were discussion in google groups at http://groups.google.com/group/mojolicio​us/browse_thread/thread/55e492223fc772f8
13:38 fhelmberger joined #mojo
13:39 fhelmberger left #mojo
13:39 fhelmber_ joined #mojo
13:48 rhaen yeah. Lighty is dead
13:48 rhaen dead as in wget
13:48 rhaen or dead as in limewire
13:49 rhaen however, we have fantastic guidelines in the wiki how to contribute to the project :)
13:49 rhaen https://github.com/kraih/mojo/wiki/Fork-on-github
13:50 dotan I'm not sure "Lighty is dead" is a good enough answer. Because they'll tell you "but 4 years ago when Lighty was the new hawtness, we standardized all our environment on top of it?"
13:54 rhaen true :)
13:54 rhaen However, everyone is encouraged to contribute examples
13:54 rhaen I think we just don't have any lighttpd examples as not everyone is using lighttpd
13:55 rhaen dotan: true, it's a bad answer!
13:57 seb_ joined #mojo
14:04 R0d joined #mojo
14:15 forwardever joined #mojo
14:15 sri we once had unit tests for lighttpd when it was still relevant
14:23 AmeliePoulain joined #mojo
14:24 AmeliePoulain Hello, all! How to run generated (mojo generate app TestApp) as FastCGI application under the lighttpd server?
14:26 sri rhaen: https://github.com/kraih/mojo/blob​/885a5e8cdd2ef84a52a33b530d6aeabde​d654b34/t/mojo/lighttpd_fastcgi.t # in case you want to extract the config ;)
14:26 sri https://github.com/kraih/mojo/blob/885a5e8cdd2ef8​4a52a33b530d6aeabded654b34/t/mojo/lighttpd_cgi.t # another one
14:27 * sri waves
14:27 sri AmeliePoulain: i don't think we have existing examples for lighttpd yet, besides the deleted tests i linked above
14:28 sri lighttpd became rather unpopular this year
14:29 rhaen sri: it isn't webscale, is it?
14:29 sri nope
14:30 rhaen this here
14:30 rhaen http://redmine.lighttpd.net/issues/1200
14:30 rhaen was my bug. I reported it and we had lots of trouble with it.
14:30 rhaen and it was the reason why I removed lighttpd from our productions sites.
14:31 rhaen -s
14:31 rhaen AAAH! AND WHAT DID THEY DO? THEY CHANGED THE STATUS TO INVALID
14:31 rhaen WAAAA!
14:31 rhaen oh. sorry.
14:32 sri Oo
14:32 rhaen and no - I wasn't using tomcat (as written inside the ticket - it was a squid) - dumbasses!
14:33 rhaen oh, and guess what - it's still broken
14:33 rhaen I've implemented everything from scratch that time - based on Catalyst
14:33 rhaen (it's still runnning)
14:35 AmeliePoulain sri, where i can see the FastCGI examples? I was set up lighttpd for FastCGI and the test script (with CGI::Fast) is work
14:36 AmeliePoulain But I don't understand how to use FastCGI in mojolicious
14:36 AmeliePoulain sry for my bad english :)
14:36 sri "[15:27] sri: AmeliePoulain: i don't think we have existing examples for lighttpd yet, besides the deleted tests i linked above"
14:37 AmeliePoulain For nginx?
14:38 R0d use hypnotoad
14:38 rhaen AmeliePoulain: there is an example in the documentation if I rememeber correctly.
14:38 AmeliePoulain ok, thanks, I will tryin' it
14:39 sri http://mojolicio.us/perldoc?Moj​olicious/Guides/Cookbook#Nginx
14:39 rhaen https://github.com/kraih/mojo/blob/master/​lib/Mojolicious/Guides/Cookbook.pod#Nginx
14:39 yko i loca perldoc so much now!
14:39 yko *love
14:39 rhaen sri: I was second!
14:39 sri rhaen: ugly link, shame on you
14:39 rhaen hej hej - that was the reason why I was second!
14:40 rhaen That's alot stuff to type!
14:40 yko AmeliePoulain: due to your geolocation you may want to join #ru.pm there's much mojo-perople
14:40 AmeliePoulain yko, 10x
14:40 yko ... who also are bad at english...
14:41 sri :)
14:41 fhelmber_ left #mojo
14:41 AmeliePoulain I need to use lightweight web server (not only lighttpd :) for highload web application.
14:42 dotan yko: talk perl, not english :)
14:42 dotan AmeliePoulain: nginx?
14:43 rhaen Apache!
14:44 yko dotan: sometimes we need to find somebody just to drink beer and talk native lang...
14:44 fhelmberger joined #mojo
14:45 * yko going to have some beer and listen to one perl harper.
14:46 sri beer is a good idea
14:47 rhaen ooooh my god.
14:47 rhaen just saw the discussion around rhel5
14:47 rhaen the problem is not rhel5 but CentOS5
14:48 rhaen well, let's answer them :)
14:48 sri i actually attempted to push the perl requirement to 5.10 yesterday... but had to reverse it because of CentOS :(
14:48 rhaen btw. we are using CentOS5 and RHEL 6 here
14:48 rhaen so I can test everything! :)
14:48 kaare left #mojo
14:49 rhaen what I don't like is that rhel6 has only 5.10...
14:49 rhaen hej! 5.12 is out for ages!
14:49 sri anyone know when CentOS6 gets released?
14:49 rhaen That's the reason why perl isn't included inside the NetBSD os.
14:49 rhaen it would just ruin the language as we have to bind the perl version to the os releases
14:50 rhaen sri: I can ask someone trustworthy, hang on
14:50 sri i got a bad feeling that we'll have to support 5.8.x for a long time :(
14:51 rhaen ok, request sent, now I am waiting for the callback function to be fired.
14:51 rhaen sometimes it's cool when you can handle async :)
14:52 sri you're more confusing than usual ;p
14:52 rhaen ok, I have a centos maintainer here at work
14:52 sri ah
14:52 rhaen and I just asked him.
15:00 seb_ left #mojo
15:01 rhaen hm.
15:02 rhaen it might take some time (what I've read on the ML)
15:02 rhaen awesome, skip it then!
15:02 rhaen as 1.0 is out, they can use 1.0 and we can work on new features :)
15:03 rhaen btw, perl 5.12.2 just compiles without any problems
15:03 rhaen on centos5 64
15:05 sri wish it was that simple
15:06 rhaen I'll try to wiki it
15:06 sri think the 5.10 switch will be delayed for quite some time
15:08 koban left #mojo
15:09 rhaen sri: /msg incoming
15:09 GitHub1 joined #mojo
15:09 GitHub1 mojo: master Sebastian Riedel * eb923a9 (6 files in 5 dirs): added experimental title helper - http://bit.ly/hbEwwe
15:09 GitHub1 left #mojo
15:13 sri little unsure if title should be a reserved stash value too
15:14 sri maybe it should
15:15 forwardever sri: your pod viewer is great, maybe, the title should be placed more prominently at the top of the page, some documents have a huge "table of contents" and it is not immediatly clear what document one is looking at
15:16 sri not sure, would be rather tricky
15:21 forwardever why would it be tricky?
15:22 sri because you have to break up the pod part
15:22 sri you would have to make assumptions about the fprmat of pod documents
15:23 AmeliePoulain left #mojo
15:24 forwardever hmm, okay, you're the expert, just wanted to point this out, using cpan search, there is a navigation bar at the top, "Sebastian Riedel > Mojolicious-1.0 > Mojo" which makes it much easier to not get lost
15:25 sri it doesn;t generate pod dynamically
15:25 sri s/pod/html/
15:28 forwardever the title is already in the html title tag: <title>Mojolicious::Guides::Routing - Routing</title>, wouldn't it be rather easy to also put it more prominently at the top of each page? (Seems like you also make assumptions when it comes to the html title)
15:28 GitHub91 joined #mojo
15:28 GitHub91 mojo: master Sebastian Riedel * 3388e0e (3 files in 3 dirs): changed title helper slightly - http://bit.ly/hHc8aW
15:28 GitHub91 left #mojo
15:29 sri forwardever: yes, but then we have the title twice
15:30 sri i've tried it, looks wrong
15:33 GitHub194 joined #mojo
15:33 GitHub194 mojo: master Sebastian Riedel * ed7bc44 (1 files in 1 dirs): pod cleanup - http://bit.ly/dOEZCR
15:33 GitHub194 left #mojo
15:33 R0d left #mojo
15:45 seb_ joined #mojo
15:50 tempire_ joined #mojo
15:54 tempire_ Dude.
15:55 tempire_ It seems a short hop to have a 'view source' link in the perldoc plugin.
15:55 tempire_ and have all the source viewable with pin-stripe prettiness.
15:55 rhaen Dude, ...haaa......*harr* *harr* *harr*
16:08 marcus arrvied in london
16:09 tempire_ hooray!
16:09 tempire_ for what?
16:11 marcus new years celebration with friends
16:15 marcus wrote pod for oauth2 plugin and blog post on the plane. Now I just need to implement it and write some tests :)
16:17 sri \o/
16:19 sri this 5.10 thing is annoying the hell out of me
16:22 stephan48 why?
16:22 tempire_ comments, or the fact that the ghost of rhel5 lingers with centos?
16:23 sri both
16:23 sri people get so upset about it, like i want to steal their candy
16:23 tempire_ im in ur lnux, dwngrading ur perlz
16:23 sri i actually got two hate mails
16:24 tempire_ I can understand the problem.  I remember how scary installing  my own perl was for the first time.
16:24 tempire_ You get over it quickly, but I remember the fear.
16:25 tempire_ Just respond to them with http://search.cpan.org/~gugod/​App-perlbrew-0.15/bin/perlbrew
16:26 sri in the end the decison will come down to if modules like Mojo::DOM really need to be 10 times slower for everyone because a few are slacking with their updates
16:27 sri on 5.8.x we also might require prereqs for WebSockets
16:27 sri since the latest handshake uses SHA1
16:28 stephan48 cant you do runtime detection? like fallback to slow stuff if you find a ancient perl?
16:28 sri stephan48: who wants to maintain that?
16:29 stephan48 good job for the people who want a working mojo for their ancient perl :)
16:29 sri yea, but they are slackers
16:29 sri they are the last to step up
16:29 stephan48 so? simply say: do it yourself and solve the problem :)
16:30 sri i might turn it into a community decision
16:30 sri FIGHT!
16:30 stephan48 :)
16:31 tempire_ So there's your response - people who want it to remain on 5.8 can write the compatibility layer to do runtime detection.
16:31 tempire_ Obviously, no one who cares about 5.8 is going to step up to that.
16:31 tempire_ So you can use that as your reasoning going forward.
16:32 sri hehe
16:32 dotan rhaen: I expanded the bit about request data on the wiki (POST/GET parameters), because it's such a FAQ - I also added a link to this: http://corky.net/dotan/programming/mojo​licious-request-parameters-example.html
16:32 tempire_ "I asked the community to maintain it, no one did, so I assumed no one had a problem with it"
16:33 alnewkirk left #mojo
16:33 tempire_ I think it will be ok now that there's a 1.0 release.
16:33 tempire_ people who want it to work on 5.8 can use 1.0 indefinitely.
16:34 tempire_ Since those types of organizations, I'd guess, never upgrade, they'll never upgrade mojolicious either.
16:34 sri sounds reasonable
16:35 tempire_ You can put a note in the mojolicious pod, telling people if they want to use 5.8, use 1.0, and have a link to it.
16:35 tempire_ I wonder if that could be detected in the cpan install.
16:36 sri maybe we really have enough time to do it in mojolicious 2.0
16:37 dotan sri: will 2.0 take as long at 1.0? If so, us 5.8-lamers are safe...
16:38 dotan left #mojo
16:38 sri yea think so
16:42 perlrocks left #mojo
16:42 perlrocks joined #mojo
16:42 perlrocks Twitter: "Back to business as usual. :) http://bit.ly/gtjraf #perl #mojolicious" --kraih http://twitter.com/kraih/status/19795402966437888
16:43 snearch left #mojo
16:44 marcus ja babaika ja babaika
16:44 GitHub163 joined #mojo
16:44 GitHub163 mojo: master Sebastian Riedel * df21e10 (1 files in 1 dirs): pod cleanup - http://bit.ly/gpNdkS
16:44 GitHub163 left #mojo
16:44 marcus ra rucksack, ja rucksack
16:44 sri oO
16:45 marcus dora the explorer in russian or so
16:45 sri lol
17:07 kvorg joined #mojo
17:07 forwardever problem with 5.10 is that it is NOT trivial to install perl, so I can understand why people would like to stick with 5.8, I'm not a sys admin, so I use managed VPS, and switching my hosting provider just for perl 5.10 doesn't make any sense, because other things are much more important (like reliability, which many hosting providers can just not deliver)
17:08 sri forwardever: soon there will be no supported linux distribution left that ships 5.8
17:09 sri so if your hosting provider still has it you are not getting security updates
17:09 moritz forwardever: installing perl somewhere locally is quite trivial, if there's a C compiler available
17:09 sri you're pretty screwed then
17:09 moritz forwardever: even more so with App::perlbrew
17:09 sri and i have to agree with moritz
17:10 moritz in fact I've decided to install a fresh perl for every new site that I deploy
17:10 moritz disc space is cheap
17:11 moritz installing modules with cpanm (App::cpanminus) is also trivial
17:11 forwardever problem is that "trivial" has a totally different meaning for sys admins than for people like me :)
17:11 sri disk space will get more expensive soon, and then cheaper again
17:12 sri can't wait for everything to have SSD
17:12 forwardever I'm currently reading: "Compile and install your own perls" http://web.archiveorange.com/a​rchive/v/h050vnzOvK3yUsBFsU5O
17:12 forwardever so I suppose that this is what you mean ?
17:13 su-bzero title helper... hm. I have set title via helper in layout. So how to do like title .= " additional title" via helper in template?
17:13 perlrocks Twitter: "Mojolicious - an interesting thing. Digging. Important issue. Is it cool Pure Perl?" (ru) --mcsseifer http://twitter.com/mcsseife​r/status/19803204535451648
17:14 sri su-bzero: you might want to rephrase the question
17:14 sherr joined #mojo
17:15 sri su-bzero: but see Lite tutorial for examples
17:16 stephan48 forwardever: pls read about perlbrew
17:16 forwardever stephan48: it's already on my to do list
17:17 su-bzero O, sorry. I've made an error. title helper is nice.
17:17 sri :)
17:17 su-bzero sri: What about 'description' helper? Or 'h1'? ;))
17:17 GitHub2 joined #mojo
17:17 GitHub2 mojo: master Sebastian Riedel * b5dbcc0 (1 files in 1 dirs): improved title helper example - http://bit.ly/egCRKH
17:17 GitHub2 left #mojo
17:18 sri su-bzero: little too uncommon
17:18 ysyrota left #mojo
17:18 sri su-bzero: you can do that yourself ;)
17:19 su-bzero In every template we have % stash description => 'smth'; too. ;) As title.
17:19 sri add a helper for it
17:20 forwardever I'm using freebsd, so I suppose installing perl 5.12 using ports is the best option, however, I have to make sure that the system does not break, so I will probably have to do something like: "make PREFIX=/usr/home/example/local install", still not sure whether this is save...
17:21 sri wasn't perl in freebsd dual lived?
17:21 su-bzero sri: Yes. But this is additional lines of code. Now we don't need to create 'title' helper. ;)
17:21 sri or was it removed from core freebsd entirely?
17:22 yko It was removed afaik
17:22 yko 8.0 shipped without perl by default
17:23 sri ah
17:24 su-bzero They removed perl! ;(
17:24 su-bzero They like sed & awk and no dependencies. ;)
17:24 * moritz would have removed sed and awk and left perl :-)
17:27 GitHub88 joined #mojo
17:27 GitHub88 mojo: master Sebastian Riedel * b61ef91 (1 files in 1 dirs): pod cleanup - http://bit.ly/eDqb1f
17:27 GitHub88 left #mojo
17:27 su-bzero When I was in school and install FreeBSD 4.5, I was wondering how many p5-* packages were installed by default.
17:28 su-bzero I didn't know what p5-* packages are, but I thought that it's cool. ;))
17:29 sri those were the days
17:32 perlrocks left #mojo
17:33 spleenjack left #mojo
17:36 spleenjack joined #mojo
17:37 forwardever as already mentioned, os and software like apache and perl are managed by my hosting provider (including patches), there are quite a lot of things that depend on perl, so I was advised to not upgrade to perl 5.10, so I have to install a "second" perl... will read perlbrew documentation now and hope to get more answers...
17:41 GitHub129 joined #mojo
17:41 GitHub129 mojo: master Sebastian Riedel * ee593f3 (2 files in 2 dirs): small test improvement - http://bit.ly/f61F70
17:41 GitHub129 left #mojo
17:47 JonChisciotte joined #mojo
17:57 JonChisciotte Hi, I'd like to slightly modify the json renderer handler. It seems to me the only way to do it is to create the handler and to pass the data to the inline option's key in this way: http://paste.pocoo.org/show/hVHavQODRuMtUbEOgrP2/ . Maybe this is not the right way to do it, maybe I should modify data somewhere else, but where if I want to let the render command to handle the data? Thank you!
18:05 sri JonChisciotte: you could do that
18:06 sri in case you really need a new handler
18:06 sri normally i would just modify the data in the action
18:08 JonChisciotte sri: but it's a data that should always be modified everywhere before the rendering, it there a way to factorize this task someore? an utility method is the best choice?
18:08 JonChisciotte *somewhere
18:08 sri why would you want to modify json everywhere?
18:09 JonChisciotte sri: it's just a filter: I now I'll receive json keys formatted in someone and I want to make some replacement..
18:09 sri so you just want to modify the perl structure?
18:10 JonChisciotte sri: yes
18:10 sri use a helper then
18:10 sri app->helper(render_my_json => sub {...}); $self->render_my_json($json)
18:10 JonChisciotte sri: maybe I miserunderstood, but isn't the helper an utility method for templates? how to invoke it in code?
18:10 JonChisciotte oh, ok
18:11 sri helpers work everywhere
18:11 JonChisciotte it seems what I want, thank sri!
18:11 sri :)
18:11 tempire_ Is there a way to override embedded ep templates?
18:12 sri everything overrides them
18:12 tempire_ Ah, so it checks for normal files, first?
18:12 sri ye
18:12 tempire_ excellent
18:12 marcus wow, that is a lot
18:13 sri a lot of beer?
18:14 marcus it will be
18:14 marcus looking for a good beer pub in london atm
18:14 marcus Would rather have a coffee shop, but seems I'm in the wrong city for that.
18:14 sri oh, haha
18:14 * sri would expect every second house in london to be a pub
18:15 marcus yeah, there's a lot of them here
18:16 marcus just not sure where to go
18:16 marcus not too keen on 'real ale'
18:17 sri http://www.plastic.dsl.pipex​.com/germanbeer/london.html
18:18 sri :D
18:19 marcus good list :)
18:22 mateu joined #mojo
18:22 GitHub77 joined #mojo
18:22 GitHub77 mojo: master Sebastian Riedel * 765693b (1 files in 1 dirs): small test improvement - http://bit.ly/dSbVsW
18:22 GitHub77 left #mojo
18:23 * sri could use a beer too
18:29 avkhozov left #mojo
18:29 avkhozov joined #mojo
18:34 * kthakore passes sri  a sleeman's light :)
18:35 * marcus empties his grolsch weizen.
18:35 sri they make beer in canada?
18:36 sri whats a light beer?
18:37 kthakore sri: you will like it. Honey Beer which goes down very very smooth
18:37 kthakore I like hard liquer and smooth beer
18:39 * sri prefers real beer ;p
18:41 sri http://www.becks.de
18:42 * sri is drinking Flensburger today though
18:47 marcus I find becks a bit boring
18:47 marcus I prefer the 7-10% range of beers
18:47 sri blasphemy!
18:48 spleenjack left #mojo
18:49 dotan_ joined #mojo
18:52 tempire_ What font are you using for mojolicious?
18:52 sri myriad pro black
19:07 memememomo_ is now known as memememomo
19:07 memememomo is now known as memememomo_
19:08 sri really hope the latest websocket plans get buried quickly
19:08 sri TLS NPN handshake :S
19:09 sri some TLS extension nobody even supports yet
19:10 sri it would have to be added to openssl, then to Net::SSLeay, then to IO::Socket::SSL before we could even think about using it
19:10 JonChisciotte left #mojo
19:17 sri kthakore: honey beer does sound a little intriguing though
19:17 * sri likes honey wine
19:18 kaare joined #mojo
19:18 kthakore sri: you will just have to come to Canada so I can give you some :)
19:18 * sri starts walking
19:19 kthakore heh
19:19 * kthakore puts some beer in the fridge
19:20 kthakore when will you get here sri?
19:20 arthas left #mojo
19:22 * sri opens the door, sees the snow and turns around
19:23 * sri walks rigth back to the fire
19:23 forwardever left #mojo
19:23 sri we'll have to delay this ;p
19:26 kthakore hehhaha
19:26 baton8 joined #mojo
19:28 arpadszasz joined #mojo
19:48 sri http://cristgaming.com/pirate.swf # because it's that time of the day again
20:20 MojoGuest524 joined #mojo
20:20 MojoGuest524 From: http://community.livejourna​l.com/ru_perl/382225.html? (1 hits)
20:20 MojoGuest524 left #mojo
20:32 avkhozov left #mojo
20:47 sri hmm, wonder if the documentation would be easier to understand if i used $c/$app instead of $self
20:50 su-bzero is now known as su-bzero[A]
20:56 diegok sri: probably $app in M::Lite would be easier... not sure for other apps... $c should be easier for catalyst users...
20:56 sri actually you wouldn't see $app in lite
20:56 sri ;p
20:57 sri just $c and app->
20:57 diegok sri: hmmm :)
20:58 diegok sri: I'm using $self (https://github.com/diegok/PhotoB​ooth/blob/master/photobooth.pl) and now I think it's wrong...dammit :(
20:59 sri you are using it right
20:59 sri $self could also be written as $c though
20:59 diegok sri: sure, and as $diegok :p
20:59 sri :)
20:59 sri i wonder if that would amke everything more transparent
21:00 diegok what?, to use $diegok on pod? :p
21:00 sri yea ;p
21:00 diegok $c can be right... it's really a context...
21:01 sri in a controller class it would be less correct
21:01 diegok I've used $ctx a lot on catalyst plugins/roles/etc
21:01 diegok yeah, in controllers $self look much better
21:02 sri for consistency both should be the same though
21:02 sri thats why i'm unsure
21:02 diegok sorry, I understand, so, I'm also unsure :(
21:02 sri i'd like to hear more opinions about it
21:16 spleenjack joined #mojo
21:18 forwardever joined #mojo
21:24 forwardever sri: finally got perl 5.12.2 installed without any bigger problems, as it is a "second" perl installation, it seems that I have to adjust the shebang line in /bin/mojo and in all scripts located in the script path of my apps, are there any other modifications that I have to make and might there arrise any problems using the second perl?
21:26 sri forwardever: no you don't have to do anything with mojolicious or your app
21:26 sri forwardever: just change PATH
21:26 sri our shebang line is portable for a reason
21:27 forwardever okay, thanks for the hint, have to read up on PATH
21:28 sri take a unix shell crash course ;)
21:28 forwardever :)
21:28 sri http://peepcode.com/products/meet-the-command-line # really good introduction
21:29 tempire_ Hello command line.
21:40 sri http://hurl.it/ # lol
21:43 sri a 500 page like that would be neat for production mode
21:45 fhelmberger left #mojo
21:55 tempire_ mojolicious' own fail whale?
21:55 sri yea
21:55 sri unicorn vomiting a rainbow is hard to beat though
21:56 tempire_ how about a unicode snowman burning down new york city with laser eyes?
21:56 sri you're the man
22:23 perlrocks2 joined #mojo
22:23 perlrocks2 left #mojo
22:24 kaare left #mojo
22:35 perlrocks2 joined #mojo
22:35 sri test
22:35 perlrocks2 left #mojo
22:47 vel joined #mojo
22:55 sri gonna remove the !tweet command from the bot i guess, nobody uses it anyway
22:56 vel left #mojo
22:57 tempire_ I vote for leaving it in
22:58 tempire_ One day I'll have something interesting enough to tweet with it.
22:58 daviddelikat joined #mojo
22:58 tempire_ !tweet Mojolicious: Big in Japan.  Seriously.
22:58 arpadszasz left #mojo
22:58 sri ;p
22:59 sri it's a much better example without the whole oauth crap
22:59 sri streaming api only requires basic auth
22:59 tempire_ If you leave it in, I'll make it my official position to document mojolicious-related engrish with it.
23:03 sri is there a reason why i can't delete tweets?
23:16 forwardever left #mojo
23:49 spleenjack left #mojo
23:52 daviddelikat left #mojo

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