Camelia, the Perl 6 bug

IRC log for #mojo, 2010-10-17

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

All times shown according to UTC.

Time Nick Message
00:23 alnewkirk joined #mojo
00:38 alnewkirk left #mojo
00:39 alnewkirk joined #mojo
01:06 GabrielVieira2 is now known as GabrielVieira
01:25 perlrocks Twitter: "Added comments to #Bootylicious! #Mojolicious #perl" --vtivti http://twitter.com/vtivti/status/27592782383
02:35 janus left #mojo
02:36 janus joined #mojo
02:51 y0j left #mojo
03:13 y0j joined #mojo
03:20 tempire_ left #mojo
04:04 tholen42 joined #mojo
04:06 tl left #mojo
05:19 Kulag left #mojo
05:40 Kulag joined #mojo
06:36 und3f[A] is now known as und3f
07:00 Kulag left #mojo
07:27 rhaen hep
07:27 rhaen moin
07:33 marcus hah
07:35 rhaen hm, booty* is strange
07:35 rhaen how can I have spaces in a title
07:35 rhaen hm.
07:35 marcus I am pretty sure you can
07:35 rhaen yep. I am pretty sure, too
07:35 rhaen sounds like more docs reading
07:42 rhaen uh - oh.
07:44 rhaen hm, installing Text::Markdown leads to cpan full-install
07:45 rhaen :)
07:47 rhaen I am running the booty* with apache and mod_balancer - works, except the rss feed
07:47 rhaen which is being linked to 127.0.0.1:3000 ...
07:47 marcus fun time
07:47 rhaen strange
07:48 rhaen nah, guess it's not a blog for me :)
07:48 marcus that sounds more like a mojolicious config issue
07:49 marcus I run apps with nginx on high ports without problems
07:49 rhaen oh, same here :)
07:49 rhaen I wonder why this link is being forced to 127...
07:49 rhaen could be a mojo thing or a booty* thing
07:50 rhaen what's your suggestion?
07:51 rhaen hm. so - let's have a look into the link thing
07:51 sri moin
07:51 rhaen moin sri
07:56 rhaen marcus: ah, found it
08:03 rhaen it's using the to_abs function from Mojo to generate the link
08:04 marcus sri: batman was asking about alternatives to Mojo::Client in #moose yesterday
08:04 marcus because he disliked it being bundled with mojolicious or something
08:04 marcus people are never able to tell me why this is a real problem tho
08:05 rhaen as Mojo runs in daemon mode the to_abs function return the full url.
08:05 sri the average bear doesn't like thinking
08:05 marcus sri: amazingly, Class::MOP+Moose is bigger than Mojolicious
08:05 sri rhaen: reverse proxy running on a different machine?
08:06 rhaen sri: no, running a reverse proxy on the same machine
08:07 rhaen like running an apache with reverse proxy to pass requests from port 80 to a mojolicious daemon running on port 3000
08:07 marcus sri: the closest anyone have come to an argument is 'if you use the date parser, installation can fail because of test failures in the JSON module'
08:07 rhaen vti uses this function in booty* to return the url to the rss feed
08:07 sri marcus: Oo
08:07 rhaen so every link is correct, except this one.
08:08 sri marcus: lol
08:08 rhaen sri: any ideas about it?
08:08 sri rhaen: try running the daemon with MOJO_REVERSE_PROXY=1
08:09 sri maybe the peer doesn't identify as 127.0.0.1 for some weird reason
08:09 sri if that doesn't help i'll need a 1:1 copy of the request from the reverse proxy as it goes over the wire
08:10 marcus sri: 23:21 <@confound> the best reason is the one given yesterday: it sucks to depend on something where JSON test failures can make your HTTP date implementation installation bail out
08:11 sri oh, X-Forwarded-For is of course required, dunno if mod_balancer won't send it by default
08:11 rhaen sri: my httpd.conf is quite messy at the moment, I will clean it up, check again and we'll see
08:11 sri marcus: so catalyst sucks because moose can fail its tests?
08:12 marcus sri: no, because catalyst uses moose at runtime
08:12 marcus I asked the same thing about Moose and Package::DeprecationManager
08:13 sri btw. what *is* and alternative to Mojo::Client anyway?
08:13 marcus sri: WWW::Curl, but it sucks
08:14 sri ah
08:14 sri that might be why the japanese started working on a new libcurl based http client
08:14 marcus there's some AE http client as well
08:16 marcus sri: I think the reason WWW::Curl sucks is libcurl, unfortunately.
08:17 sri quite likely
08:32 GitHub22 joined #mojo
08:32 GitHub22 mojo: master Sebastian Riedel * b5e1a5d (2 files in 2 dirs): removed confusing pod entry - http://bit.ly/bA3T9O
08:32 GitHub22 left #mojo
08:44 yakudzo joined #mojo
09:15 perlrocks Twitter: "RT @vtivti Added pingbacks to #Bootylicious! #Mojolicious #perl" --xomaa http://twitter.com/xomaa/status/27622466130
09:16 perlrocks Twitter: "RT @vtivti Added comments to #Bootylicious! #Mojolicious #perl" --xomaa http://twitter.com/xomaa/status/27622494329
09:28 fhelmber_ joined #mojo
09:54 rhaen omg - this booty* starts to conquer Wordpress
09:58 crab sri: what's the frutiger font you like so much?
10:00 kvorg1 rhaen: yeah i believe it does! (but sadly it is no longer a one-file affair - vti should update http://getbootylicious.org)
10:23 vti f*ck, git reset --hard wasn't a good idea
10:24 vti no commets now :D
10:24 gabb oO
10:26 crab vti: if you committed, git log -g will have your old head
10:27 vti crab: oh, thanks a lot
10:27 vti i thought it's gone forever
10:29 gabb sri: I think seperating couchdb and bigcouch made sense because bigcouch was proprietary until recently
10:30 gabb and even now I dunno if integration makes sense - after all how many projects really expect the need for cluster-like scaling
10:32 crab vti: you can git reset --hard sha-of-old-head to restore now
10:32 crab usually people discover the reflog (i.e. log -g) at "oh fuck" moments :-)
10:33 vti :D
10:35 vti you saved me from rewriting that stuff
10:41 marcus git is so awesome
11:03 rhaen hm.
11:04 rhaen can't track it.
11:05 rhaen what is so wrong with it? http://pastie.org/private/g9tdgiowigmpsvsmd5ja1a
11:08 rhaen breaks even without the redirect
11:12 marcus http://twitter.com/antirez/status/27624563122 # Something tells me the Reddis one won't win
11:20 gabb bawww lol
11:21 gabb also he clearly says he will select from top5, not pick top1 :S
11:23 rhaen sri - got it
11:23 rhaen HOLY SHIT IT WWORKS!
11:24 rhaen ProxyPreserveHost On
11:24 rhaen hm, simple
11:33 crab i tried to look at that pastie.org url, but saw nothing. what is it you're trying to do?
11:38 gabb hm, I wonder if mojo client is pretty much all the model I may need with couchdb
11:44 rhaen crab: removed it. I tried an apache as reverse proxy to a mojolicious daemon
11:44 rhaen crab: I still have some problems with the balancer - but I'll sort them out :)
11:46 rhaen you'll have to explicitly set ProxyPres....
11:46 rhaen or the abs_url function will return something other than expected
11:46 punytan_ is now known as punytan
11:46 rhaen which is not a problem of abs_url in Mojo::URL - more a misconfiguration
11:57 doubi joined #mojo
12:11 dotan joined #mojo
12:29 doubi Greetings all. Anyone made some kind of shweet plugin that uses MojoX::Validator to validate your form and automatically goes back and re-renders the page highlighting errors if necessary?
12:32 Kulag joined #mojo
12:34 crab avenir, that's it
12:34 crab this frutiger guy sure has been busy
12:41 * gabb <3's frutiger fonts
12:47 vti doubi: look at bootylicous code, there is highlighting done with 'error' helper
12:47 doubi vti: Will do, cheers :)
12:48 doubi vti: What's this sponsorship news about btw?
12:48 vti i can host it for free :D
12:48 doubi win :D
12:53 crab sponsorship news?
12:54 * vti off to bbq partey
12:54 vti *party
13:42 doubi How can I make a condition return "something else" on failure, instead of just saying the requested page can't be found?
13:43 doubi Or, what's the right way to do that kind of thing? So many options~
13:47 doubi I guess you can simply do validation & decide what to render back in the controller, or even dispatch to route maybe, but if that's the answer I don't understand the point of conditions
13:51 alnewkirk left #mojo
13:57 JonChisciotte1 joined #mojo
14:11 doubi Oh, cool - you can access Everything from inside conditions :-)
15:01 doubi left #mojo
15:24 spleenjack joined #mojo
15:37 spleenjack left #mojo
15:38 spleenjack joined #mojo
15:52 dotan left #mojo
16:32 Htbaa joined #mojo
16:41 spleenjack left #mojo
16:47 und3f is now known as und3f[A]
16:50 sri crab: avenir next?
16:53 sri people always leave way too fast :S
16:54 sri now i wanted to warn doubi...but he's gone
16:59 marcus That is why I never leave
17:07 stephan48 vti: your current commit seems to be broken... http://abc123.pastebin.com/PuB07dMY
17:13 und3f[A] is now known as und3f
18:10 doubi joined #mojo
18:16 kvorg1 sri: just warn doubi, he will come back and read it in the logs when the next time to get warned comes around.
18:16 kvorg1 ach, he just came back, see?
18:17 doubi wtf
18:17 * doubi reads the logs
18:18 doubi It's no good, I'm a lost cause.
18:18 doubi Always leaving before being warned.
18:32 alnewkirk joined #mojo
18:38 forwardever joined #mojo
18:38 rhaen hooray forwardever!
18:38 forwardever moin :)
18:42 alnewkirk left #mojo
18:43 alnewkirk joined #mojo
18:44 forwardever sri: another trial: http://gist.github.com/631117 , now there is resources for plural and resource for singular resources, also, singular resources are dispatched to singular controllers, plural resources are dispatched to plural controllers, although this can easily be changed by passing a controller param, like $self->resources('cities', {controller=>'city'});
18:45 forwardever ideas/feedback would be helpful
18:58 alnewkirk left #mojo
18:59 alnewkirk joined #mojo
19:07 forwardever left #mojo
19:26 fhelmber_ left #mojo
19:34 forwardever joined #mojo
19:59 kvorg1 left #mojo
20:00 vel joined #mojo
20:01 kvorg joined #mojo
20:01 vel left #mojo
20:04 vel joined #mojo
20:19 vel left #mojo
20:19 vel joined #mojo
20:23 vel left #mojo
20:23 vel joined #mojo
20:27 Htbaa left #mojo
20:34 vel left #mojo
20:35 vel joined #mojo
20:35 vel left #mojo
20:37 vel joined #mojo
20:37 doubi What's the best way to access the renderer stash from inside a helper?
20:38 vel left #mojo
20:38 vel joined #mojo
20:39 vel left #mojo
20:44 vel joined #mojo
20:45 vel left #mojo
20:45 vel joined #mojo
21:04 forwardever left #mojo
21:05 doubi Is $self->renderer->add_helper(...) deprecated in favour of $self->helper(...)?
21:08 vel left #mojo
21:08 ltriant joined #mojo
21:13 kvorg doubi: I think so. $self->renderer->helper(...) should work too.
21:14 * kvorg hides in case sri is coming to correct the mistakes with the shotgun.
21:16 doubi Thanks kvorg, now at least the renderer seems to be finding my helper.
21:17 kvorg you can alway take a look at how default helpers and tag helpers are done.
21:18 doubi I /am/ trying to look at example code, I swear <:-) There's just... a lot. And most if not all examples seem to be based on ::Lite which I'm not using.
21:19 doubi Most often just wondering where things ought to be done - as mentioned earlier, sometimes seems like you can grab $c, $r or $app from most places
21:19 doubi Any idea about how to access the stash from within a helper?
21:20 sri lite and normal mojolicious are almost equal there
21:20 sri $c->stash
21:20 sri it's a controller instance
21:20 doubi Is it passed as a final argument to all helpers?
21:20 sri should be in the guides
21:21 sri think we call it $self for consistency
21:22 sri first arg
21:22 doubi ! Ah ok. The Helpers bit in Guides::Rendering just give a description of what they are, doesn't mention that.
21:22 doubi Is that the only implicit arg?
21:23 sri ye
21:23 doubi Thanks :) I'm looking at DefaultHelpers, but since it's a plugin I'm not always sure how to apply its principles
21:25 sri plugins don't use magic
21:26 sri they just call stuff on $app
21:26 sri that cam be done from anywhere
21:26 sri *can
21:28 forwardever joined #mojo
21:41 JonChisciotte1 left #mojo
22:18 vti stephan48: try again
22:21 und3f is now known as und3f[A]
22:29 forwardever left #mojo
22:42 doubi Having a problem with Mojo::DOM: http://paste.scsys.co.uk/53462
22:43 doubi When I remove the text from betwixt the <textarea></textarea> tags above, the Create button disappears and its HTML appears in the text area.
22:43 doubi Bug?
23:04 * doubi will check the logs
23:04 doubi 'night all
23:04 doubi left #mojo
23:05 jamesw left #mojo

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