| Time |
S |
Nick |
Message |
| 00:10 |
|
ashleydev |
sri: the issue I have is that defaults doesn't create a mental reference to the stash |
| 00:10 |
|
ashleydev |
for example, if it was called stash_defaults()... |
| 00:10 |
|
ashleydev |
that would make sense |
| 00:11 |
|
ashleydev |
but is a little long |
| 00:11 |
|
sri |
yea, not pretty |
| 00:11 |
|
ashleydev |
agreed, not prety |
| 00:11 |
|
ashleydev |
i prefer stash() over defaults() |
| 00:12 |
|
ashleydev |
stash_vote++ |
| 00:13 |
|
ashleydev |
but then again... i'm only looking at it as a way to store singletons |
| 00:15 |
|
ashleydev |
if you can store default params and such that get overridden |
| 00:15 |
|
ashleydev |
that makes sense to call it defaults. |
| 00:22 |
|
sri |
:) |
| 00:22 |
|
sri |
Zzz |
| 01:10 |
|
|
doubi joined #mojo |
| 02:35 |
|
|
janus joined #mojo |
| 03:42 |
|
|
Alias joined #mojo |
| 03:56 |
|
|
ashleydev joined #mojo |
| 03:56 |
|
|
Foxcool joined #mojo |
| 04:01 |
|
|
yakudzo joined #mojo |
| 04:03 |
|
|
tholen42 joined #mojo |
| 04:09 |
|
|
GitHub181 joined #mojo |
| 04:09 |
|
GitHub181 |
mojo: master Sebastian Riedel * 11b8a92 (5 files in 4 dirs): cleanup - http://bit.ly/bzdTib |
| 04:09 |
|
|
GitHub181 left #mojo |
| 04:48 |
|
|
Foxcool joined #mojo |
| 04:51 |
|
|
GitHub36 joined #mojo |
| 04:51 |
|
GitHub36 |
mojo: master Sebastian Riedel * b7c7c97 (5 files in 4 dirs): cleanup - http://bit.ly/dazXdW |
| 04:51 |
|
|
GitHub36 left #mojo |
| 05:15 |
|
|
koban joined #mojo |
| 05:42 |
|
|
dotan2 joined #mojo |
| 05:56 |
|
|
Foxcool_ joined #mojo |
| 05:56 |
|
|
ashleydev joined #mojo |
| 06:10 |
|
|
yko joined #mojo |
| 06:25 |
|
|
awnstudio joined #mojo |
| 06:45 |
|
|
ysyrota joined #mojo |
| 07:13 |
|
|
alex joined #mojo |
| 08:02 |
|
|
yko joined #mojo |
| 08:07 |
|
|
baton8 joined #mojo |
| 08:12 |
|
|
alex joined #mojo |
| 08:15 |
|
|
dotan2 joined #mojo |
| 08:49 |
|
|
dotan2 left #mojo |
| 08:52 |
|
|
yko joined #mojo |
| 09:05 |
|
|
plu joined #mojo |
| 09:51 |
|
|
koban joined #mojo |
| 09:55 |
|
|
und3f joined #mojo |
| 09:56 |
|
und3f |
hello. got problem with latest mojo - templates including with breaked encoding |
| 10:02 |
|
und3f |
It happens after commit 11b8a9227085b904772a4c44d929d66e99eadf89 |
| 10:10 |
|
|
spleenjack joined #mojo |
| 11:12 |
|
|
awnstudio joined #mojo |
| 12:40 |
|
|
jest joined #mojo |
| 12:57 |
|
|
koban left #mojo |
| 13:00 |
|
|
dotan2 joined #mojo |
| 13:09 |
|
|
und3f joined #mojo |
| 13:43 |
|
|
vel joined #mojo |
| 13:58 |
|
|
awnstudio joined #mojo |
| 14:06 |
|
|
GitHub184 joined #mojo |
| 14:06 |
|
GitHub184 |
mojo: master Sebastian Riedel * d81dba2 (2 files in 2 dirs): cleanup - http://bit.ly/dxDHBQ |
| 14:06 |
|
|
GitHub184 left #mojo |
| 14:07 |
|
sri |
und3f: fixed |
| 14:21 |
|
sri |
damn heat again :/ |
| 14:34 |
|
memowe |
yip |
| 14:35 |
|
memowe |
sri: http://github.com/kraih/mojo/b[…]s/lite_app.t#L640 |
| 14:35 |
|
garfield |
[ t/mojolicious/lite_app.t at master from kraih's mojo - GitHub ] |
| 14:35 |
|
garfield |
http://xrl.us/bhrc55 |
| 14:35 |
|
memowe |
What did you mean by desc? It becomes the test description. |
| 14:35 |
|
sri |
memowe: i needed a quick test to see test descriptions work ;p |
| 14:36 |
|
memowe |
Oh. |
| 14:36 |
|
memowe |
OK :D |
| 14:36 |
|
memowe |
eh eh :) |
| 14:43 |
|
memowe |
btw: cs students, pool party, arduino, lego technic, servo and an ir distance sensor = paddelbot. |
| 14:43 |
|
memowe |
http://www.eingedenk.de/articl[…]delbot-spass.html |
| 14:43 |
|
garfield |
[ Spaß mit dem Paddelbot - Eingedenk ] |
| 14:43 |
|
garfield |
http://xrl.us/bhrc6y |
| 14:43 |
|
memowe |
I forgot: + beer |
| 15:55 |
|
|
awnstudio joined #mojo |
| 16:04 |
|
|
ashleydev joined #mojo |
| 16:33 |
|
|
awnstudio joined #mojo |
| 16:40 |
|
tempire |
Wow, sri, you're really throwing down some gauntlets |
| 16:40 |
|
sri |
? |
| 16:40 |
|
tempire |
Your latest tweet |
| 16:41 |
|
sri |
thats just the truth |
| 16:41 |
|
tempire |
Maybe, but are you sure you want to generate more negative feedback? |
| 16:42 |
|
sri |
why would that generate negative feedback? |
| 16:42 |
|
sri |
not like i'm attacking anyone |
| 16:46 |
|
sri |
just mentioning it because i was asked about it a few times recently |
| 16:47 |
|
sri |
mojolicious is simply what catalyst could have become |
| 16:47 |
|
|
ashleydev_ joined #mojo |
| 16:47 |
|
ash_ |
sri: i am having trouble running mojo as fcgi, is there something special i have to do to get that to work? or... a guide on how to do it? |
| 16:48 |
|
sri |
ash_: see cookbook |
| 16:49 |
|
ash_ |
thanks, will do |
| 16:53 |
|
|
su-bzero_ joined #mojo |
| 16:55 |
|
ash_ |
umm another dumb question, where is the cookbook? |
| 16:55 |
|
|
ashleydev joined #mojo |
| 16:56 |
|
ash_ |
i have seen coding guidelines, a cheat sheet, etc. but i don't see it in the perldocs or on the website |
| 16:56 |
|
sri |
github |
| 16:56 |
|
sri |
i'm still working on it |
| 16:58 |
|
ash_ |
kk |
| 17:09 |
|
|
sekimura joined #mojo |
| 17:14 |
|
tempire |
sri: I think that's a good follow up. My comment was influenced by the growing tension between Mojolicious & Dancer, and I'd hate for it to grow any further |
| 17:15 |
|
tempire |
'cause mojolicious is awesome, it definitely stands on its own |
| 17:15 |
|
tempire |
but you already know that |
| 17:20 |
|
sri |
tempire: don't interpret too much into my attack on dancer |
| 17:20 |
|
sri |
it was pure marketing |
| 17:22 |
|
sri |
otherwise i couldn't just stop ;) |
| 17:24 |
|
sri |
in fact i don't care about dancer at all, what worries me actually is node.js and its possible successors |
| 17:30 |
|
sri |
someone could theoretically build a node.js killer with rhino squishing all its problems at once |
| 17:32 |
|
|
diegok joined #mojo |
| 18:09 |
|
|
spleenjack left #mojo |
| 18:29 |
|
sri |
yay, domain shopping successful :) |
| 18:39 |
|
sri |
also got http://mojolicio.us |
| 18:39 |
|
garfield |
[ Mojolicious Web Framework - Join the revolution! ] |
| 18:45 |
|
dotan2 |
I'm trying to use an Ep template with a Haml layout. It works if I use content() as a sub (not $content), but the content is escaped. Where does the content sub come from? All I see is MojoX::Renderer setting stash->{content}->{content} to a Mojo::Bytestream object with the template output |
| 18:46 |
|
sri |
it's a helper |
| 18:46 |
|
sri |
which in turn is a small wrapper around $self->render_inner |
| 18:46 |
|
dotan2 |
What file does it come from? |
| 18:46 |
|
dotan2 |
The Controller? |
| 18:47 |
|
sri |
the content helper? |
| 18:47 |
|
sri |
Mojolicious::Plugin::DefaultHelpers |
| 18:48 |
|
memowe |
mojolicio.us++ :) |
| 18:48 |
|
memowe |
bbl |
| 18:48 |
|
sri |
the haml renderer prolly doesn't make an exception for Mojo::ByteStream objects or so |
| 18:48 |
|
sri |
which could be considered a bug |
| 18:48 |
|
dotan2 |
sri: thanks |
| 18:50 |
|
sri |
it is all up to the renderer, just spam vti with bug reports, i'm sure he'll take care of it :) |
| 18:50 |
|
sri |
content() is also a bug |
| 18:50 |
|
sri |
if he initializes helpers right just content would work too |
| 18:51 |
|
dotan2 |
#{$content} => HASH(0x8e18dd8) |
| 18:51 |
|
sri |
that shouldn't work |
| 18:51 |
|
dotan2 |
#{dumper($content)} => shows it's a Mojo::Bytestream |
| 18:52 |
|
sri |
content is supposed to be a hash containing content blocks |
| 18:52 |
|
dotan2 |
#{content} => almost works, except HTML is escaped |
| 18:52 |
|
sri |
s/content/$content/ |
| 18:52 |
|
sri |
file a bug report |
| 18:52 |
|
sri |
he can just make an exception for Mojo::ByteStream objects |
| 18:53 |
|
sri |
they should bypass escaping |
| 19:10 |
|
|
spleenjack joined #mojo |
| 19:19 |
|
|
yko joined #mojo |
| 19:32 |
|
dotan2 |
grr. vti overrides the Text::Haml escaping function to make an exception for Mojo::ByteStream objects, but when he parses the template he flattens them to strings before inserting his call to escape. |
| 19:32 |
|
sri |
oh |
| 19:44 |
|
dotan2 |
wait! vti rules after all! I just don't understand Haml. |
| 19:44 |
|
dotan2 |
I've been using #{content}, which interpolates a string. |
| 19:45 |
|
sri |
;p |
| 19:45 |
|
dotan2 |
I should use = content, which, umm, does the right thing |
| 19:45 |
|
sri |
blame lack of documentation |
| 19:45 |
|
dotan2 |
#content= content becomes <div id="content">....unescaped html </div> |
| 19:47 |
|
dotan2 |
sri: yep. The Text::Haml docs are sparse, and the Haml-lang.com docs confuse me by talking about inserting raw ruby code. |
| 19:48 |
|
tempire |
mojolicio.us++ |
| 19:52 |
|
|
GitHub72 joined #mojo |
| 19:52 |
|
GitHub72 |
mojo: master Sebastian Riedel * b8bc4f7 (3 files in 3 dirs): added simple iterator support to Mojo::DOM - http://bit.ly/bP0mJL |
| 19:52 |
|
|
GitHub72 left #mojo |
| 19:52 |
|
sri |
this should make web scraping quite awesome |
| 19:53 |
|
sri |
$dom->search('div[id]')->each(sub { print $_->text }); |
| 19:57 |
|
|
GitHub76 joined #mojo |
| 19:57 |
|
GitHub76 |
mojo: master Sebastian Riedel * d9f2f1d (1 files in 1 dirs): cleanup - http://bit.ly/bIxa42 |
| 19:57 |
|
|
GitHub76 left #mojo |
| 19:57 |
|
tempire |
sri: in 'sub each', you assign 'my $e' in the loop, but then reassign it to $_ |
| 19:58 |
|
sri |
cleaned up ;p |
| 19:58 |
|
tempire |
What's the reason for not letting it assign $_ automatically? |
| 19:58 |
|
sri |
CLANED UP! |
| 19:58 |
|
* sri |
needs beer |
| 20:01 |
|
* tempire |
was hoping a new piece of perl performance magic, but accepts that he's just observant. |
| 20:01 |
|
sri |
:) |
| 20:02 |
|
* tempire |
tosses a beer to sri for putting up with irc questions |
| 20:03 |
|
* sri |
drinks it in one gulp |
| 20:17 |
|
|
spleenjack1 joined #mojo |
| 20:21 |
|
dotan2 |
You know what's odder than Haml? Using tag helpers in Haml |
| 20:21 |
|
dotan2 |
link_to '/zod/kneel' , sub { "kneel"; } |
| 20:22 |
|
sri |
yea, not much we could do about that though |
| 20:22 |
|
dotan2 |
Anyway, start a tag line with = and you can put in arbitrary perl code |
| 20:23 |
|
sri |
at least tag helpers work without a special template language |
| 20:23 |
|
dotan2 |
Also, reading the Haml tutorial I learned that Ep =~ ERB |
| 20:23 |
|
dotan2 |
:P |
| 20:23 |
|
sri |
:) |
| 20:29 |
|
|
MojoGuest281 joined #mojo |
| 20:29 |
|
|
xantus_ joined #mojo |
| 20:29 |
|
xantus_ |
hi |
| 20:29 |
|
MojoGuest281 |
hi |
| 20:29 |
|
xantus_ |
. |
| 20:31 |
|
spleenjack1 |
sri: would you change the topic with the new sexy domain? |
| 20:31 |
|
* sri |
waves |
| 20:31 |
|
sri |
spleenjack1: hmm, dunno |
| 20:31 |
|
xantus_ |
what domain |
| 20:31 |
|
sri |
http://mojolicio.us |
| 20:31 |
|
garfield |
[ Mojolicious Web Framework - Join the revolution! ] |
| 20:32 |
|
|
MojoGuest55 joined #mojo |
| 20:34 |
|
stephan48 |
wasnt mojo able to do templates alla index.html.de? |
| 20:34 |
|
xantus_ |
sweet |
| 20:34 |
|
sri |
.de? |
| 20:34 |
|
stephan48 |
sri: lang based templates |
| 20:35 |
|
sri |
no |
| 20:35 |
|
xantus2 |
:) |
| 20:35 |
|
xantus2 |
http://dev.xantus.org/ is back |
| 20:35 |
|
sri |
\o/ |
| 20:35 |
|
sri |
finally :) |
| 20:35 |
|
xantus_ |
it was running, but on 3000 |
| 20:35 |
|
|
ash_ left #mojo |
| 20:35 |
|
xantus_ |
its using the lastest mojo |
| 20:36 |
|
xantus_ |
do you have the fallback to the old draft? |
| 20:36 |
|
sri |
nope |
| 20:36 |
|
xantus_ |
safari 5 is on the old draft I hear |
| 20:36 |
|
sri |
yea, they screwed up |
| 20:53 |
|
|
GitHub60 joined #mojo |
| 20:53 |
|
GitHub60 |
mojo: master Sebastian Riedel * 9c50994 (2 files in 2 dirs): cleanup - http://bit.ly/cUJ5XP |
| 20:53 |
|
|
GitHub60 left #mojo |
| 20:56 |
|
|
awnstudio joined #mojo |
| 21:09 |
|
xantus_ |
sri: what do you think about adding some fd handoff stuff in mojo |
| 21:09 |
|
sri |
fd handoff? |
| 21:09 |
|
xantus_ |
think about this |
| 21:09 |
|
xantus_ |
1 main mojo |
| 21:09 |
|
xantus_ |
with a route, vhost checker, whatever |
| 21:10 |
|
xantus_ |
it can hand off the fd to another mojo in another process |
| 21:10 |
|
xantus_ |
that way you can have transient mojos behind a single mojo |
| 21:11 |
|
sri |
what for? |
| 21:11 |
|
xantus_ |
cause! |
| 21:12 |
|
sri |
;p |
| 21:12 |
|
sri |
don't even think that could be done portable |
| 21:12 |
|
xantus_ |
nope |
| 21:12 |
|
xantus_ |
not in core |
| 21:12 |
|
xantus_ |
I could do it as a plugin |
| 21:13 |
|
xantus_ |
I did it in Sprocket |
| 21:13 |
|
xantus_ |
and mod_apache |
| 21:13 |
|
xantus_ |
er |
| 21:13 |
|
xantus_ |
mod_perl |
| 21:13 |
|
sri |
ok, but why? :) |
| 21:13 |
|
xantus_ |
well, for one thing, you can rip a fd out of an apache and hand it to perl |
| 21:14 |
|
xantus_ |
you keep asking why, use your imagination :) |
| 21:14 |
|
* sri |
is in pragmatic mode atm |
| 21:16 |
|
sri |
xantus_: have you finished the irc bot thingy already? :) |
| 21:19 |
|
xantus_ |
http://cpansearch.perl.org/src[…]/Util/FDpasser.pm |
| 21:19 |
|
garfield |
http://xrl.us/bhref4 |
| 21:20 |
|
xantus_ |
heheh |
| 21:20 |
|
xantus_ |
hmm irc bot |
| 21:20 |
|
xantus_ |
did I say I was going to |
| 21:20 |
|
* xantus_ |
is unsure |
| 21:20 |
|
sri |
yes |
| 21:20 |
|
* xantus_ |
checks the logs |
| 21:21 |
|
sri |
that could be combined with a mojolicious wargames map :D |
| 21:23 |
|
xantus_ |
that'd be cool |
| 21:24 |
|
xantus_ |
http://irclog.perlgeek.de/mojo/2010-06-29 |
| 21:24 |
|
garfield |
[ IRC log for #mojo, 2010-06-29 ] |
| 21:26 |
|
xantus_ |
yeah, with POE |
| 22:00 |
|
|
GitHub7 joined #mojo |
| 22:00 |
|
GitHub7 |
mojo: master Sebastian Riedel * c4fc613 (3 files in 3 dirs): fixed a selector bug in Mojo::DOM - http://bit.ly/cencmU |
| 22:00 |
|
|
GitHub7 left #mojo |
| 22:01 |
|
sri |
perl -MMojo::Client -e 'Mojo::Client->new->get("http://digg.com")->success->dom->search("h3 > a.offsite")->each(sub { print $_->text . "\n"})' |
| 22:01 |
|
sri |
to scrape the latest digg headlines :) |
| 22:02 |
|
crab |
pretty neat. |
| 22:03 |
|
xantus_ |
I wonder the dom selector thing is so hot |
| 22:03 |
|
xantus_ |
uh, why did I say I wonder |
| 22:03 |
|
xantus_ |
Must have typed it earlier |
| 22:05 |
|
sri |
i wonder if i want some magic to allow perl -Mojo -e 'get("http://digg.com")->...' |
| 22:11 |
|
|
GitHub114 joined #mojo |
| 22:11 |
|
GitHub114 |
mojo: master Sebastian Riedel * e3deba8 (1 files in 1 dirs): added example - http://bit.ly/aZvs1B |
| 22:11 |
|
|
GitHub114 left #mojo |
| 22:22 |
|
|
spleenjack joined #mojo |
| 22:32 |
|
|
GitHub127 joined #mojo |
| 22:32 |
|
GitHub127 |
mojo: master Sebastian Riedel * 13cf7f0 (2 files in 2 dirs): allow selector chaining - http://bit.ly/co9PHJ |
| 22:32 |
|
|
GitHub127 left #mojo |
| 22:45 |
|
xantus_ |
-Mojo or -MMojo |
| 22:46 |
|
xantus_ |
the magic module could be called ojo |
| 22:46 |
|
xantus_ |
then you can do that |
| 22:47 |
|
sri |
exactly |
| 22:47 |
|
xantus_ |
that would be nice |
| 22:47 |
|
xantus_ |
use Mojolicious::Magic; |
| 22:47 |
|
xantus_ |
;) |
| 22:48 |
|
sri |
i better get back to doc writing, after all we are frozen for 1.0 now :S |
| 22:50 |
|
xantus_ |
cool |
| 22:51 |
|
sri |
a result from my secret side project will be an async spamassasin client for comment spam checking in mojolicious i guess |
| 22:52 |
|
sri |
it works really well |
| 22:52 |
|
xantus_ |
sweet |
| 22:57 |
|
xantus_ |
cya |
| 23:56 |
|
|
baton8 joined #mojo |