Camelia, the Perl 6 bug

IRC log for #mojo, 2010-09-24

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

All times shown according to UTC.

Time Nick Message
00:09 brunov left #mojo
01:03 a|newkirk[assoc] joined #mojo
01:20 a|newkirk[assoc] left #mojo
01:20 alnewkirk|com joined #mojo
01:35 fod left #mojo
02:05 MojoGuest524 joined #mojo
02:05 MojoGuest524 From: http://www.google.com/search?sourceid​=chrome&ie=UTF-8&q=html5+irc (1 hits)
02:06 MojoGuest970 joined #mojo
02:06 MojoGuest970 From: http://www.google.com/search?sourceid=ch​rome&ie=UTF-8&q=ExtJS+IRC+Client (1 hits)
02:07 MojoGuest970 left #mojo
02:07 MojoGuest524 left #mojo
02:35 janus left #mojo
02:41 janus joined #mojo
03:36 ash_ left #mojo
03:54 tempire dude.
03:55 tempire command-t vim plugin is everything I've ever dreamed of.
04:04 tholen42 joined #mojo
04:05 tl left #mojo
05:08 dotan left #mojo
05:09 tholen42 left #mojo
05:09 janus left #mojo
05:09 ltriant left #mojo
05:09 Alias_ left #mojo
05:09 Kulag left #mojo
05:09 jawnsy left #mojo
05:09 phillipadsmith left #mojo
05:09 ka2u left #mojo
05:09 plu left #mojo
05:09 polvo left #mojo
05:09 garu left #mojo
05:09 GabrielVieira left #mojo
05:09 perlrocks left #mojo
05:09 tempire left #mojo
05:09 und3f[A] left #mojo
05:09 cognominal left #mojo
05:09 marcus_ left #mojo
05:09 Alias left #mojo
05:09 mfontani left #mojo
05:09 robinsmidsrod left #mojo
05:09 alnewkirk|com left #mojo
05:09 esskar left #mojo
05:09 al left #mojo
05:09 meraxes left #mojo
05:09 ashleyde1 left #mojo
05:09 omega left #mojo
05:09 ryanc left #mojo
05:10 su-bzero_ left #mojo
05:11 su-bzero joined #mojo
06:00 sri moin
06:01 koban joined #mojo
06:01 janus joined #mojo
06:01 alnewkirk|com joined #mojo
06:01 ltriant joined #mojo
06:01 Alias_ joined #mojo
06:01 GabrielVieira joined #mojo
06:01 Kulag joined #mojo
06:01 esskar joined #mojo
06:01 perlrocks joined #mojo
06:01 tempire joined #mojo
06:01 jawnsy joined #mojo
06:01 und3f[A] joined #mojo
06:01 phillipadsmith joined #mojo
06:01 ka2u joined #mojo
06:01 al joined #mojo
06:01 meraxes joined #mojo
06:01 plu joined #mojo
06:01 polvo joined #mojo
06:01 cognominal joined #mojo
06:01 ashleyde1 joined #mojo
06:01 marcus_ joined #mojo
06:01 omega joined #mojo
06:01 garu joined #mojo
06:01 Alias joined #mojo
06:01 robinsmidsrod joined #mojo
06:01 mfontani joined #mojo
06:01 ryanc joined #mojo
06:01 sri oh netsplit
06:01 sri moin again
06:07 marcus_ HMM
06:07 marcus_ cmd-t vim plugin sounds shiny
06:08 marcus_ 'pimp my vim'.
06:11 * sri just can't leave textmate behind
06:11 tholen42 joined #mojo
06:12 marcus_ I'm still at textmate too
06:12 marcus_ I don't use as many plugins as I used to tho.
06:13 marcus_ I'm annoyed that the GetBundle bundle seems to have disappeared
06:13 esskar_ moin
06:16 marcus_ oh, found an alternative installation - http://solutions.treypiepmeier.com/2009/02/25/in​stalling-getbundles-on-a-fresh-copy-of-textmate/
06:35 omega marcus_: GetBundle != GetBundles
06:35 omega GetBundles is the future :p
06:42 kvorg joined #mojo
06:47 a|newkirk[assoc] joined #mojo
06:49 koban left #mojo
06:49 koban joined #mojo
06:51 koban left #mojo
06:51 koban joined #mojo
06:51 alnewkirk|com left #mojo
06:51 a|newkirk[assoc] is now known as alnewkirk|com
06:52 murata joined #mojo
07:01 ltriant left #mojo
07:07 tholen42 left #mojo
07:12 tholen42 joined #mojo
07:15 esskar_ left #mojo
07:20 dotan joined #mojo
07:22 Alias__ joined #mojo
07:22 alnewkirk|com left #mojo
07:26 murata left #mojo
07:26 ka2u left #mojo
07:27 ka2u joined #mojo
07:27 Alias_ left #mojo
07:39 tholen42 left #mojo
07:39 GitHub153 joined #mojo
07:39 GitHub153 mojo: master Sebastian Riedel * 576ba82 (1 files in 1 dirs): cleanup - http://bit.ly/acHhr7
07:39 GitHub153 left #mojo
07:41 fod joined #mojo
07:42 memememomo left #mojo
07:42 GitHub78 joined #mojo
07:42 GitHub78 mojo: master Sebastian Riedel * fd8f801 (1 files in 1 dirs): cleanup - http://bit.ly/9uQHcu
07:42 GitHub78 left #mojo
07:42 memememo_ joined #mojo
07:43 memememo_ left #mojo
07:45 memememom_ joined #mojo
07:48 memememom_ left #mojo
07:53 tholen joined #mojo
07:57 ysyrota joined #mojo
08:02 GitHub69 joined #mojo
08:02 GitHub69 mojo: master Sebastian Riedel * 7e17a93 (3 files in 3 dirs): added b function to all Mojo::Template templates - http://bit.ly/90qsAI
08:02 GitHub69 left #mojo
08:06 cognominal left #mojo
08:15 jest joined #mojo
08:17 kvorg hello
08:18 kvorg i implemented some extra tags - radio buttons and check boxes that support multiple values per name and take a checked=>1 attribute to specify defaults (overriden by and parameter)
08:18 memememomo_ joined #mojo
08:19 kvorg and a table helper (basically <%= table [ [ qw/Name A B C/ ] => { class=>'rowtitle' }, [ 'John' => { class=>'celltitle' }, 3, 5, 6 ], [ 'Mary', 1, 3, 8 ] ] %>), but some functionality is not implemented yet
08:19 memememomo_ is now known as memememomo
08:19 kvorg its a separate plugin, based on TagHelpers for now. Is that cool?
08:20 kvorg Will do a pull request when table extras (caption, row/column headers) are finished, but need feedback on syntax.
08:20 memememomo left #mojo
08:21 memememomo_ joined #mojo
08:21 sri sounds good, but keep them separate for now
08:21 memememomo_ is now known as memememomo
08:22 sri (as in their own cpan distribution)
08:22 memememomo is now known as memememomo_
08:22 kvorg oh, and link_to_here :   <%= link_to_here { page=>++$self->param('page') } => begin %>Next<% end %> overriedes parameteres and  <%= link_to_here [ colour=>'blue', colour=>'red' => begin %>More colours<% end %> adds new ones
08:22 kvorg oh, that much separate
08:23 kvorg i was hoping you would at least add them as helpers in the core Mojolitious distro, but not enabled by default
08:23 sri i want many many plugins on cpan, we can always steal the helpers that become most popular ;)
08:23 memememomo_ is now known as memememomo
08:24 sri for now i only want everyday helpers in the core, stuff that most people would use a lot
08:24 kvorg hmm, sure ... the dependency on TagHelpers might be a burden then, I might steal your current _value to avoid synchornization clashes when you change yours
08:24 sri sure
08:24 memememomo is now known as memememomo_
08:24 kvorg ok, will wrap it up, polish the test and put it on cpan. :-)
08:24 sri :)
08:25 sri hope that will also be an inspiration for others to make taghelepr plugins
08:25 kvorg but feedback on syntax is still welcome, will mumble or tweet again once the thing is on GitHub so people can test syntax
08:25 * kvorg goes for a coffee
08:32 yakudza joined #mojo
08:32 yakudza left #mojo
08:33 spleenjack joined #mojo
08:39 cognominal joined #mojo
08:42 MojoGuest152 joined #mojo
08:42 MojoGuest152 sss
08:42 MojoGuest152 hi~
08:43 MojoGuest152 left #mojo
08:44 arthas joined #mojo
08:48 MojoGuest919 joined #mojo
08:51 MojoGuest919 left #mojo
09:32 esskar moin
09:32 esskar sri, i think the change to header_is and header_like borks the t/mojolicious/production_app.t
09:33 sri it doesn't
09:33 sri moin
09:33 esskar fails terrible here
09:33 kvorg i guess i can depend on the _tag interface to be stable?
09:34 sri all pass here
09:34 sri underscore is internal
09:34 sri no guarantees
09:34 kvorg but I inherit TagHelpers
09:34 esskar http://perlpunks.de/paste/show/4c9c70a5.11ab.23e
09:34 kvorg ah, that kind of internal
09:35 sri you shouldn't
09:35 * kvorg is stealing _tag then.
09:35 sri better for now :)
09:37 esskar sri, any idea?
09:39 kvorg done. stealing is easy.
09:39 esskar strange
09:39 sri esskar: nope
09:39 esskar i made a rerun
09:39 esskar and it works
09:39 kvorg your time-space continuum was buggy
09:40 esskar kvorg: i guess
09:40 kvorg esskar: except if you first tried it with some wierd environement, muddling PERL5LIB or similar? but those things only happen to me.
09:40 esskar nope
09:40 esskar same env
09:41 esskar just make test
09:41 esskar all errors
09:41 esskar dann make test
09:41 esskar all pass
09:41 esskar s/dann/then/
09:41 kvorg ich verstehe dann :-P
09:43 kvorg hmm, I need and idea for an incremental table interface, so that you could pass a data model iterator callback to the helper and you would not have to create and array of arrays for the table in memory
09:44 kvorg <% table from => sub { ...  } %> is a mouthful
09:44 yakudza joined #mojo
09:45 sri esskar: windows?
09:45 kvorg but it would work nicely with <% table from => sub { ...  }, head => [ qw/a b c/] , caption => 'wierdos' %> is a mouthful
09:46 sri kvorg: think i would split it up
09:46 esskar sri: sure
09:46 sri ok, windows does weird things randomly ;p
09:47 kvorg sri: i don't understand, sorry, can you elaborate?
09:48 kvorg but maybe it is stupid to do this kind of things, and pulling from an iterator is best done without helpers?
09:49 sri <%= table [[qw/One Two/], [1, 2], [2, 3]] => begin %><%= row shift, shift %><% end %>
09:49 * kvorg promises to get over its infatuation with tag helpers after this one.
09:50 sri no reason your block can't run multiple times
09:50 kvorg ahhh. nice one.
09:50 kvorg i have blown my interface, allowing one to stuff a caption in there if one needed tags for it.
09:50 sri i'm sure there are better versions
09:50 sri but you get the idea
09:51 kvorg oh, it is a nice idea, although it might encourage people to write model helpers, and you would probably hate that
09:51 sri not at all
09:51 sri people should explore all the possibilities
09:51 kvorg oho! 0_o
09:52 sri and ideally discover cool stuff i never anticipated :)
09:52 kvorg well, so far most people are discovering cool stuff in Mojolicious _they_ never anticipated, you know.
09:52 kvorg it keeps them/us busy, too.
09:53 sri ye, i'm sure that will turn around soon :)
09:53 kvorg woot, u planning a vacation?
09:53 * kvorg chains sri to his desk.
09:54 sri evil robots don't go on vataction ;p
09:54 kvorg lol
09:55 kvorg well, i though someone pulling off a model/admin helper for some backend(s) would be kinda nice for examples and embarrassing for the competition.
09:55 sri sure, lots of possibilities for CRUD
09:55 kvorg we are a bit perlish there, no best practices, TMWTDI
09:56 sri someone just needs to build a kick ass model plugin
09:56 kvorg but I suspect a whole new ecology will spring out in that field, it is just so damn easy
09:56 sri hope so
09:56 * kvorg eyes vti.
09:57 kvorg vti: have you documented your relation modules already_
09:57 vti kvorg: no, but we've reached 1000+ tests
09:58 sri someone could take a look at ActiveResource and just make it kinda storage agnostic
09:59 kvorg hmm, u referring to the tersly documented version of 0.1 of perl implementation?
09:59 kvorg or the general concept?
09:59 sri the rails one
10:00 sri they are starting to get ActiveRecord ready for nosql
10:01 kvorg hmm, nifty.
10:01 sri i'm not refering to the actual implementation, but the concept
10:02 kvorg i understand
10:02 sri an intermediate format for structured data, holding the constraints and helper methods, but one layer above storage
10:03 sri searching will be a bit of a problem
10:03 sri but otherwise it shouldn't even be too tricky
10:05 kvorg searching: because the only way to make it storage-agnostic would be to implement some kind of search query language?
10:06 sri ye
10:06 sri often you might only have a key
10:07 sri like when you're storing your data serialized in redis
10:07 sri so i guess searching would be a different storage specific api
10:07 vti it's not worth it i think
10:08 kvorg but the problem could be made in a very nice opportunity with the right idea, since now everyone has to find corner solutions for this, thus tying themselves tothe implmeentation
10:08 yakudza left #mojo
10:08 und3f[A] is now known as und3f
10:08 sri vti: what isn't?
10:08 kvorg search or the whole idea?
10:09 vti the whole idea
10:09 sri i think the key to makign it worth would be dead simple CRUD
10:09 * kvorg is shot down and falls from the sky in flames.
10:10 sri then again, i only care about couchdb anyway atm
10:12 sri the whole database situation is a bit weird atm
10:12 sri two years ago i wouldn't have thought twice and just built a cool ORM
10:12 kvorg a common problem is, when there is data in an existing resource, and then one needs to build a CRUP api for it
10:13 sri most new databases are schemaless, so you need an intermediate layer for CRUD
10:14 kvorg exactly, but you need it pluggable, so that somebody can just write a plugin and put the crud on top of it
10:15 sri bascially a more fancy validation library with pluggable storage and if needed serializers
10:16 sri maybe tag helpers to go with it
10:16 kvorg what, are you enumerating things i love on purpose?
10:16 sri heh
10:16 sri i think vti loves those too
10:17 kvorg it is different, he loves to implement them, i love to use them ... not being of vti sharpness
10:19 sri vti is either out for lunch now or implementing a prototype :D
10:19 vti lunch
10:19 sri aww
10:19 kvorg lolz
10:19 vti i like to have small unix tools
10:19 sri mahlzeit
10:19 vti i don't like too much of abstraction
10:20 sri you need abstraction in this case though
10:20 kvorg i am glad to bite into some abstraction and get small unix tools (think -Mojo)
10:20 sri it wouldn't be too different from your validation library
10:20 vti my validation is just validation
10:21 sri it could all be small libraries
10:21 sri and later put together in a plugin to form the whole thing
10:21 sri your data could be hashrefs
10:23 sri i think we need a mockup :)
10:23 vti right now i need a good cgi c library :D
10:29 memememomo_ is now known as memememomo
10:31 memememomo is now known as memememomo_
10:37 sri vti: http://pastie.org/1178923 # this is what i had in mind
10:39 sri crud in a box :)
10:39 vti looks nice unless you need advanced features
10:39 sri like?
10:39 sri most tasks are simple
10:40 sri no reason the smaller libraries couldn't be more powerful
10:40 vti like joins, related things, trees
10:41 sri it would be document oriented
10:41 sri no relations, no joins by design
10:42 vti so views and map/reduce?
10:42 sri like i said, searching would be storage specific
10:43 sri i'm just throwing around ideas here, i won't build this :)
10:44 sri it is something i would be interested in as a user
10:46 snearch joined #mojo
10:47 perlrocks Twitter: "Here's a fun idea for a #mojolicious #nosql crud plugin. :) http://pastie.org/1178923 #perl" --kraih http://twitter.com/kraih/status/25392961184
10:54 Rhaen hep.
10:54 Rhaen well. well. well.
10:55 * Rhaen raises his arm. May I ask a stupid question?
10:55 * sri says no
10:55 Rhaen booooo
10:56 sri moderately clever questions only today
10:56 Rhaen We are missing a small documentation about base64 encoded stuff (like inline images)
10:56 sri that might be true
10:56 Rhaen Is it ok for you if I am starting to write a small chapter about it?
10:57 sri of course
10:57 Rhaen k.
10:57 Rhaen I will start with a blog post to draw some attention on mojo stuff, then I'll work on the documentation
10:57 sri \o/
10:58 vti time to start some blog business
10:58 Rhaen yup, it's good to point people to the project and tell them that's alive
10:59 sri it's alive...ALIIIIIIVE!!!
11:00 Rhaen run: curl -I http://pkgbox.org
11:01 Rhaen stand up and be counted! :)
11:02 sri :)
11:33 perlrocks Twitter: "[Kwmr reader] Mojolicious-Plugin-ShareHelpers-0.02 http://bit.ly/9A7gBY" (ja) --kwmr_reader http://twitter.com/kwmr_reader/status/25395499038
11:48 perlrocks Twitter: "[Kwmr reader] [kwmr reader] Mojolicious-Plugin-ShareHelpers-0.02 http://bit.ly/9A7gBY http://bit.ly/a2g2WD" (ja) --kwmr_reader http://twitter.com/kwmr_reader/status/25396448842
12:03 memememomo_ is now known as memememomo
12:06 koban left #mojo
12:06 koban joined #mojo
12:10 su-bzero_ joined #mojo
12:10 su-bzero left #mojo
12:22 perlrocks Twitter: "New blog post about embedding images in #Mojolicious lite applications http://bit.ly/aGQ2Xl" --rabenfeder http://twitter.com/rabenfeder/status/25398697819
12:22 GabrielVieira2 joined #mojo
12:22 Rhaen wheeew!
12:24 vti is that get requried?
12:24 vti *required
12:24 Rhaen uh. let me checl
12:26 Rhaen no - works as '/favicon' => 'favicon' as well
12:26 Rhaen is corrected. Thanks!
12:26 memememomo is now known as memememomo_
12:27 Rhaen vti: that was so ...well...naturally to me that I felt forced to write that GET...
12:27 kimoto joined #mojo
12:28 GabrielVieira left #mojo
12:28 Rhaen pull up req for the docs will follow soon
12:29 Rhaen but I am a bit dizzy at the moment (being ill) - so bed time again
12:30 Rhaen cya later!
12:31 kimoto I write performance enhancement of Mojo::Parameter parse()
12:31 kimoto http://github.com/yuki-kimoto/mojo/commit​/073801e71811f9914908251c891b72317ab18b81
12:31 kimoto Benchmark http://pastie.org/1179066
12:32 kimoto If URL contains many parameter, parsing is slow.
12:35 kimoto I think if URL unescape and decoding is really needed, it will be done.
12:35 kimoto sri: What do you think?
12:40 koban left #mojo
12:45 sri kimoto: in real world apps the difference won't be noticeable, but the change seems reasonable
12:45 koban joined #mojo
12:50 perlrocks Twitter: "RT @rabenfeder: New blog post about embedding images in #Mojolicious lite applications http://bit.ly/aGQ2Xl #perl" --kraih http://twitter.com/kraih/status/25400683314
12:50 und3f is now known as und3f[A]
12:51 koban left #mojo
12:51 koban joined #mojo
12:54 perlrocks Twitter: "RT @kraih: RT @rabenfeder: New blog post about embedding images in #Mojolicious lite applications http://bit.ly/aGQ2Xl #perl" --Dim_K http://twitter.com/Dim_K/status/25400946982
13:03 Rhaen yeah!
13:05 GitHub118 joined #mojo
13:05 GitHub118 mojo: master Sebastian Riedel * 94861f6 (2 files in 2 dirs): improved Mojo::Parameters performance - http://bit.ly/cnc8uu
13:05 GitHub118 left #mojo
13:05 sri kimoto: new code looks even better than the old :)
13:10 sri Rhaen: are you on planet ironman and perlsphere?
13:12 sri Rhaen: btw. you can now do '/favicon' => '*'; if the name is just the path without non word chars ;)
13:14 sri another really cool thing is that base64 files can be inflated too :)
13:14 sri ./myapp.pl inflate will just do the right thing
13:15 sri also not documented yet i think ;p
13:15 sri Rhaen: oh, get well soon
13:17 vti looks like we have quite a few dedicated neophytes
13:19 sri i had to look up the word neophyte ;p
13:22 vti ;p
13:23 kimoto sri: your code looks good.
13:31 jest left #mojo
13:44 Rhaen ok, I will modify the example accordingly. :)
13:44 Rhaen Due to my illness leave me till tomorrow with the doc patch in Mojo style
13:47 Rhaen changed the code example :=
13:48 Rhaen sri: I am on planet ironman, I am not on perlsphere i think
13:48 Rhaen I wonder if they can add me, let me check
13:52 Rhaen req sent
13:52 Rhaen ok, bedtime again
13:55 ash_ joined #mojo
14:08 snearch left #mojo
14:29 koban left #mojo
14:42 a|newkirk[assoc] joined #mojo
14:44 a|newkirk[assoc] I think it would be cool if the mojoliciuos scaffolding script had a switch that would copy the local-lib into the application structure (for instances when you plan on moving the app to a machine wihtout Mojo)
14:47 und3f[A] is now known as und3f
15:12 esskar digest client auth is now supported: http://github.com/esskar/mojox-authen/commi​t/e22ca0b4299d8cb217c186c8b3781c59960d6d49
15:12 esskar \o/
15:16 perlrocks Twitter: "MojoX::Authen now supports digest on client and server side: http://github.com/esskar/mojox-authen #mojolicious" --esskar http://twitter.com/esskar/status/25412954590
15:21 perlrocks Twitter: "RT @esskar: MojoX::Authen now supports digest on client and server side: http://github.com/esskar/mojox-authen #mojolicious" --rabenfeder http://twitter.com/rabenfeder/status/25413442994
15:21 Rhaen :)
15:23 kvorg left #mojo
15:38 ysyrota left #mojo
15:38 snearch joined #mojo
15:39 snearch left #mojo
15:39 snearch joined #mojo
15:55 chansen left #mojo
15:56 chansen joined #mojo
16:05 perlrocks Twitter: "RT @kraih: RT @rabenfeder: New blog post about embedding images in #Mojolicious lite applications http://bit.ly/aGQ2Xl #perl" --insurgentsoft http://twitter.com/insurge​ntsoft/status/25417297575
16:06 sri a|newkirk[assoc]: sounds like a good candidate for a normal plugin :)
16:06 sri something like Mojolicious::Command::LocalLib
16:07 sri the command system is pluggable ;)
16:08 sri esskar: interesting
16:08 esskar sri: like it?
16:08 sri don't understand it yet :)
16:09 esskar why ?
16:10 perlrocks Twitter: "RT @esskar: MojoX::Authen now supports digest on client and server side: http://github.com/esskar/mojox-authen #mojolicious #perl" --kraih http://twitter.com/kraih/status/25417684326
16:10 esskar anyways :D
16:10 sri you tell me!
16:11 sri so far i'm only reading the commit
16:11 sri maybe thats not such a good idea
16:11 esskar $authen->authenticate ( $res, $req) you check if the response, from the server needs authentication
16:11 esskar if not, undef is returned
16:11 esskar if yes, you get an authenticator
16:11 sri not $tx?
16:11 esskar and the request is set
16:11 esskar well, i thought about that
16:12 sri we usually do everything on $tx
16:12 sri but the concept is clever
16:12 esskar normally, you make an request, and you get an 401
16:12 esskar so, the next request needs the auth stuff
16:13 esskar it's actually the next request thats needs the headers
16:13 snearch left #mojo
16:13 sri yea, that makes the whole thing a little complicated
16:13 esskar only basic is simple
16:13 sri the solution looks good though
16:14 sri just use $tx :)
16:15 esskar hmm; i could make it work, with $tx
16:15 esskar of course
16:15 sri of course you can
16:15 sri heh
16:15 esskar ok; beer time now
16:16 esskar see later or tomorrow
16:16 sri laters
16:16 sri pizza time here i guess
16:19 a|newkirk[assoc] sri, im gonna work on that this weekend, im also getting ready to develop a large project using Mojolicious
16:19 sri have fun :)
16:19 a|newkirk[assoc] yup
16:20 marcus_ /win 2
16:20 sri /fail
16:22 * marcus_ flees
16:23 marcus_ in my FAIL MOBILE
16:23 a|newkirk[assoc] sri, im going to be writing an article on Mojo/Mojolicious within the next two weeks, does mojo have any imagery, icons, etc?
16:23 a|newkirk[assoc] cant think of any
16:23 sri a|newkirk[assoc]: the cloud
16:24 sri it is not packaged officially yet, but feel free to use everything on the site or my blog
16:25 sri http://s3.amazonaws.com/files.posterous.com/krai​h/VK6eEW7wxNFsYWXj5z7NdnLqz0RYIAqWkeVoqgyJStTrAo​upZpcZHEtUnGxp/mojolicious-brochure.jpeg?AWSAcce​ssKeyId=1C9REJR1EMRZ83Q7QRG2&amp;Expires=1285345​814&amp;Signature=7iUI7axm0XC3jeSRDKVaTYFP31o%3D
16:25 sri i've redrawn the cloud recently, the flyer was the first time it got used
16:26 a|newkirk[assoc] i like it alot, okay cool
16:27 ka2u left #mojo
16:27 sri http://s3.amazonaws.com/files.posterous.com/kr​aih/nk60rCrsgCorFNHyaPqJrTZkXqYz3owinFCLRqX9TE​Xl5Ul294FeYo1kZsy4/mojolicious.png?AWSAccessKe​yId=1C9REJR1EMRZ83Q7QRG2&amp;Expires=128534594​9&amp;Signature=K2R8Xk1Z5Wgz5zBGFTenkQV8INs%3D
16:27 sri thats possibly the closest to an official logo
16:28 sri myriad pro text + cloud
16:28 sri (yes, i'm really going to use Myriad Pro)
16:30 a|newkirk[assoc] ha, okay cool
16:37 ash_ sri: http://try.rakudo.org/ got updated a bunch recently, runs a lot better, i am using mojo::lite still, but i switch to fcgi instead of the prefork_daemon
16:40 a|newkirk[assoc] ash_, i get nothing when i request it
16:41 ash_ what browser?
16:45 spleenjack left #mojo
16:46 a|newkirk[assoc] chrome
16:46 ash_ did the page fully load? did it have Welcome under the textarea?
16:48 a|newkirk[assoc] screen is completely blank
16:48 a|newkirk[assoc] investigating....
16:49 ash_ can you curl it?
16:49 a|newkirk[assoc] thats funny
16:50 a|newkirk[assoc] failed to load resource in my developers tools dialog
16:50 a|newkirk[assoc] but under content i see html
16:50 a|newkirk[assoc] favicon loads, page is blank
16:51 a|newkirk[assoc] view-source: displays code
16:51 ash_ odd
16:51 ash_ refreshing help?
16:52 a|newkirk[assoc] head and children have display:none (wtf?)
16:52 a|newkirk[assoc] none body tag, usually means some really fucked up HTML somewhere
16:52 a|newkirk[assoc] no body tag*
16:53 ash_ i am in chrome (on os x, latest version) and its fine here... same with safari and firefox
16:53 ash_ what os?
16:53 marcus_ sri: AccessDeniedRequest has expiredF873DDAFC678DFDB2010-09-24T16:30:14Z​Gn+51mOYn75iCT+FZmBJNfqDqFxapMOnZImg0PyCJX7​edHves12CgG9YQ8xCYhLi2010-09-24T16:53:10Z
16:53 a|newkirk[assoc] ash_, windows 7 (google chrome)
16:54 ash_ hmm
16:54 marcus_ ash_: are you using gzip?
16:54 ash_ ya
16:54 marcus_ that's a problem
16:54 * ash_ doesn't own windows...
16:54 marcus_ if you don't recalc the content-length
16:54 marcus_ chrome shows a blank page with gzip
16:54 ash_ bah
16:54 ash_ wonder why it works here then...
16:54 ash_ hmm i'll turn off gzip
16:54 marcus_ maybe you have chromium
16:54 marcus_ we had the exact same problem at work.
16:55 marcus_ yesterday
16:55 ash_ Google Chrome 6.0.472.63 is what i am using, for OS X
16:56 marcus_ yeah, it works on my chrome too
16:56 marcus_ weird
16:56 ash_ hmm, either way, i'll disable gzip and see if that changes/fixes anything
16:57 a|newkirk[assoc] i'll try it again in about 30 minutes, i have a meeting
16:58 marcus_ http://www.earnmojo.com/ ANOTHER MOJO
16:59 ash_ alright, now its not gziping
17:06 crab marcus: did you find your leak?
17:22 sri marcus_: is that supposed to tell me something?
17:24 marcus_ sri: NEED MORE MOJO
17:24 sri ash_: how do you run rakudo?
17:24 marcus_ crab: no.
17:24 marcus_ been traveling and doing meetings today
17:25 marcus_ now on couch with tasty double IPA
17:25 ash_ with IO::Pty::HalfDuplex in a special server, Mojo just communicates with a TCP socket
17:25 sri i see, if you leak prefork server will fall over
17:25 ash_ http://github.com/moritz/try.rakudo.org​/blob/master/frontend/try-rakudo.pl#L33  and http://github.com/moritz/try.rakudo.o​rg/blob/master/backend/persist.pl#L33
17:26 marcus_ crab: we avoided the leak by turning off keepalive in the request, btw
17:27 sri ah, blocking is also not nice
17:27 sri that could be done very elegant with the ioloop
17:27 sri non blocking
17:27 ash_ sri: if you have any suggestions, i am all ears
17:28 marcus_ ash_: don't block.
17:28 marcus_ ;)
17:28 sri there are no good examples i'm afraid
17:28 sri http://github.com/kraih/mojo/blob​/master/lib/Mojo/IOLoop.pm#L1296
17:28 ash_ i choose to block with a timeout, if i get the timeout then "Something bad happened"
17:28 sri but essemtially this
17:29 sri a timer could be used for the timeout
17:29 sri everything would be non blocking
17:29 mvuets joined #mojo
17:30 sri thats the mainloop of our servers/client
17:30 mvuets \o
17:30 sri you can hook into it
17:30 * sri waves
17:31 sri but as long as your solution works...
17:31 mvuets To do "internal redirection" in Mojolicious you just call a needed method of a contoroller. But what about M::Lite?
17:31 sri don't do internal redirects
17:32 sri they are the root of all evil
17:32 sri not RESTful
17:32 sri pizzatime! :)
17:32 mvuets I want "get '/foo'" do the same as "get '/:bar'" where $bar = 'quux'
17:33 sri use the same coderef
17:34 mvuets Declare ordinary sub and use it for both get's?
17:54 spleenjack joined #mojo
18:01 sri marcus_: whats the access denied thing?
18:02 sri mvuets: my $cb = sub {};
18:02 sri get '/' => $cb;
18:02 mvuets That's what i meant, yep. This is not restful as well, yes?
18:02 sri of course
18:03 sri different endpoints
18:03 sri the problem is one endpoint doing different things
18:03 mvuets Restfulness requires unique uri's and no aliases?
18:04 sri aliases are fine
18:04 sri everything just should have a unique endpoint
18:04 sri without side effects
18:04 mvuets And that my example is two endpoints just with different params?
18:05 Rhaen hm.
18:05 mvuets (which actually is one end point)
18:05 sri i'm not saying your specific example is wrong, just that internal redirects encourage bad design
18:05 Rhaen I don't want to offend someone, however the naming of the layout to funky isn't that nice. I am changing it everytime.
18:06 sri you are supposed to change it :)
18:06 Rhaen to something romantic like "default"
18:06 Rhaen :)
18:08 sri mvuets: for your example you don't even need an internal redirect as i demonstrated above
18:08 mvuets I thought that thing does called internal redirect.
18:10 mvuets OK then. Now i got what REST actually is. I hope (:
18:10 sri an internal redirect would be a dispatcher restart targeting a different endpoint
18:10 arthas left #mojo
18:10 sri avoiding a 302
18:10 mvuets Oh god.
18:10 sri :)
18:11 sri so you get to a different action without the browser address bar changing
18:12 marcus_ sri: I'm getting that when I try to access your S3 URLs
18:12 sri catalyst folks know it as ->detach
18:13 marcus_ Mojo should have ->reattach
18:13 sri marcus_: oh, they possibly timeout
18:13 marcus_ ;)
18:13 marcus_ sri: possibly
18:14 sri $marcus->reattach('facepalm')
18:14 marcus_ face/off
18:15 marcus_ Drinking german weissbier now.
18:15 marcus_ Weihenstephaner Hefeweissbier
18:15 sri i'm from the north, we officially don't like weissbier
18:16 * mvuets drank one Stella Artois bottle (:
18:16 marcus_ sri: your loss
18:16 sri this is a pilsner region
18:18 marcus_ sri: I see lots and lots of Erdinger signs in Berlin
18:18 marcus_ sri: I do agree Beck's is a good pilsner tho
18:18 mvuets Are there some symmetric crypto functions in the core perl modules?
18:18 marcus_ I used to drink more Weissbier before. These days it's mostly IPAs and Stouts
18:19 sri http://en.wikipedia.org/wiki/Beck%27s # !!!
18:19 sri Owner(s)Anheuser–Busch InBev # ewwww
18:20 sri http://en.wikipedia.org/wiki/Beer​_in_Germany#Brands_and_breweries # interesting
18:22 sri i never drank the one ranked 1
18:24 marcus_ Never heard of it.
18:24 marcus_ which is strange
18:24 marcus_ the next 4 are famous
18:24 sri they don't advertise at all it seems
18:25 marcus_ and they don't sell beer in cans
18:25 marcus_ "Oettinger Beer is cheap. Nobody wants it. Yes, it's dishwater! But everybody drinks it. (Our) success proves us right"
18:26 sri lol
18:26 marcus_ seems we didn't miss out
18:30 ash_ left #mojo
18:32 sri actually it's not Beck's that everyone around here drinks, they make a special regional brand for us called Haake Beck
18:34 sri it's famous for being present at just about any construction site :)
18:38 sri i should really get a case
18:40 marcus_ you should
18:40 marcus_ and then bring it to me in Oslo. ;)
18:43 sri ;p
18:44 marcus_ sri: we really should party some time.
18:44 sri we should
18:47 marcus_ you could come to Riga for YAPC::EU 2010
18:48 marcus_ the russian mafia would protect you ;)
18:48 GabrielVieira2 is now known as GabrielVieira
18:49 marcus_ the beer is pretty good there too, and cheap
18:54 MojoGuest747 joined #mojo
18:54 MojoGuest747 From: http://www.google.com/search?hl=en&amp;as_​q=websockets+demo&amp;as_epq=&amp;as_oq=&a​mp;as_eq=&amp;num=100&amp;lr=&amp;as_filet​ype=&amp;ft=i&amp;as_sitesearch=&amp;as_qd​r=all&amp;as_rights=&amp;as_occt=any&amp;c​r=&amp;as_nlo=&amp;as_nhi=&amp;safe=images (1 hits)
18:55 MojoGuest747 left #mojo
19:05 Rhaen uhm. riga?
19:05 Rhaen That's an awesome location!
19:17 fod left #mojo
19:22 mvuets Why there are no put and delete routes in M::Lite?
19:32 Rhaen all those switching between Mojo and Mojolicious stuff makes me dizzy
19:33 Rhaen Is there a special reason why this has been split?
19:33 Rhaen (Yeah, I know Mojolicious uses Mojo as base app)
19:33 mvuets Mojo is just a handle sub, that's it.
19:34 Rhaen yeah, that's what I know :)
19:34 Rhaen but it feels inconsistent when reading the documentation
19:34 Rhaen at least for me.
19:34 mvuets Mojo is a framework for building frameworks! (:
19:34 Rhaen maybe a small guide should explain this further.
19:36 mvuets Build your own Rhaenilicious atop of Mojo! q:
19:37 Rhaen *brr* :)
19:37 Rhaen a good idea!
19:41 vti lite has put and delete
19:41 mvuets Via any only?
19:41 vti it's even in pod
19:41 vti perldoc Mojolicious::Lite
19:41 Rhaen_ joined #mojo
19:42 vti any [qw/delete/]
19:42 mvuets Point me.
19:42 vti Routes can be restricted to specific request methods.
19:42 mvuets Yes, via any.
19:42 vti you can't overload delete... it's perl
19:42 mvuets Ah, really!
19:43 mvuets OK (:
19:46 Rhaen left #mojo
19:46 Rhaen_ is now known as Rhaen
19:46 Rhaen HELP!
19:47 Rhaen and git nerd in hereß
19:47 Rhaen I am too stupid to use that tool.
19:47 Rhaen na, I am not.
19:48 Rhaen just a quick question. I have 2 commits on the same file.
19:48 Rhaen When I request a pull up req to mojo it says, 2 commits (which is right)
19:48 Rhaen is there a chance to combine them?
19:48 Rhaen rebase might be the correct thing
19:48 Rhaen any hints?
19:48 mvuets Rhaen: merge, rebase.
19:48 vti yes, googlt it
19:49 Rhaen hm, ok. merge? For what reason?
19:50 Rhaen vti: :) rtfm, hm?
19:51 mvuets Rhaen: just an option. I prefer rebase. But merge is needed if you want to state where two branches became one.
19:52 Rhaen ok, maybe that was not the best question, I am looking for combining commits
19:52 Rhaen I will google that :)
19:54 jona joined #mojo
19:54 jona left #mojo
19:55 vti Rhaen: kennst du google? ;p
19:55 Rhaen pfft :)
19:55 Rhaen got it already
19:56 Rhaen vti: http://tinyurl.com/2em65np
19:56 Rhaen yeah, I know
19:56 jona_ joined #mojo
19:56 Rhaen *bows*
19:57 * jona_ tips hat.
19:58 kvorg joined #mojo
19:58 jona_ left #mojo
19:58 vti Rhaen: wo wonnst du?
19:58 * kvorg waves.
19:59 * kvorg bows.
20:06 vti time for some action on this channel, while sri sleeps
20:12 vti we have too many ops
20:13 * mvuets bows
20:19 esskar_ joined #mojo
20:25 MojoGuest645 joined #mojo
20:25 MojoGuest645 From: http://www.google.it/search?client=safari&amp;rls​=en&amp;q=html5+irc+client&amp;ie=UTF-8&amp;oe=UT​F-8&amp;redir_esc=&amp;ei=QQmdTLDiAoOVswaH8dzmDg (1 hits)
20:25 MojoGuest645 left #mojo
20:26 MojoGuest605 joined #mojo
20:26 MojoGuest605 From: http://www.google.it/search?client=safari&amp;rls​=en&amp;q=html5+irc+client&amp;ie=UTF-8&amp;oe=UT​F-8&amp;redir_esc=&amp;ei=QQmdTLDiAoOVswaH8dzmDg (4 hits)
20:27 ghirosldfd joined #mojo
20:27 ghirosldfd From: http://www.google.it/search?client=safari&amp;rls​=en&amp;q=html5+irc+client&amp;ie=UTF-8&amp;oe=UT​F-8&amp;redir_esc=&amp;ei=QQmdTLDiAoOVswaH8dzmDg (6 hits)
20:27 ghirosldfd left #mojo
20:27 MojoGuest605 left #mojo
20:32 * esskar_ is all over eztv again; finally lots to download again!
20:36 xantus joined #mojo
20:50 crab heh. if you don't define any routes or anything and try to access 0:3000, mojo goes into an endless loop.
20:51 DaTa crab: define a route then 8-)
21:04 mvuets Good night!
21:05 mvuets left #mojo
21:06 esskar_ crab: it's not a endless loop, it's a feature (tm)
21:06 a|newkirk[assoc] left #mojo
21:06 esskar_ had the same thought
21:16 crab data: of course. i was just amused.
21:21 sri vti: i never sleep, i hibernate!
21:22 sri crab: what esskar said
21:22 crab what? it's a feature?
21:22 sri ye
21:22 crab can't it be a feature AND an endless loop?
21:23 sri delayed response
21:23 crab explain?
21:23 sri if nothing is rendered control gets passed back to the mainloop
21:23 sri now a timer or external event could resume and render a response
21:24 crab ah
21:24 sri that avoids blocking the mainloop
21:24 sri and it's not an infinite loop
21:25 sri just the server mainloop, the connection would timeout gracefully
21:25 sri without blocking anything else
21:27 vti sri: !!!!
21:28 sri the simplest use case is $self->client->async->get(...) which *just works* because of it ;)
21:28 sri vti: !!!!
21:29 vti sri: do you offer paid support? :)
21:29 sri not yet, but if there is interest i might consider it
21:30 sri Rhaen: oh, you misunderstood something about static base64 files, they don't need a route ;)
21:36 perlrocks Twitter: "@WillemBasson I like Mojo more (I even wrote a small patch for HttpOnly cookies). However, you'll probably use Mojolicious instead :)" --burakgursoy http://twitter.com/burakgursoy/status/25440739497
21:40 GitHub139 joined #mojo
21:40 GitHub139 mojo: master Ulrich Habel * 154fe71 (1 files in 1 dirs): Added section about base64 encoding
21:40 GitHub139 mojo: master Sebastian Riedel * cfefa28 (1 files in 1 dirs): cleanup
21:40 GitHub139 mojo: master commits 94861f6...cfefa28 - http://bit.ly/cy0HmM
21:40 GitHub139 left #mojo
21:42 sri Rhaen++
21:42 vti germans
21:42 sri Oo
21:43 vti L(
21:43 vti :)
21:43 sri oO
21:44 vti just a typo!
21:45 sri x_X
22:04 perlrocks left #mojo
22:05 vti someone died
22:05 perlrocks joined #mojo
22:12 xantus left #mojo
22:12 xantus__ joined #mojo
22:23 xantus__ left #mojo
23:10 spleenjack left #mojo
23:11 kvorg i don't seem to understand template blocks sufficiently to be able to use and call them from a helper method correctly
23:13 kvorg is anyone capable of giving me an example of how one could have <%= helper => begin %><% things to call %><% end %>, so that the helper could actually call the code in the block multiple times, and get the results of each call?
23:24 crab is there a good way for a plugin to install a route under which everything else will be?
23:25 crab s/a route/a bridge route/
23:41 und3f is now known as und3f[A]
23:59 perlite left #mojo

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