Camelia, the Perl 6 bug

IRC log for #mojo, 2011-01-06

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

All times shown according to UTC.

Time Nick Message
00:02 curt left #mojo
00:06 snearch left #mojo
01:01 daviddelikat1 left #mojo
01:09 daviddelikat joined #mojo
01:39 Akron left #mojo
01:53 cybertom joined #mojo
02:31 curt joined #mojo
02:36 daviddelikat left #mojo
02:38 daviddelikat joined #mojo
02:48 perlrocks Twitter: "Easy to set up in nosniff Mojolicious. https: / / sites.google.com/site/515memo/​mojolicious-no-zatta-na-memo" (ja) --kuusou_kyokusen http://twitter.com/kuusou_kyok​usen/status/22847050395688960
03:33 tempire Mojolicious: now with no sniffs!
03:33 sri !
03:45 alnewkirk joined #mojo
04:03 achromic left #mojo
04:04 tl joined #mojo
04:06 tholen42 left #mojo
04:46 curt left #mojo
05:01 zoo-zed joined #mojo
05:04 zoo-zed left #mojo
05:07 crab anyone done a file upload progress blah with mojo?
05:08 sri there's a test case for that afair
05:10 sri https://github.com/kraih/mojo/blob/mast​er/t/mojolicious/upload_lite_app.t#L21
05:10 sri you'll have to figure out the details yourself though
05:13 crab seems obvious enough. but this looks like a good use for websockets.
05:14 sri the progress methods are also experimental
05:14 crab in mojo? ok
05:17 * sri wonders if he should also blog minor releases
05:19 sri as long as there are changes visible to end users i guess it doesn't hurt
05:29 daviddelikat1 joined #mojo
05:31 achromic joined #mojo
05:33 daviddelikat left #mojo
05:56 su-bzero_ left #mojo
05:58 su-bzero2 is now known as su-bzero[A]
06:00 alnewkirk left #mojo
06:17 zakame joined #mojo
06:28 kaare joined #mojo
07:03 GreenZED joined #mojo
07:09 Zaur left #mojo
07:10 verrens joined #mojo
07:10 GreenZED left #mojo
07:11 Zaur joined #mojo
07:11 Zaur left #mojo
07:11 Zaur joined #mojo
07:17 crab i don't think it'd hurt anyway
07:30 Christian joined #mojo
07:30 Christian morning
07:32 stephan48 hi Christian
07:38 marcus http://bethesignal.org/wp-content/upl​oads/2011/01/why-so-asynchronous.jpg
07:56 zipkid hi
08:04 verrens left #mojo
08:06 zipkid is Rose::DB::Object a good choice for use with Mojolicious?
08:12 avkhozov joined #mojo
08:18 crab zipkid: it really doesn't matter to mojo
08:34 kvorg1 joined #mojo
08:34 kvorg1 left #mojo
08:34 perlrocks Twitter: "You do Mojolicious! Not say anymore." (ja) --kuusou_kyokusen http://twitter.com/kuusou_kyok​usen/status/22934118136283137
08:39 kvorg left #mojo
08:42 ysyrota joined #mojo
08:52 zipkid crab: ok.... how do you feel about Rose::DB::xxx ?
09:00 sri anyone know when they are releasing the mac app store?
09:36 Zaur does somebody know how to pass :id to controller?
09:37 marcus do the mojolicious
09:40 * sri does the mojolicious
09:48 sri ah, 7 hours till mac app store :)
09:49 sri looks like twitter for mac will be released at the same time
09:49 marcus yeah
09:50 marcus so looking forward to that
09:50 marcus kinda pissed that I didn't get the beta tho
09:53 kvorg joined #mojo
10:06 otaviof joined #mojo
10:15 Zaur left #mojo
10:21 avkhozov left #mojo
10:22 avkhozov joined #mojo
10:22 crab Zaur: what do you mean?
10:41 verrens joined #mojo
10:50 MojoGuest615 joined #mojo
10:50 MojoGuest615 From: http://www.google.ru/search?sourceid=ch​rome&ie=UTF-8&q=websockets+demo (1 hits)
10:52 MojoGuest615 left #mojo
10:53 sri think i'll release 1.01 today
10:54 purl joined #mojo
10:54 marcus hachi++
10:54 sri :O
10:54 yko O_O
10:54 marcus :D
10:54 yko woow!
10:54 marcus purl: HUGS!
10:54 purl DCC SEND "startkeylogger" 0 0 0
10:54 * sri hugs punytan
10:54 sri ops
10:55 * sri hugs purl
10:55 * purl hugs sri back
10:55 marcus hachi puts her into the config now
10:55 marcus so she'll come back next time she dies
10:55 sri purl: botsnack
10:55 purl thanks sri :)
10:56 sri purl: karma sri
10:56 purl sri has karma of 233
10:56 fish__ wondering what vti's plans are about bootylicious. seems very promising the new structure but atm like everything is broken and quite nice features just not working yet
10:57 sri purl: karma marcus
10:57 purl marcus has karma of 376
10:57 sri lots of catching up to do
10:57 marcus I WIN
10:57 marcus purl: karma mst
10:57 purl mst has karma of 1834
10:57 sri Oo
10:58 marcus ;)
10:58 sri clearly rigged
10:58 marcus fish__: fork it and fix it.
10:58 marcus :)
10:58 marcus sri: he's doing a lot of noob helping
11:00 sri purl: sri?
11:00 purl i guess sri is A PONIE!!1! and a  or no more a javascript noob or evil or a spelling guerilla or the temporary channelclown or a snob now or the perl guerilla or a small mouse with a big head aiming for world domination or the evil sith or has no clue about fuzzy logic or no longer a real hacker :/ or a copycat or pimp to many children or a holy man or looks a lot like pitr or puny or doing ruby now until perl6
11:01 mxey I hadn't noticed Mojolicious was written in Ruby.
11:01 sri yea, we make you believe it is perl until you're hooked
11:02 fish__ but another question: is there some molicious stuff to implement a small website for self employeed person. just a few pages, maybe contact form.. looks like there is no simple and modern perl cms out there i'm aware of..
11:02 avkhozov left #mojo
11:02 avkhozov joined #mojo
11:02 sri fish__: thats correct
11:03 mxey If you like it simple, you could create the simple pages directly as templates and only use actual code for the contact form.
11:03 sri perl needs a nice little cms
11:04 sri maybe even something to challenge drupal
11:04 sri it's insane how big projects like drupal have gotten
11:05 fish__ sri: thought about writing something based on memowe's cms plugin. but to be honest to myself i have to admin that i probably would never reach a usable state...
11:05 sri way beyond any programming language community
11:11 moritz somhow I think the abstraction to start would be "manage user-contributed content"
11:11 moritz which could then be reused for blogs, cms, discussion fora etc.
11:12 sri not sure i would start with abstraction at all
11:13 fish__ https://github.com/memowe/mojoli​cious-plugin-content_management <- have a look at that. it quite something to build on
11:13 sri i would always go the other way, app first then extract reusable parts
11:16 fish__ i think i start on step futher: first webpage, than webapp, than modules ;)
11:19 marcus I need something simple for nordaaker.com too
11:19 marcus so get cracking! :)
11:19 sri join tumblr like all the other hipster blogs ;p
11:22 marcus we're not a blog
11:22 marcus :)
11:22 sri hmm, is there no cloud cms yet?
11:23 fish__ sri: like.. myspace? :>
11:23 sri lol
11:26 marcus Riak 0.14 Released.
11:26 marcus looks exciting.
11:26 * sri is getting more and more excited about mongodb
11:27 crab what? dammit, stop changing your mind in response to external events!
11:27 marcus sri: do your drivers live somewhere public?
11:28 sri https://mongohq.com/pricing # there's even free cloud hosting
11:28 sri marcus: still working on it
11:29 * marcus fills sri with helium and sends him to the clouds
11:29 sri i pretty much know how to implement everything but keep getting distracted :S
11:29 marcus disconnect
11:29 purl i guess disconnect is broken in 0.45. It's been fixed since then. Dunno about topic events.
11:29 punytan called?
11:29 marcus works for me
11:29 punytan ah, ops
11:29 marcus punytan: you were just mistaken for purl
11:30 crab drupal is insane for more reasons than its size
11:31 marcus see also: php
11:31 punytan marcus: thanks
11:31 * marcus is writing a simple api for activeCollab
11:32 crab what is it?
11:32 purl it's it!
11:32 marcus ithttp://www.activecollab.com/
11:32 marcus it's the bee's knees.
11:32 sri purl: mojolicious?
11:32 purl mojolicious is probably an example framework built on top of Mojo, your don't-depend-on-anything framework toolkit or still a young project, the catalyst community was way smaller in the same stage
11:32 omega do bees even have knees?
11:33 sri purl: forget mojolicious
11:33 purl sri: I forgot mojolicious
11:33 marcus omega: http://www.phrases.org.uk/m​eanings/the-bees-knees.html
11:33 sri purl: mojolicious is teh awesome and at http://mojolicio.us
11:33 purl OK, sri.
11:34 fish__ i'm probably just to stupid again: how can i access the name of the page i tried to access in the not_found handler?
11:35 sri name?
11:35 purl name is confusing
11:35 sri ^^^
11:35 yko :)
11:35 fish__ ok, the url ;)
11:35 yko purl++
11:35 crab fish: $self->tx->req->uri etc
11:35 fish__ or better the path part of the url
11:36 marcus fish__: uri is an url object
11:36 crab it's actually named url. sorry.
11:36 sri <%= url_for %>
11:37 sri <%= $self->req->url %> is correct too though
11:38 fish__ sri: url_for is empty here..
11:38 yko also you may want to get abs path like $self->req->url->to_abs->path
11:38 yko fish__: url_for relative. if you at '/' it will be empty
11:38 sri yko: fixed in 1.01
11:39 yko oh... sorry
11:39 fish__ no, i try to access /foo and it still is empty. but maybe my mojo is to old again ;)
11:39 sri i'm about to tag 1.01 btw
11:39 fish__ but req->url works fine
11:42 fish__ can i change somehow the status code for not_found? btw: i'm playing with the cms module and want to put a link 'create this page' on all not_found pages. but browsers like chrome don't show the status text if status code is 404..
11:43 fish__ i would use a 'catch all' route for that, but this route is already handled by the cms plugin..
11:43 mxey Stupid browsers.
11:43 purl stupid browsers are having problems with redirects, imagine that :)
11:44 sri fish__: just make your own 404
11:44 fish__ sri: what do you mean? i made my own template, but it still sends 404..
11:44 sri /*everything
11:44 sri a route to rule them all
11:45 fish__ sri: this was already did for the cms plugin: get '/(*everything)' => (content_management => 1) => 'page';
11:45 * sri doesn't follow
11:46 breaker313 joined #mojo
11:46 fish__ sri: i need this route for the cms plugin, its how it works. i have to send everything to this plugin
11:47 fish__ sri: the plugin handles all routes and probablity it calls render_not_found if he doesn't find a page but itself
11:48 sri nothing i can answer then
11:48 fish__ sri: the question is, can i change the status code it sets when the not_found template is rendered?
11:49 GitHub115 joined #mojo
11:49 GitHub115 mojo: master Sebastian Riedel * 67b49b5 (1 files in 1 dirs): release preparation - http://bit.ly/f1Zzal
11:49 GitHub115 left #mojo
11:50 sri ok tagged
11:50 yko grats! :)
11:51 yko sri: after_static_dispatch will be called if static file rendered?
11:51 sri yko: yes
11:51 yko thx
11:54 crab should i be using $self->tx->req or $self->req? are they the same thing?
11:55 sri as documented, they are
11:55 crab ah it is
11:56 crab Alias for C<$c-E<gt>tx-E<gt>req>.
11:56 crab renders as: Alias for "$c-"tx->req>.
12:00 crab C<<$c->tx->req>> should be ok, but it turns out as '" $c->tx->req "' with spaces. weird.
12:01 crab oh, no. it works.
12:02 perlrocks Twitter: "Mojolicious 1.01 by Sebastian Riedel - http://frepan.org/~kraih/Mojolicious-1.01/" --cpan_new http://twitter.com/cpan_ne​w/status/22986385916960768
12:03 crab http://pastebin.com/qg2Vr4Gv <- trivial patch to fix
12:04 marcus wow, frepan is so fucking ugly
12:04 marcus what is it with perl people and design?
12:06 marcus powered by Amon2
12:06 mxey I think you are generalizing. For example, Mojolicious.org looks nice.
12:06 mxey But frepan is indeed ugly.
12:07 marcus mxey: mojolicious is a special case :)
12:08 sri mojolicious is secretly a ruby project
12:09 mxey and we all know Ruby developers are vain, Mac-using, Latte Macchiato-slurping hippies.
12:09 mxey ;)
12:10 sri just 5 hours until the mac app store opens!
12:10 mxey Help!
12:10 * sri goes to get a Latte Macchiato
12:11 mxey I cannot stand Macbooks, but I like the coffee
12:23 Drossel left #mojo
12:55 perlrocks Twitter: "Released #mojolicious 1.01, enjoy! :) http://bit.ly/fHWVxR #perl" --kraih http://twitter.com/kraih/status/22999572758396928
12:56 sri think i'll keep writing these little announcements
12:57 sri they are not that interesting but show that a lot is happening here
13:01 fish__ :seen memowe
13:01 fish__ !seen memowe
13:04 Kulag joined #mojo
13:09 ysyrota left #mojo
13:09 perlrocks Twitter: "Mojolicious 1.01: TLS goodness:  It has been a busy week since our amazing "One Point Oh" release. The co... http://bit.ly/gpCvQt #perl" --PlanetPerl http://twitter.com/PlanetPe​rl/status/23003134079016960
13:17 sri purl: marcus?
13:17 purl i think marcus is pretty sure lisp adoption is being hampered by being named after a speech defect. or http://picasaweb.google.com/olga.r​amberg/Lisboa#5240395957801479314
13:18 sri quite sure that factoid was better back then
13:18 marcus people always trash my factoid :/
13:18 marcus purl should have been git powered.
13:18 purl marcus: excuse me?
13:18 sri vandals!
13:21 marcus http://www.a-mobler.no/a/produktvisning.a​spx?k=3&amp;u=8&amp;uu=9&amp;item=FN13200
13:32 sri interesting, 75% of all visitors on mojolicio.us use chrome
13:32 yko and 37% of them it's me who is reading perldoc
13:33 mxey marcus: The world would be much better if everything was Git powered ;-)
13:33 sri your country is actually a rather small percentage
13:33 yko btw, which % have preffered lang ru_ru? :)
13:33 sri ru is big
13:34 sri ru is right after us
13:34 crab sri: because it's broken in firefox? ;-)
13:34 * crab hides
13:34 sri 20%
13:34 purl 0.2
13:35 sri crab: it is not
13:35 sri coverage of the world is really good, almost every country covered
13:35 avkhozov left #mojo
13:36 sri we just need a little more advertising in some african regions
13:36 yko well, there's about 42mln people in whole ukraine and ~12mln people only in moscow so nothing surprising
13:37 marty is there a hook or method that fires on route request?  (I'm trying to figure out a way to load user state data on each page request).
13:37 * sri starts to like analyticsapp, even though it's too expensive
13:38 sri marty: no hook, thats supposed to be done in app code
13:38 sri with bridges and under
13:39 marty Ahh ok.  That makes sense.  Thank you.
13:39 sri hmm, someone keeps reading our documentation with a Google TV Oo
13:40 yko atually that can be done via hooks. but not in clear way
13:40 yko after_static_dispatch => sub { return if $_[0]->stash->{'mojo.rendered'}; CODE }
13:41 sri yko is right
13:41 yko \o/
13:41 sri :O
13:41 sri now you need a new romantically mojolicious image
13:41 marty Ahhh, yes, not clear but still usefull.  Thank you yko,  I've added it to my list of goodies.  :)
13:42 yko oh... -_-
13:42 verrens left #mojo
13:55 kvorg left #mojo
13:56 sri looks like the mac app store is going live now :)
13:56 yko how much did they pay you? :)
13:57 daviddelikat joined #mojo
13:57 sri absolutely nothing, i'm a fanboi!
14:01 daviddelikat1 left #mojo
14:10 marty I woke up with "chitty chitty bang bang" song in my head... it's still there.  I think I'm going to pass out.
14:12 sri sounds like the appropriate reaction
14:12 zipkid sri: apple is saving my Credit health!  http://cl.ly/3r3m0W1H3d2Z0P0w3V2L  :-)
14:12 marty Ya, much more sanitary than pucking
14:14 sri zipkid: let me guess, you tried to buy dress assistant?
14:14 zipkid O, O.... where is that!? URL !!!
14:14 sri right in your screenshot
14:15 zipkid ah, right... Looks exactly what i need :-)
14:15 zipkid actually i was trying to 'buy' the free twitter app....
14:16 * sri suggests wearing pants today
14:16 * sri saves you money
14:17 crab is that wht the "dressing assistant" does?
14:17 crab tell you to remember to wear pants?
14:18 dotan joined #mojo
14:18 sri i hope so
14:21 breaker313 left #mojo
14:21 breaker313 joined #mojo
14:29 plu left #mojo
14:37 perlrocks Twitter: "When combined with xslate mojolicious layout view I wonder if I should just to be able to specify the # perl" (ja) --atom_seed_usa http://twitter.com/atom_seed_​usa/status/23025345909235713
14:49 drewr joined #mojo
14:53 sri hmm, really not much in the app store yet :/
15:01 omega and no way to "connect" old purchases
15:02 Christian cu all
15:03 sri interesting, it keeps filling up
15:04 Christian left #mojo
15:05 sri hmm, the pixelmator folks promise a free 2.0 update if you buy 1.0 again
15:05 sri guess more will follow
15:11 omega where do you see that?
15:11 sri on twitter ;p
15:11 omega http://www.pixelmator.com/transition/
15:12 omega grmpf
15:16 * sri doesn't like the new twitter app :(
15:18 sri ok, how come the twitter app can login with user and password?
15:18 sri do they have a new secret ad-hoc auth mechanism?
15:20 sri too bad it's over https :S
15:21 sri could be some oauth2 ad-hoc auth mechanism
15:23 omega isn't it just to get the auth token? lots of apps still do that afaik?
15:26 sri but how does it get the token?
15:32 drewr left #mojo
15:32 mxey I have a Mojolicious::Lite app. How would I map from paths to static files?
15:33 mxey The directory structure is not the same.
15:34 mxey Like, I want to map from /challenges/01recordbreaker/unsolved.png to /opt/intercensor/challenges/0​1recordbreaker/unsolved.png, but I do not want to serve all other files in that directory.
15:35 sri mojolicious doesn't do that
15:35 yko ln -s that file or write single action that would serve just a single static file
15:35 sri yea, you can only link around
15:35 curt joined #mojo
15:35 sri or write the file serving code yourself
15:35 yko or maybe jsut think if you doing something wrong :)
15:35 sri (which i don't suggest)
15:36 sri yko is right again :)
15:36 sri serving random files from somewhere outside your app is asking for trouble
15:37 perlrocks Twitter: "Men listening to Miku and Hull, Mojolicious i read the documentation. Nope, getting sleepy now. And not in a cold bed. Kaya o2 sgi is still running?" (ja) --tisihara http://twitter.com/tisihar​a/status/23040391041257472
15:37 mxey sri: Not random files :)
15:37 mxey I only need to pull three images from each of these directories.
15:37 mxey But I want to have each of these challenges completely contained in its respective directory.
15:38 mxey sri: Writing my own action would be okay, how would I say "send this file to the user"?
15:38 sri you can't
15:38 sri mojolicious wants to be portable, so we only allow serving files relative to the application home
15:39 mxey sri: Having the files in the application root would be possible.
15:39 sri umm, why not the public directory?
15:40 mxey sri: Because I want each of those challenges to have everything in its directory.
15:40 * sri doesn't follow
15:40 mxey Each challenge has some Perl code, some configurations and its icons.
15:40 mxey Currently there is one directory for configurations, one with code and public/ has the icons.
15:41 mxey I would prefer to have one directory for each challenge where all things regarding it are stored. For example that will make it easier to use git log on a challenge and get all history.
15:41 yko > Each challenge has some Perl code, some configurations and its icons.
15:41 yko you may want to include some static just in your modules
15:42 mxey include some static?
15:42 yko i'm not sure if i udnerstand you right, but there's way to have static files in module __DATA__ section and render just from there
15:43 mxey I'd prefer to store them in files seperately.
15:43 mxey Also, the Perl code is just one class with metadata and logic, not web interface code.
15:47 yko i'm sure i wouldn't like way you are going to do, but feel free to investigate. you're warned: hideously mutated monsters will appear on your way
15:48 mxey So you strongly suggest I stick to using only the public/ directory?
15:48 yko I strongly suggest to keep everything in app directory
15:48 mxey Like I said, that is no problem.
15:48 yko ./lib, ./public, ./templates, ./anything
15:49 mxey the app is currently in /opt/intercensor/webif, but I can move the mojo home to /opt/intercensor
15:50 yko and then reading docs and useing render_static http://mojolicio.us/perldoc?Mojo​licious/Controller#render_static
15:50 yko you can render anything relative to your public dir
15:51 mxey That seems to be what I need
15:51 yko ok
15:51 mxey I can then just render ../challenges/foobar/images/solved.png, so that's fine.
15:51 mxey Thanks for your help everyone :)
15:56 mxey btw, what about adding (optional) support to Mojo for using sendfile to serve static files? Or is that impossible with HTTP?
15:56 mxey I recently tried App::dirserve and I think I would have benefitted from a little zero-copy
15:57 yko mxey: what about use nginx to serve static?
15:57 sri yko is right again :O
15:57 yko something wrong with me today
15:57 * sri is scared
15:57 mxey I cannot argue that. I personally do not serve large static files using Mojolicious, but I just noticed it when I used the mentioned App::dirserve.
15:58 yko maybe i'm ill :)
15:58 mxey Although since Gatling has hit Debian, I have no real reason to use App::dirserve or Python's SimpleHTTPServer anymore.
15:58 sri the whole point of mojolicious is to generate dynamic content
15:58 mxey Was just a suggestion.
15:58 marty yko++  \o/
15:59 sri the static dispatcher should only do enough to serve files to a caching reverse proxy
15:59 yko don't worry, i'm going to ask something stupid now :)
15:59 mxey sri: Like http://wiki.nginx.org/ReverseProxyCachingExample? ;)
16:01 sri nope, with a constraint on .png/.js/.css...
16:01 mxey constraint?
16:01 purl hmmm... constraint is liberating.
16:01 mxey I am only getting to know nginx, but so far I like what I see.
16:02 mxey Lighttpd has always annoyed me with its configuration syntax.
16:02 yko sri: what about special pragma mojo::codings to handle Content-Encoding headers like gzip, deflate, [maybe compress then]
16:02 marty mxey: I think sri means that there is no need to have nginx cache images becuase the browser already does it.
16:02 mxey The browser can only cache for a single user though.
16:03 sri no i mean a more restrictive nginx configuration
16:03 sri it can cache special file extensions only
16:03 sri yko: gzip is evil
16:03 mxey So you meant the opposite of what marty suggested.
16:04 sri i really wouldn't want to worry about compression on the app layer
16:04 yko sri: im looking from Mojo::Client side now and i'm don't talking about that feature in core
16:05 yko just as third-party pragma to enable gzip codings support
16:05 mxey So you guys generally recommend to run nginx or similar in front of Mojolicious to take care of the static stuff and caching?
16:06 mxey Because I was quite content with just running Hypnotoad on its own.
16:06 sri yko: do whatever you like, i hate compression because you have to cache for it
16:06 yko mxey: depends. if you have 20K req/hour than you definitely need something like nginx
16:06 yko sri, ok thanks for your opinion
16:06 mxey yko: In this setup, I am happy if I have 20 requests/minute
16:07 mxey (shameless plug: http://www.intercensor.org/)
16:07 sri gzip makes my head hurt
16:07 yko mxey: than you shouldn't care about that
16:07 yko just a mojolicious static should be enough
16:08 mxey yko: Yes, but I always like to know what else is possible and might be appropriate in a different setup.
16:08 mxey I hope to use Mojolicious for projects ;)
16:08 mxey *more
16:09 mxey The setup already includes nginx though, but only for serving static data that some of the challenges use.
16:09 yko mxey: than ye, nginx is recommended
16:09 mxey OK. :)
16:10 mxey If my continuing questions become annoying, just tell me.
16:10 yko sri: i had a trouble with some sites that ignores Accept-Encoding of client and just send compressed content
16:10 sri yko: hmm, thats not spec compliant
16:11 yko after all, if you are going to pull 1000Gb, have monthly traffic limit 1000Gb and some time... then that matters :)
16:11 sri you can always unzip it later though
16:13 yko just asking your opinion, thank you
16:13 yko Mojo::Client is too good. and very flexible
16:15 sri too flexible for gzip, so many things to go wrong
16:15 sri for client i actually wouldn't mind core support for gzip
16:16 sri but it would require many tests for those cases
16:16 sri callbacks in different stages, streming to file, keeping in memory...
16:16 sri *+a
16:20 yko hm, ye. this part would be complicated. that's why i'd like it to be not in core
16:20 yko users always can blame me (or somebody else), but not Mojolicious
16:27 perlrocks Twitter: "Mojolicious - Web framework for Perl http://www.findbestopensour​ce.com/product/mojolicious # opensource" (id) --bestopensource http://twitter.com/bestopenso​urce/status/23052938427502593
16:27 curt left #mojo
16:31 sri hmm, looks like select_field is really screwed up :S
16:31 perlrocks Twitter: "Mojolicious framework  on @danbenjamin's Dev Show. Need something similar in PHP? See Slim Framework at https://github.com/codeguy/Slim" --codeguy http://twitter.com/codeguy​/status/23054029407911937
16:32 sri Slim::init();
16:32 sri seriously?
16:32 purl is that for real?
16:32 * sri hugs purl
16:32 * purl hugs sri back
16:33 yko lol
16:37 perlrocks Twitter: "Mojolicious-1.01 http://frepan.org/ ~ kraih/Mojolicious-1.01 /" (ja) --akiym http://twitter.com/akiym/status/23055598165688320
16:39 yko i feel that hiding retweets that was a gread idea
16:40 sri indeed
16:42 * yko imagenes thousands of retweets knocking on the roof like rain.
16:42 GitHub95 joined #mojo
16:42 GitHub95 mojo: master Sebastian Riedel * 4a464b7 (3 files in 3 dirs): fixed typo - http://bit.ly/hmYr6D
16:42 GitHub95 left #mojo
16:47 dotan Wait, you removed via() from routes?
16:48 yko why do you think so?
16:49 yko via documented in Routing Guide so must be ok
16:49 dotan Because my routes don't match, of course.
16:49 dotan Yeah, I see it's still there.
16:49 dotan bah.
16:53 GitHub70 joined #mojo
16:53 GitHub70 mojo: master Sebastian Riedel * 2b98959 (3 files in 3 dirs): fixed optgroup support in select_field helper - http://bit.ly/e0W1eq
16:53 GitHub70 left #mojo
16:54 sri i suspect nobody has used select_field with optgroup yet
16:56 yko ye ) but i'm going to... one sweet day
16:56 sri this is exactly why i keep these things experimental for so long ;p
16:57 GitHub82 joined #mojo
16:57 GitHub82 mojo: master Sebastian Riedel * 7431812 (1 files in 1 dirs): cleanup - http://bit.ly/hbY15i
16:57 GitHub82 left #mojo
16:58 yko you are right and so big... :)
16:58 sri -.-
16:59 sri not sure about using the hashref as a pair container
17:00 yko because of sequence?
17:00 sri nope, it can only contain one pair
17:01 sri multiple optgroups would look like [{}, {}, {}]
17:01 sri [{Europe => [...]}, {Asia => [...]}]
17:08 dotan If I want to handle get and post differently on a single route ('/:script.cgi'), can I dispatch it to() 2 different callbacks via() the method?
17:09 dotan Doesn't seem to work - If I create a route and direct it via(method) to(callback), I don't match.
17:10 sri you need two routes
17:11 sri or you go hybrid
17:12 sri my $s = ...->under('/:script.cgi'); $s->get(sub {...}); $s->post(sub {...});
17:12 sri i would always use hybrid routes instead of to(cb =>...)
17:13 dotan I need to use under()? route() doesn't work?
17:13 sri you might want to take a closer look at the documentation to understand whats really going on
17:16 dotan sri: the hybrid example is the only place under() is mentioned in the routing guide
17:18 otaviof left #mojo
17:20 dotan oh wait, it's elaborated in the Lite doc
17:24 josh left #mojo
17:28 dotan Bah. Trying to use under(), get() and post() gives me deep recursion warnings and no output. I'm switching back to route()->to(cb) with an if/else on req->method.
17:29 MojoGuest682 joined #mojo
17:30 perlrocks Twitter: "perl -Mojo -e 'a("/" => {text => "Hello Mojo!"})->start' daemon" --motonarola http://twitter.com/motonaro​la/status/23068782733824000
17:30 MojoGuest682 hi there
17:30 purl salut, MojoGuest682.
17:30 MojoGuest682 purl, bot ? :)
17:30 purl MojoGuest682: sorry...
17:30 MojoGuest682 i see..
17:31 yko :)
17:31 yko purl is so sweet
17:31 * yko waves
17:32 MojoGuest682 /me waves too
17:32 MojoGuest682 huh
17:32 MojoGuest682 /me
17:32 MojoGuest682 blah
17:32 MojoGuest682 why old irc commands doesn't work ? :)
17:33 MojoGuest682 /help
17:33 MojoGuest682 gege
17:34 dotan sri: why does query_params->to_string return undef on an empty query string? Won't an empty string be better?
17:34 MojoGuest682 can you recommend a good example to start with mojo (websockets) ?
17:35 MojoGuest682 at the moment i'm using catalyst framework, but have lot updates and wanna try to use websockets
17:35 yko MojoGuest682: websockets protocol going to change, it's better to wait untill they release stable spec
17:38 yko MojoGuest682: there's really minimalistic example: http://mojolicio.us/perldoc?Mojol​icious/Guides/Routing#WebSockets
17:38 yko MojoGuest682: only /nick and /join works in that websocket client :)
17:51 dotan left #mojo
17:52 MojoGuest721 joined #mojo
17:52 MojoGuest721 From: http://www.google.com/url?sa=t&amp;source=w​eb&amp;cd=7&amp;sqi=2&amp;ved=0CEQQFjAG&amp​;url=http%3A%2F%2Fdev.xantus.org%2F&amp;rct​=j&amp;q=extjs%20demo&amp;ei=MgEmTcmxFZO6sA​OckOTqAQ&amp;usg=AFQjCNGw6nZv0wO42uzUnHhWcD​0vcKNULg&amp;sig2=PINM2sheAqG6q36QarJNZQ (1 hits)
17:52 MojoGuest721 left #mojo
17:56 seb_ left #mojo
18:31 GitHub97 joined #mojo
18:31 GitHub97 mojo: master Sebastian Riedel * 80121ad (2 files in 2 dirs): fixed typo - http://bit.ly/gLmo10
18:31 GitHub97 left #mojo
19:16 seb_ joined #mojo
19:18 breaker313 left #mojo
20:01 marty https://gist.github.com/768471
20:02 marty I thought redirect_to could also set stash values.  However, in the code above the stash value never gets set.
20:03 yko marty, are you sure you have route named '/'  and it has stash bindings?
20:04 yko oh... you mean 'define stash values'
20:05 avkhozov joined #mojo
20:06 yko no, it wont set stash values, otherwise Mojolicious apps code would became terrible
20:06 avkhozov left #mojo
20:07 marty Ahhh.  So in the example from the controller guide... $c = $c->redirect_to('named', foo => 'bar');  What is foo?
20:08 marty Doh!!! ok I get it.  "named" is a named route?
20:09 yko ye. $r->route('/path/:foo')->name('named'); $self->redirect_to('named', foo => 'bar') => /path/bar
20:10 marty Ahhhh.  wow. I was Totaly off on that one.  Thank you for clearing that up for me, yko.  I appreciate the help.
20:12 otaviof joined #mojo
20:19 jamesw left #mojo
20:32 seb_ left #mojo
21:00 garu hmm... how do I get the base url in M:Lite? I mean whatever comes before '/'?
21:04 garu like "http://localhost" or "http://my.server.org/"
21:06 yko like it done in base_tag helper: $self->req->url->base
21:08 jamesw joined #mojo
21:09 garu yeah, I'm familiar with req->url->base.... I was hoping for a shortcut :)
21:14 yko <% base_tag %> is a showrtcut :p
21:14 garu a friend told me they want their M:Lite app to redirect_to other (non-mojo) app on their server
21:15 garu so he's asking if there's anything more elegant than $base = $self->req->url->base; redirect_to( $base->scheme . '://' . $base->host . '/foo/bar' )
21:19 yko do i understand you right? you need just redirect to same host, same schme, just arbitrary path?
21:19 garu yup
21:20 yko doesn't redirect_to('/foo/bar') helps you?
21:20 garu nope, because it's somewhere not in the app's root
21:20 garu redirect_to( '/foo/bar' ) points him to "http://server/mojoapp/foo/bar"
21:21 garu he wants to get rid of the "/mojoapp" part
21:21 yko uhmmm. your app lives somewhere like http://server/mojoapp ?
21:24 garu not my code, but I believe so, yeah
21:25 garu basically he wants to be able to elegantly fetch $scheme + $host, to be able to redirect his users to other pieces of code not under Mojolicious
21:27 yko im unsure about this part at the moment
21:28 seb_ joined #mojo
21:30 garu :(
21:32 yko garu: url_for->base is what you need
21:32 curt joined #mojo
21:33 yko $self->url_for->base or as helper url_for->base. i hope you enjoy it
21:37 yko we all must anderstand that mojolicious interpret abs urls (path) as urls absolute to app root.
21:38 yko which means that (sometimes) your '/' will point not to http://localhost/ but to http://localhost/yourapp/
21:39 garu yko++
21:39 garu it appears to be working for him
21:39 yko that may confuse sometimes, but that's much better than dirty hacks i've applyed to achieve similar functionality
21:39 garu absolutely
21:39 purl Quite so.
21:48 cybertom left #mojo
21:48 marcus kinda annoying
21:49 marcus I get mails for every issue and pull request to mojo because I have a fork, it seems.
21:51 yko me too, but i did not recieve any notes about that
21:53 yko markus, when somebody creates pull requests in PEOPLE TO BE NOTIFIED by default three persons: kraih, you and rhaen :)
21:55 marcus oh, guess it is because we have write access to the wiki
21:55 yko :)
21:56 marcus actually, seems I have commit access to kraih/mojo :o
21:56 yko hehe, than you deserve that suffering :D
22:24 kaare left #mojo
22:28 jamesw left #mojo
22:36 jamesw joined #mojo
22:46 jamesw left #mojo
22:47 jamesw joined #mojo
23:17 tempire_ joined #mojo
23:18 tempire_ marcus: I noticed you & rhaen on the mandatory notify list when I made a pull request.
23:18 tempire_ I guess that makes you important
23:19 tempire_ left #mojo
23:20 jamesw left #mojo
23:20 jamesw joined #mojo

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