Camelia, the Perl 6 bug

IRC log for #mojo, 2010-10-15

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

All times shown according to UTC.

Time Nick Message
00:23 Akron sri: In Mojo::URL there's a typo in line 21.
00:37 achromic shouldn't mojolicious be listed on this wikipedia page? http://en.wikipedia.org/wiki/Comparis​on_of_web_application_frameworks#Perl
00:49 GitHub162 joined #mojo
00:49 GitHub162 mojo: master Sebastian Riedel * 1f22e83 (1 files in 1 dirs): fixed typo - http://bit.ly/cMcfSg
00:49 GitHub162 left #mojo
00:49 sri Akron: thanks fixed
00:50 sri achromic: yes it should
00:51 sri vti: no idea what you mean
00:52 Akron sri: Wow - fast! :) And what do you think about adding "\{\}" to $Mojo::URL::PARAM as xantus did to support Template-URIs?
00:52 sri Akron: i've never seen it before
00:53 sri would have to read up on template urls
00:53 sri does it clash with any of the uri rfcs?
00:54 Akron It shouldn't - however I can't find it in http://tools.ietf.org/html/rfc3986
00:55 Akron The syntax is defined in http://tools.ietf.org/html/draf​t-hammer-hostmeta-13#section-3.1.1 - where it's not escaped.
00:56 sri not even a finished spec
00:56 Akron Ah - seems to be defined as "unsave": http://tools.ietf.org/html/rfc1738
00:56 Akron No - not finished.
00:57 sri thats a spec clash yea
00:59 sri also with 3986 as far as i can see, since they are not mentioned
00:59 sri why would support be needed on the Mojo::URL layer anyway?
00:59 Akron Yep - no update regarding { and }.
01:01 Akron For a simple webfinger plugin I constructed the template URI by cloning the actual req-URL, stripping path and query etc. (for the default case) and then add the {"q" => '{uri}'} parameters.
01:02 Akron But it's no problem to do this with local appending or string appending ...
01:02 sri ok :)
01:03 Akron But I am wondering about the spec - I am pretty sure I saw this templating syntax elsewhere ...
01:03 Akron Ah - I think it was the OpenSearch spec.
01:04 Akron Yepp: http://www.opensearch.org/Specifications/Op​enSearch/1.1#OpenSearch_URL_template_syntax
01:10 Akron left #mojo
01:10 perlrocks Twitter: "RT @vtivti: #Bootylicious got sponsorship. #perl #mojolicious" --kraih http://twitter.com/kraih/status/27395107425
01:14 Akron joined #mojo
01:19 Akron This templating thing seems to be pretty common - but it's arguable if this is a true URI.
01:27 vti sri: bootylicious themes are now just simple mojolicious plugins (and only 1 file) where you overload some helpers, templates and static files... here is a wordpress theme for bootylicious http://vti.showmetheco.de/bootylicious.jpg and theme file looks like this https://gist.github.com/9d9d9cd06dbcc979a767, creating a theme is a peace of cake!
01:28 vti *piece :D
01:33 Akron vti: Amazing!
01:45 vti have to sleep now :) nn
01:45 Akron Me too. Bye!
01:55 Akron left #mojo
02:30 perlrocks Twitter: "Mojolicious garbled output ..." (ja) --amasawa http://twitter.com/amasawa/status/27401806384
02:35 janus left #mojo
02:48 janus joined #mojo
02:59 yakudzo joined #mojo
04:04 tholen42 joined #mojo
04:06 tl left #mojo
05:16 koban joined #mojo
06:02 kvorg left #mojo
06:03 diegok left #mojo
06:07 diegok joined #mojo
06:09 ltriant left #mojo
06:36 kvorg joined #mojo
07:14 marcus_ fucking fanboys
07:14 marcus_ seems node.js is the new toy for idiots to drool over.
07:26 perlrocks Twitter: "Mojo + Mojolicious + Mojolicious:: Lite The Story" (ja) --hatyuki http://twitter.com/hatyuki/status/27419781140
07:28 perlrocks Twitter: "RT @ publichtml: Perl PHP programmers to develop into a large company moves by Mr. Itou Naoya. Mojolicious are talking about something or something. # Yapcasia" (ja) --AE_PerlIsm http://twitter.com/AE_PerlIsm/status/27419877285
07:28 perlrocks Twitter: "Perl PHP programmers into the development of a large company moves by Mr. Itou Naoya. Mojolicious are talking about something or something. # Yapcasia" (ja) --publichtml http://twitter.com/publichtml/status/27419876899
07:29 vti marcus_: check this out http://vti.showmetheco.de/bootylicious.jpg
07:37 perlrocks Twitter: "What stories and w RT: @ hatyuki: Mojo + Mojolicious + Mojolicious:: Lite The Story" (ja) --fudgemori http://twitter.com/fudgemori/status/27420288365
07:41 marcus_ vti: looks bootylicious
07:50 ysyrota joined #mojo
07:55 perlrocks Twitter: "RT! Publichtml: Perl PHP programmers to develop into a large company moves by Mr. Itou Naoya. Mojolicious are talking about something or something. # Yapcasia" (ja) --perlism http://twitter.com/perlism/status/27421071504
07:55 marcus_ I'm afraid of .jp
07:58 marcus_ vti: did you change everything ? :)
08:14 sri moin
08:14 sri vti: looks great
08:15 ka2u_ joined #mojo
08:16 ka2u_ left #mojo
08:22 vti marcus_: oh ye, made model separated which simplified everything
08:34 spleenjack joined #mojo
08:45 marcus_ good idea
09:58 marcus_ vti: http://labs.nordaaker.com/ coming soon ;)
09:59 vti marcus_: looks familiar :D
10:14 sri vti: i like your new programming style :)
10:15 sri much cleaner :D
10:15 sri http://redis.io/logocontest/index.php?desc # 24 is still winning!
10:16 sri wonder if those 128 votes for #107 are real
10:17 sri somehow i completely missed #106, thats very clever logo for a key/value store
10:17 sri drawn differently it could be awesome
10:30 sri marcus: yea those node.js fanboys are funny
10:30 marcus_ sri: agree, new bootylicious is so much cleaner.
10:30 marcus_ sri: I had one trying to convince me I shouldn't use nginx because node.js is 20% faster.
10:30 sri nobody programs javascript by choice
10:30 sri lol
10:31 sri because of the new benchmark in the latest node.js slides?
10:31 marcus_ yes
10:31 marcus_ he went to the talk
10:31 sri hahahaha
10:31 marcus_ node.js fanboys are the new rails fanboys
10:31 sri naah
10:31 sri it's the php crowd
10:32 marcus_ rails fanboys were the php crowd too
10:32 sri true
10:33 sri they should just add more languages to browsers :S
10:34 marcus_ most languages aren't as easy to sandbox as javascript
10:34 marcus_ lua would be nice tho
10:34 sri ye
10:34 sri lua looks so nice
10:34 marcus_ did you play with löve?
10:34 sri nope
10:34 marcus_ ( http://love2d.org/ )
10:35 sri i know lua mostly from hacking WoW addons xD
10:35 sri still awful at it though :S
10:36 marcus_ ;)
10:36 marcus_ was thinking löve would be really neat for iphone games
10:37 sri looks neat
11:00 sri oh, cool new movie
11:00 sri Red trailer looks really fun
11:11 rhaen ha!
11:17 marcus_ left #mojo
11:35 spleenjack1 joined #mojo
11:40 spleenjack left #mojo
11:49 yakudzo left #mojo
12:08 forwardever joined #mojo
12:27 spleenjack1 left #mojo
12:30 avkhozov joined #mojo
12:31 spleenjack joined #mojo
12:32 avkhozov hi all
12:33 spleenjack1 joined #mojo
12:33 avkhozov how I can invoke internal redirect in mojolicious controller ?
12:33 avkhozov like forward in java servlets
12:37 spleenjack left #mojo
12:46 tempire left #mojo
12:59 fhelmber_ joined #mojo
12:59 spleenjack joined #mojo
13:00 spleenjack2 joined #mojo
13:03 spleenjack1 left #mojo
13:06 spleenjack left #mojo
13:10 etc joined #mojo
13:12 etc Hi *
13:14 etc i want to play with mojolicious. can someone point me to an document/example where i can see how authentication can/should be done?
13:20 alnewkirk left #mojo
13:21 perlrocks left #mojo
13:34 MojoGuest489 joined #mojo
13:36 MojoGuest489 left #mojo
13:36 MojoGuest374 joined #mojo
13:36 MojoGuest374 left #mojo
13:39 MojoGuest448 joined #mojo
13:39 MojoGuest448 From: http://dev.xantus.org/ (2 hits)
13:39 MojoGuest448 left #mojo
13:39 MojoGuest444 joined #mojo
13:39 MojoGuest444 From: http://dev.xantus.org/ (3 hits)
13:49 avkhozov left #mojo
14:05 MojoGuest234 joined #mojo
14:08 MojoGuest234 left #mojo
14:10 kvorg Akron: I have no idea at what level you need the URI thingy, but there is a tag helper for manipulation an uri to here, including REST queries, here: http://github.com/kvorg/mojoli​cious-plugin-tag_helpers_extra
14:10 kvorg (self promotion)
14:15 kvorg avkhozov: there are no internal redirects in Mojolicious, we consider them bad engeneering. Try to route correctly or use a real redirect. Sorry about that.
14:27 kvorg ietc: It is recommended to start with Mojolicious::Lite applicatons, and to read the tuttorial in perldoc Mojolicious::Lite, and then continue with Mojolicious::Guides::{Routing,Rendering}. The concept of plugging in authentication can be found at http://github.com/kraih/mojo/blob/m​aster/lib/Mojolicious/Lite.pm#L470. Basic auth by tempire is here: http://search.cpan.org/~tempire/Mo​jolicious-Plugin-BasicAuth-0.02/li​b/Mojolicious/Plugin/BasicAuth.pm
14:27 rhaen etc: still around?
14:27 kvorg etc: Also, don't forget that you have encrypted session cookies automagically as soon as you put any value in the session. Sometimes that s is enough for easy problems.
14:28 kvorg no idea, but people do find their answers on the irs weblog, so please do correct/amend.
14:28 rhaen ah :) yep, and we should file them in the wiki :)
14:28 kvorg how is your wiki thing going? I am considering doing the static dispatch section next for the Handbook.
14:29 rhaen kvorg: oh, it's not my wiki but the official wiki of mojolicious :)
14:29 kvorg u can start with the FAQs I seem so often lately, such as internal redirect
14:29 kvorg oh, i know, but it is your wiki too :-P
14:29 rhaen right, I'll add it right now.
14:30 kvorg How do you enable sessions? used to be a frequent one in the spring.
14:30 kvorg How do I start/stop writing logs/stderror is the most frequent lately though.
14:32 kvorg people much about with things like app->log->path(undef) and app->log->handle(\*STDERR), while the easiest thing is to remove (or create, for lite apps) the log dir.
14:32 rhaen yep, everyone wants to use stuff to "print out" debugging stuff.
14:32 rhaen kvorg: btw, it's documented :(
14:32 kvorg also they get confused when they deploy the app and don't understand that their logs now go to another locations, such as apache log ...
14:32 kvorg all of this is documented, but they keep asking
14:32 rhaen yup.
14:33 rhaen as you don't know where to start reading the docs.
14:33 kvorg rahen: are u using 2 irc clients? u come in many colors.
14:33 rhaen the best would be an image map with linked pages
14:33 kvorg i have a section on how to read the docs in the Handbook, steal it.
14:33 rhaen hm. really? I am using irssi - and since 2 days I am using it from my new server
14:34 kvorg "kvorg: btw, it's documented :(" and "kvorg: oh, it's not my wiki but the official wiki of mojolicious :)" come in a different color, maybe it is because of the emoticons.
14:34 * kvorg emoticates.
14:34 rhaen ah, yes. that's possible
14:34 rhaen like: :(
14:35 rhaen different color :)
14:35 kvorg nope, not this time ...
14:35 * kvorg is puzzled.
14:35 rhaen hm, maybe I pressed funny keys by accident
14:35 * kvorg suspects rhaen is a multiple person (reference: The * Void trilogy)
14:36 rhaen yes. I am a hashref. You'll never know what you get.
14:36 rhaen You are lost in braces and hashlevels
14:36 * kvorg serializes rhaen.
14:36 rhaen so - time to go home. Cya later!
14:37 * kvorg waves.
14:37 * rhaen waves.
14:39 MojoGuest831 joined #mojo
14:39 MojoGuest831 From: http://dev.xantus.org/ (4 hits)
14:39 MojoGuest831 left #mojo
14:39 etc kvorg: thanks for the links. I read some of the docs, but skipped ::Lite. I didn't want to use ::Lite mostly because without ::Lite it looked more like catalyst :-)
14:41 MojoGuest444 left #mojo
14:41 MojoGuest408 joined #mojo
14:41 MojoGuest408 From: http://dev.xantus.org/ (5 hits)
14:41 MojoGuest408 left #mojo
14:41 MojoGuest73 joined #mojo
14:41 MojoGuest73 From: http://dev.xantus.org/ (6 hits)
14:55 kvorg etc: lol, i get you. But lite is generally good to start with, it has simpler syntax and good defaults, therefore the tutorial - but it still gives you the same power, nothing is lost (just look at the Mojolicious::Lite code, elegant and small). As you know, the guides give more hints for using the non-lite stuff. Incidentally, sri is working on the next guide, which will be porting from Lite to full.
15:03 koban left #mojo
15:03 koban joined #mojo
15:11 koban left #mojo
15:16 etc kvorg: I am looking forward to see the new guides. Maybe i will start with ::Lite. At least I started reading all the ::Lite documents. I try to switch to Mojolicious to get rid of the 10.000 dependencies for Catalyst. But right now Mojolicious is missing some comfort (or my brain needs some new connections).
15:24 etc About FAQs. There is Mojolicious::Guides::FAQ with only two questions. And http://github.com/kraih/mojo/wiki has no FAQ. Therefore I have to ask all the stupid questions here :-)
15:25 xantus :|)
15:25 xantus heh, mustash smile
15:30 kvorg left #mojo
15:36 spleenjack2 left #mojo
15:38 und3f[A] is now known as und3f
15:42 ysyrota left #mojo
15:46 spleenjack joined #mojo
15:51 rhaen etc: there is no faq inside the wiki, correct :)
15:51 rhaen etc: all your question in here will be put inside a wip document to be answered later
15:51 rhaen etc: inside the wiki.
15:56 a|newkirk[assoc] joined #mojo
15:59 marcus left #mojo
16:00 marcus_ joined #mojo
16:19 sri cookies are not encrypted btw
16:19 sri just signed
16:24 forwardever left #mojo
16:29 forwardever joined #mojo
16:30 forwardever sri: have you checked the latest version of the ResourcefulRoutes plugin, how to proceed, should I create a git repo?
16:31 forwardever http://gist.github.com/626226
16:31 sri forwardever: i didn't like the pluralize thing, there are way better modules on cpan
16:32 forwardever can you point me to such a module on cpan, what do you mean by pluralize thing?
16:32 sri forwardever: marcus linked one earlier i think
16:32 sri single_to_plural of course
16:33 marcus_ left #mojo
16:33 perlrocks joined #mojo
16:36 forwardever not sure whether it makes sense to include such a complex module for such a "simple" task, as one could create a way to pass plural version in cases the simple sub does not work
16:38 sri well, i don't like the whole singular/plural thing
16:39 forwardever hmm, okay, just tried to keep close to the rails examples, which might not be good in this case ?
16:39 sri which rails example?
16:40 forwardever the way rails handles this stuff
16:40 sri got a link?
16:40 sri i've worked with rails and never seen this
16:41 forwardever http://guides.rubyonrails.org/routing.html
16:41 stephan48 with booytilicious i got some wired error... http://abc123.pastebin.com/V1Snxs4S also my cpanp doesnt find it on cpan and some tests fail.. http://abc123.pastebin.com/9aCzTnE4
16:42 sri forwardever: there is no singular
16:42 sri forwardever: can you be more specific?
16:42 forwardever there is a section: Singular Resources
16:44 sri ok, but i don't see automatic conversion
16:45 vti stephan48: try to use git version
16:45 forwardever "Because you might want to use the same controller for a singular route (/account) and a plural route (/accounts/45), singular resources map to plural controllers."
16:45 forwardever so there must be kind of a conversion
16:48 sri forwardever: no there is not
16:48 sri resources vs resource
16:48 sri two methods
16:49 sri or wait
16:49 forwardever geocoder mapping to the Geocoders controller:
16:49 janus haha, nice topic
16:50 janus i wrote a c/xs version ;)
16:50 janus pluralization i mean
16:51 sri rails actually does have a pluralize method
16:51 janus boils down to a static rule table
16:52 stephan48 vti: i use git ver now :) its from git version
16:52 stephan48 also updated mojo just to be sure
16:55 spleenjack left #mojo
16:55 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/7Z79zG Hatena Diary" (ja) --satojkovic http://twitter.com/satojkovic/status/27459906008
16:56 forwardever sri: have to go, maybe you can provide me with your thoughts on it (will read IRC log), so I can improve it based on your suggestions, thanks
16:57 sri forwardever: well, the rails version seems smarter
16:57 forwardever as it can autodected single/plural?
16:57 sri and then some
16:58 sri we have no singular/plural conventions for controllers at all though
16:58 sri our users might actually expect singular controller name
16:58 sri *+a
17:00 marcus joined #mojo
17:00 marcus 18:58 <@mst> marcus: I'd like to see mojo split up and then a fatpack tree version or equivalent to provide the "single tarball" install
17:00 sri i'd like mst to split up
17:00 marcus into atoms?
17:01 sri would work for me
17:01 stephan48 into head and body?
17:02 marcus moose devs hatin' on zero deps in #moose-dev ;)
17:02 sri is it that time of the year again? :)
17:03 marcus I'm defending your honor.
17:03 forwardever left #mojo
17:03 marcus mst says he avoids non-core xs modules.
17:04 * sri hands marcus some shiny armor
17:04 sri i hope ctypes will fix the xs problem soon
17:05 sri repo activity doesn't look too good though
17:07 vti stephan48: tests are broken now, i was going to fix them
17:08 vti stephan48: and you should use mojo that goes with bootylicious, it always has the right version
17:08 stephan48 k
17:08 stephan48 mh...
17:16 marcus git submodule init ; git submodule update
17:17 vti or with one command git submodule update --init
18:05 spleenjack joined #mojo
18:12 stephan48 should i try that version again?
18:15 stephan48 still it doesnt find it
18:26 kvorg joined #mojo
18:46 Htbaa joined #mojo
18:47 kvorg left #mojo
18:50 Kulag left #mojo
18:55 fhelmber_ left #mojo
19:41 marcus watchin Red
20:02 achromic left #mojo
20:29 vti stephan48: i just fixed the tests, try the latest commit
20:33 a|newkirk[assoc] left #mojo
20:38 Kulag joined #mojo
20:54 stephan48 ok it finds mojo now at least
20:55 stephan48 http://abc123.pastebin.com/UWzkM2xf <- while testing
20:55 vti forgot one file :D
20:56 stephan48 :)
20:56 vti done
20:56 vti i started working on wordpress theme
20:57 vti looks like this http://vti.showmetheco.de/bootylicious.jpg
20:57 stephan48 http://abc123.pastebin.com/VTsqK2BZ
20:57 stephan48 now it fails in mojo :)
20:57 vti oh, that's ok
20:58 stephan48 while testing it(Booty makefile detected both)
20:58 stephan48 cool :)
20:58 vti i mean it's not harmful :)
21:00 stephan48 Warning: Directory '/usr/local/bin/articles' does not exit at /usr/local/share/perl/5.10.0/Bo​otylicious/DocumentIterator.pm line 24. ;)
21:00 vti that's ok
21:00 stephan48 will work when i have a config file?
21:00 vti hm
21:01 vti you can run without installation
21:01 vti i don't install it ever actually
21:02 vti perl bootylicious daemon and you're done
21:05 stephan48 cool :)
21:07 stephan48 can i also include custom controlers?
21:09 vti to gain what? you can do everything within plugins, like the search plugin that adds '/search' route
21:09 stephan48 cool
21:09 marcus stephan48: probably easier to embed bootylicious
21:09 stephan48 marcus: in my own app? :)
21:10 marcus sri supports that afaik]
21:10 * vti never tried it though :)
21:11 marcus http://search.cpan.org/~kraih/Mojoli​cious-0.999929/lib/Mojolicious/Guide​s/Routing.pod#Embedding_Applications
21:14 perlrocks left #mojo
21:14 vti perl doesn't rock anymore :(
21:20 kvorg joined #mojo
21:23 vti why some hosting providers forbid running an irc bot?
21:25 marcus vti: because some irc bots get attacked by script kiddies with DDOS
21:25 marcus that happens more on efnet than around these parts tho.
21:30 stephan48 "20101015-testeintrag.txt" <- is this a correct article filename?
21:33 vti ye
21:34 stephan48 k and then in that file comes the text? f.e. "test"?
21:34 vti you can use .pod or .md for example too
21:34 stephan48 k
21:35 vti .txt won't be parsed at all i hope :D
21:36 stephan48 ebut should work? :)
21:36 stephan48 -e
21:36 stephan48 http://stejau.de:3000/ <- atm i am stuck with this
21:37 vti hm, seems you don't have metadata
21:38 vti put at the top of your article 'Title: Foo\n Tags: foo, bar'
21:38 vti and an empty line before the content
21:39 stephan48 cool :)
21:41 vti hm, where is your menu?
21:42 stephan48 disabled i think...
21:43 stephan48 i have a empty menu hash in my config
21:43 vti is there a mojolicious group on linkedin?
21:43 vti stephan48: ok :)
21:44 stephan48 what i dislike is atm the size of the tags, could be bit smaller but still awesome work :)
21:44 stephan48 vti++
21:44 stephan48 these fat blog systems always annoyed me
21:45 vti stephan48: agree, i would really appreciate a patch ;p
21:46 vti i am not that good in desing
21:46 vti *design
21:46 stephan48 me neither
21:46 stephan48 ;)
21:46 vti that's why there is only one image :)
21:48 stephan48 http://stejau.de:3000/ is this ok for you?
21:52 vti hm
21:52 vti i guess we should add a bit more space before the content too
21:57 stephan48 http://abc123.pastebin.com/GHe1FKGb
21:59 Htbaa left #mojo
21:59 vti big change :)
21:59 stephan48 http://stejau.de:3000/ - a bit more space
21:59 stephan48 :)
22:01 stephan48 i would send you a pull request but the machine is atm not prepared for github
22:02 stephan48 actually i would give the content a own div tag
22:02 * vti grabs a beer
22:02 stephan48 so you can style it seperated
22:02 stephan48 :)
22:02 vti true
22:02 stephan48 i will send that along with the patch for the space ;)
22:03 vti gut :)
22:18 stephan48 vti: done i think, can you look if it looks sane in the app?
22:20 stephan48 http://files.stejau.de/0001-added-container​-for-article-content-added-a-space-be.patch
22:20 vti i'd call it article->content
22:21 stephan48 mh?
22:21 vti i mean 'article-content' :)
22:24 stephan48 http://files.stejau.de/0001-re​named-content-container.patch
22:25 vti patch failed... hm
22:26 vti last git version?
22:26 stephan48 mh?
22:28 stephan48 git version 1.7.1
22:28 vti error: patch failed: bootylicious:411
22:28 vti i mean git pull :)
22:28 stephan48 ye
22:28 stephan48 its current
22:31 MojoGuest73 left #mojo
22:53 und3f is now known as und3f[A]
22:58 memowe joined #mojo
23:22 alnewkirk joined #mojo
23:48 marcus hey, alnewkirk
23:49 alnewkirk hi marcus, whasssup
23:49 marcus alnewkirk: hacking on the big elk a bit
23:50 marcus you?
23:52 alnewkirk cranking out CPAN modules like crazy
23:52 alnewkirk marcus^
23:53 marcus alnewkirk: nice.
23:53 alnewkirk Scrappy, Mongrel, ..
23:53 alnewkirk Scrappy is awesome, has auto-forking now
23:54 marcus mongrel is C, right?
23:55 marcus oh, I was thinking of Mongrel2

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