| Time |
S |
Nick |
Message |
| 00:08 |
|
|
perlrocks joined #mojo |
| 00:22 |
|
|
und3f is now known as und3f[A] |
| 00:34 |
|
|
vel left #mojo |
| 00:43 |
|
|
vel joined #mojo |
| 00:43 |
|
|
vel left #mojo |
| 01:00 |
|
|
Akron joined #mojo |
| 01:02 |
|
|
Akron left #mojo |
| 02:03 |
|
|
memowe joined #mojo |
| 02:03 |
|
|
memowe_ left #mojo |
| 02:21 |
|
|
su-bzero is now known as su-bzero[A] |
| 02:35 |
|
|
Alias joined #mojo |
| 02:35 |
|
|
memowe left #mojo |
| 02:36 |
|
|
memowe joined #mojo |
| 02:40 |
|
|
daviddelikat left #mojo |
| 03:02 |
|
|
daviddelikat joined #mojo |
| 03:10 |
|
|
perlrocks left #mojo |
| 04:04 |
|
|
tholen42 joined #mojo |
| 04:06 |
|
|
tl left #mojo |
| 06:28 |
|
omega |
hms, I get one failing test on latest cpan-release? |
| 06:28 |
|
omega |
https://gist.github.com/933f5ac1e0acf958fc97 |
| 06:30 |
|
|
kaare joined #mojo |
| 06:33 |
|
|
avkhozov joined #mojo |
| 06:34 |
|
omega |
it seems to be lite_app.t that fails |
| 06:34 |
|
marcus |
yay |
| 06:34 |
|
marcus |
http://www.slideshare.net/category/technology - my mojolicious talk is featured. |
| 06:34 |
|
marcus |
too bad slideshare fucks it up so much. |
| 06:36 |
|
crab |
what is -Ofun? |
| 06:36 |
|
marcus |
optimized for fun |
| 06:36 |
|
marcus |
is's a perl6ism |
| 06:40 |
|
|
avkhozov left #mojo |
| 06:40 |
|
|
avkhozov joined #mojo |
| 06:42 |
|
|
avkhozov left #mojo |
| 06:42 |
|
|
avkhozov joined #mojo |
| 06:44 |
|
|
avkhozov left #mojo |
| 06:44 |
|
|
avkhozov joined #mojo |
| 06:51 |
|
zipkid |
sri: those pinstripes DO make the code look good indeed :-) |
| 07:04 |
|
|
koban joined #mojo |
| 07:07 |
|
|
und3f[A] is now known as und3f |
| 07:17 |
|
zipkid |
sri: i restarted my laptop after 26 days uptime... Now the '/' in the urls work fine :-) Sorry for the confusion! |
| 07:20 |
|
|
kvorg left #mojo |
| 07:38 |
|
|
ysyrota joined #mojo |
| 08:11 |
|
|
avkhozov left #mojo |
| 08:18 |
|
|
mmcleric joined #mojo |
| 08:24 |
|
|
avkhozov joined #mojo |
| 09:15 |
|
|
kvorg joined #mojo |
| 09:24 |
|
|
avkhozov left #mojo |
| 09:24 |
|
|
avkhozov joined #mojo |
| 09:27 |
|
|
otaviof joined #mojo |
| 09:32 |
|
|
avkhozov left #mojo |
| 09:44 |
|
sri |
omega: nothing related to that test changed |
| 09:48 |
|
zipkid |
Morning sri |
| 09:48 |
|
zipkid |
saw my comment about the '/' ? |
| 09:48 |
|
sri |
moin |
| 09:48 |
|
sri |
zipkid: yea |
| 10:03 |
|
|
otaviof left #mojo |
| 10:06 |
|
|
spleenjack joined #mojo |
| 10:09 |
|
|
koban left #mojo |
| 10:10 |
|
|
koban joined #mojo |
| 10:16 |
|
|
koban left #mojo |
| 10:34 |
|
|
kvorg left #mojo |
| 10:35 |
|
|
kvorg joined #mojo |
| 10:51 |
|
|
koban joined #mojo |
| 11:10 |
|
|
avkhozov joined #mojo |
| 11:29 |
|
|
kvorg left #mojo |
| 11:33 |
|
|
forwardever joined #mojo |
| 11:39 |
|
|
otaviof joined #mojo |
| 11:56 |
|
|
kvorg joined #mojo |
| 12:05 |
|
sri |
http://developers.slashdot.org[…]-To-Surpass-CPANs # damn |
| 12:07 |
|
|
perlrocks joined #mojo |
| 12:10 |
|
marcus |
shit |
| 12:10 |
|
marcus |
ok, I'm switching to ruby!#$%!$#! |
| 12:12 |
|
yko |
if not count CPAN mudules that wasn't updated last 10-12 years, situation is even worse :\ |
| 12:14 |
|
marcus |
uhm |
| 12:14 |
|
marcus |
Displaying gems 1 - 30 of 1265 in total |
| 12:14 |
|
marcus |
http://rubygems.org/gems |
| 12:14 |
|
marcus |
are they counting all versions? |
| 12:14 |
|
yko |
that's for 'A' |
| 12:14 |
|
marcus |
ah |
| 12:14 |
|
yko |
ye, confusing a bit |
| 12:16 |
|
perlrocks |
Twitter: "Love how #perl code looks in the #mojolicious perldoc browser with the new pinstripe background. http://twitpic.com/3hqifa/full" --kraih http://twitter.com/kraih/status/16829388767105024 |
| 12:20 |
|
yko |
sri: maybe it's even better to make routes/urls like /perldoc/Mojolicious/Lite#SYNOPSYS |
| 12:20 |
|
sri |
a lot of effort for little value |
| 12:21 |
|
sri |
since we need to support perldoc?Mojolicious::Lite too |
| 12:21 |
|
yko |
ok :) |
| 12:21 |
|
yko |
oh... then yes... |
| 12:21 |
|
perlrocks |
Twitter: "RT @kraih: Love how #perl code looks in the #mojolicious perldoc browser with the new pinstripe background. http://twitpic.com/3hqifa/full" --zipkid http://twitter.com/zipkid/stat[…]16830579731333120 |
| 12:27 |
|
|
avkhozov left #mojo |
| 12:36 |
|
|
GitHub13 joined #mojo |
| 12:36 |
|
GitHub13 |
mojo: master Sebastian Riedel * 1389dc9 (1 files in 1 dirs): cleanup - http://bit.ly/gO6HKx |
| 12:36 |
|
|
GitHub13 left #mojo |
| 12:44 |
|
|
otaviof left #mojo |
| 12:58 |
|
marcus |
hmm |
| 12:58 |
|
marcus |
curl -L cpanmin.us | perl - http://lastest.mojolicio.us/ fails for me |
| 12:58 |
|
marcus |
says tar: Unrecognized archive format: Inappropriate file type or format |
| 12:58 |
|
zipkid |
gzip: stdin: not in gzip format |
| 12:58 |
|
marcus |
doh, lastest |
| 12:59 |
|
marcus |
guess sri has a * ns record set up |
| 12:59 |
|
zipkid |
worked for me yesterday, today error indeed. |
| 12:59 |
|
marcus |
no, I misspelled |
| 12:59 |
|
marcus |
should be latest, not lastest |
| 12:59 |
|
zipkid |
ow... lol |
| 13:00 |
|
sri |
lastest lol |
| 13:00 |
|
zipkid |
no more versions after the 'lastest' :-) |
| 13:00 |
|
marcus |
sri: I blame you for not getting a 'host not found' :p |
| 13:01 |
|
* sri |
slaps marcus with a dictionary |
| 13:02 |
|
sri |
shame on you for not having it on a shell alias already! |
| 13:02 |
|
* marcus |
slaps sri with a large trout |
| 13:02 |
|
marcus |
I usually install from my git checkout |
| 13:05 |
|
sri |
the whole ruby situation is weird |
| 13:05 |
|
|
vel joined #mojo |
| 13:06 |
|
sri |
people mostly use it as a toy language but do real world stuff in python |
| 13:06 |
|
zipkid |
And what do the mere numbers tell.... only that, but nothing about the quality... |
| 13:07 |
|
sri |
it's about community size |
| 13:08 |
|
marty |
Tim Bunce has a nice slide show debunking some Perl myths. (it's how I found Mojo) |
| 13:09 |
|
kvorg |
link, pic or it does not exist |
| 13:10 |
|
sri |
while there are a lot of myths it is a fact that we have problems reaching the younger generations |
| 13:10 |
|
marty |
Absolutely correct. |
| 13:11 |
|
sri |
i don't think it has to be that way |
| 13:11 |
|
sri |
oneliners are extremely hip |
| 13:11 |
|
zipkid |
It is true, Each time you mention developing in perl, ppl look at you like your a dinosaur and should have been extinct... |
| 13:11 |
|
kvorg |
i think there are two classes of reasons for this: |
| 13:11 |
|
sri |
perl hacks are hip |
| 13:11 |
|
|
vel left #mojo |
| 13:12 |
|
marty |
http://blog.timbunce.org/2008/03/08/perl-myths/ |
| 13:12 |
|
kvorg |
perl documentation and parts of syntax are designed to resonante with what one knows about unix, shell, awk, sed etc ... all the old details that are there in perl, just better. but the young generation has no knowledge of that. |
| 13:13 |
|
kvorg |
and the second one: while all new features and some new usage patterns can be found in the pod documentation one gets with perl, the examples are still very much what u find in the camel book, perl~5.005 |
| 13:14 |
|
|
avkhozov joined #mojo |
| 13:14 |
|
kvorg |
there were also other problems, such as years of public image goint in the parrot/p6 way and obscuring p5 or even defining it as dead, RedHat shipping a horrible install of perl with some strange slowness in object instantiation, and a strange psychisis in the community itslef |
| 13:14 |
|
marty |
my crystal ball says that perl6, on top of parrot, will slowly start to gain momentum over the never few years. |
| 13:15 |
|
kvorg |
well, i hope it gains momentum in some speed and completeness of implementation sense first, but that is not the issue. it took bloody long, and there was too mzuch bad blood. i still miss dan stugalski's posts on parrot develpment. |
| 13:17 |
|
|
vel joined #mojo |
| 13:18 |
|
sri |
if we've learned something from perl6 it is "never rewrite from scratch" |
| 13:18 |
|
kvorg |
sorry, sugalski, not stugalski, of course (last parrot related post: http://www.sidhe.org/~dan/blog[…]ves/2005_10.html) |
| 13:19 |
|
kvorg |
good point. also, was there not a completely unuses attempt to rewrite perl5 in c++ and make it more embeddable somewhere along the way just before parrot? that must have been ... exciting too. |
| 13:19 |
|
kvorg |
sri: 0_o |
| 13:20 |
|
kvorg |
but but you rewrote the web framework at least 3 times!!! |
| 13:20 |
|
sri |
but i never promised anything in advance ;p |
| 13:20 |
|
sri |
failure is always an option |
| 13:23 |
|
sri |
perl5 rewritten like PyPy or Rubinius would have been awesome |
| 13:23 |
|
sri |
easy to move forward from there |
| 13:25 |
|
kvorg |
yep, parrot was perhaps a bit of an overreach |
| 13:25 |
|
kvorg |
good 1st of april joke, though |
| 13:41 |
|
|
avkhozov left #mojo |
| 13:41 |
|
|
avkhozov joined #mojo |
| 13:41 |
|
|
avkhozov left #mojo |
| 13:48 |
|
perlrocks |
Twitter: "perl scraping to gather information on the mojo, and I feel that codeigniter the php is called the best value for money display. I have not written recently. . . A meet." (ja) --yasuhiko http://twitter.com/yasuhiko/st[…]16852512782946305 |
| 13:48 |
|
perlrocks |
Twitter: "RT @ yasuhiko: perl mojo of information to be collected by scraping in php codeigniter I feel that the cost is called the best view. I have not written recently. . . A meet." (ja) --AE_PerlIsm http://twitter.com/AE_PerlIsm/[…]16852513596641283 |
| 13:50 |
|
perlrocks |
Twitter: "RT! Yasuhiko: perl mojo of information to be collected by scraping in php codeigniter I feel that the cost is called the best view. I have not written recently. . . A meet." (ja) --perlism http://twitter.com/perlism/sta[…]16852836784537600 |
| 13:56 |
|
forwardever |
sri: package Mojo::Command; line 253: return return Mojo::Server->new->app ... is that a typo? |
| 13:57 |
|
sri |
forwardever: yes, thanks |
| 13:57 |
|
|
GitHub35 joined #mojo |
| 13:57 |
|
GitHub35 |
mojo: master Sebastian Riedel * 8570b7e (1 files in 1 dirs): fixed typo - http://bit.ly/elIaa5 |
| 13:57 |
|
|
GitHub35 left #mojo |
| 14:01 |
|
|
arthas joined #mojo |
| 14:03 |
|
kvorg |
sri: a recipe for hypnotoad with logrotate would be nice, sooner or later this will be one of the common questions on the channel |
| 14:05 |
|
sri |
atm logrotate is a zero downtime restart too |
| 14:13 |
|
|
vel left #mojo |
| 14:15 |
|
|
mmcleric left #mojo |
| 14:19 |
|
marty |
What's the best way to abbreviate class names?.... Currently I am using: use abbreviation qw(Very::Long::ClassName::Here); any suggestions? |
| 14:20 |
|
sri |
why would you use class names often enough for taht in the first place? |
| 14:21 |
|
marty |
Ahhh, good point. Lemme rethink that. :) |
| 14:21 |
|
sri |
:) |
| 14:21 |
|
yko |
marty: sometimes i use __PACKAGE__->attr(model => 'MyApp::Model::Modelname'); but you'd better listen to sri :) |
| 14:22 |
|
sri |
we do that in Mojolicious too for controller_class |
| 14:22 |
|
sri |
but only for parts that are commonly reconfigured |
| 14:22 |
|
sri |
json_class, dom_class |
| 14:23 |
|
yko |
being frank, i just have sub 'model' in base Controller class that auto-detects corresponding model name and preloads it if needed :D |
| 14:24 |
|
sri |
oh noes! |
| 14:24 |
|
yko |
those examlpe above is simplified |
| 14:24 |
|
sri |
that sounds like catalyst |
| 14:24 |
|
yko |
sri, yeees, i do! :p |
| 14:25 |
|
yko |
$c->model->find(id => 42); or $c->model('foo')->create(bar => 'baz'); |
| 14:25 |
|
yko |
sound for me much better than MyApp::Model::Foo->... |
| 14:26 |
|
kvorg |
sri: i gathered that about log rotate here 2 days ago, but figured that it would be a nice thing to have in writing, so that developer/admin iteration is smoother. Anyway, am about to start deplaying several apps, so perhas i can do that once i get so far. |
| 14:27 |
|
sri |
kvorg: i'm still a little undecided if it is the right design |
| 14:27 |
|
kvorg |
then i will make a mental note and prod you after a while of if you give sign of a different design |
| 14:28 |
|
kvorg |
no rush, this is not part of the api, i guess that can be changed after some more ht deployments are done, no? |
| 14:28 |
|
sri |
ye |
| 14:28 |
|
sri |
so far i only see advantages though |
| 14:29 |
|
kvorg |
me too, and no additional logic to take care of |
| 14:29 |
|
kvorg |
but we need a real sysadmin to poke a hole in that. i think i know just the guy, loves bsd and ruby :-P |
| 14:30 |
|
sri |
reminds me that i wanted to redirect STDERR into the logfile |
| 14:30 |
|
|
vel joined #mojo |
| 14:38 |
|
|
kaare left #mojo |
| 14:46 |
|
|
jdixon left #mojo |
| 15:02 |
|
* kvorg |
wonders what the different /etc/init.d/hypnotoad scripts in the distros will look like, and how many will be longer than ht itself. |
| 15:03 |
|
sri |
not unlike the ones for nginx |
| 15:13 |
|
|
GitHub188 joined #mojo |
| 15:13 |
|
GitHub188 |
mojo: master Sebastian Riedel * daf2039 (1 files in 1 dirs): cleanup - http://bit.ly/gGJMZa |
| 15:13 |
|
|
GitHub188 left #mojo |
| 15:25 |
|
|
a|newkirk[assoc] joined #mojo |
| 15:34 |
|
|
kvorg left #mojo |
| 15:34 |
|
|
a|newkirk[assoc] is now known as alnewkirk |
| 15:38 |
|
|
forwardever left #mojo |
| 15:42 |
|
|
daviddelikat left #mojo |
| 15:43 |
|
|
daviddelikat joined #mojo |
| 16:05 |
|
|
koban left #mojo |
| 16:27 |
|
|
kvorg joined #mojo |
| 16:28 |
|
* crab |
fell into a deep ditch and hurt himself |
| 16:31 |
|
zipkid |
bad idea crab ... |
| 16:32 |
|
sri |
really, what were you thinking! |
| 16:38 |
|
|
MojoGuest384 joined #mojo |
| 16:38 |
|
MojoGuest384 |
From: http://www.google.de/search?so[…]ockets+irc+client (1 hits) |
| 16:38 |
|
MojoGuest384 |
test |
| 16:38 |
|
MojoGuest384 |
:) |
| 16:39 |
|
MojoGuest384 |
/help |
| 16:39 |
|
MojoGuest384 |
lol |
| 16:39 |
|
|
MojoGuest384 left #mojo |
| 16:49 |
|
|
ysyrota left #mojo |
| 16:57 |
|
* zipkid |
fighting with the route -> bridge flow of events and flash / stash / session use... |
| 16:58 |
|
zipkid |
Can i test that in Lite? |
| 17:06 |
|
yko |
'under' stands for bridge in Lite. not the same though. reffer to Lite docs |
| 17:07 |
|
zipkid |
is there a 'flow' documentation? I see wierd things...? |
| 17:10 |
|
zipkid |
The Growing doc does not use Bridge for the login check... makes it cumbersome to put the check in each page.... |
| 17:14 |
|
spleenjack |
sri: a few hours ago find out that exceptions sometimes appears in the log as 'Exception!' string and hides real die-string. i'm not sure but the reason is in the mojo::exception::throw. thats two lines '$e->_detect(@_); die $e' must be on single line 'die $e->_detect' because detect-sub returning message immediatly if it looks like mojo::exception. and i don't know how write the test. does it make sense? |
| 17:14 |
|
sri |
zipkid: see, that happens when you don't follow the intended flow |
| 17:15 |
|
sri |
normally you would have learned about under in the lite tutorial |
| 17:19 |
|
|
avkhozov joined #mojo |
| 17:19 |
|
sri |
spleenjack: hmm |
| 17:19 |
|
|
avkhozov left #mojo |
| 17:19 |
|
sri |
spleenjack: you don't have a test case? |
| 17:21 |
|
sri |
spleenjack: well, the code gets shorter, so i can make the change anyway, but without a test there are no guarantees it won't break again |
| 17:21 |
|
spleenjack |
no. i'd just thinking you will admit and fix it :) |
| 17:21 |
|
sri |
it will likely break again |
| 17:22 |
|
|
GitHub182 joined #mojo |
| 17:22 |
|
GitHub182 |
mojo: master Sebastian Riedel * d5322f5 (1 files in 1 dirs): cleanup - http://bit.ly/gej44B |
| 17:22 |
|
|
GitHub182 left #mojo |
| 17:25 |
|
spleenjack |
sri: thanks. i'm trying to make the test |
| 17:26 |
|
sri |
that would be nice |
| 17:31 |
|
spleenjack |
hooray, it seems i'm on the right way |
| 17:31 |
|
|
arthas left #mojo |
| 18:00 |
|
spleenjack |
sri: http://pastebin.com/SBJqy17t |
| 18:00 |
|
spleenjack |
the problem appears if doing die in eval |
| 18:03 |
|
janus |
wheeee, the perldoc stuff is nice |
| 18:03 |
|
janus |
one item less on my todo list without doing anything ;) |
| 18:06 |
|
marcus |
Ooh neat, perlbal has documentation now http://goo.gl/u9lLE |
| 18:09 |
|
janus |
one thing (test and stupid fix) though: https://gist.github.com/748732 |
| 18:10 |
|
janus |
the path to pod locations aren't in @INC |
| 18:12 |
|
janus |
also some inline links aren't working - no diagnosis or patch for that one yet |
| 18:21 |
|
sri |
spleenjack: doesn't seem to trigger it |
| 18:23 |
|
sri |
spleenjack: the die $@ needs to be on a different line |
| 18:26 |
|
spleenjack |
sri: sorry, i don't understand |
| 18:27 |
|
spleenjack |
the last test is failed on the previous revision of mojo |
| 18:28 |
|
|
GitHub106 joined #mojo |
| 18:28 |
|
GitHub106 |
mojo: master Sebastian Riedel * ab3222c (2 files in 2 dirs): added test - http://bit.ly/gEVW3K |
| 18:28 |
|
|
GitHub106 left #mojo |
| 18:30 |
|
sri |
janus: whats /pods? |
| 18:30 |
|
janus |
sri: the stupid fix... that's just the subdir on osx that contains the perl.* pod files |
| 18:30 |
|
sri |
ah |
| 18:31 |
|
janus |
i am still looking how perldoc does it |
| 18:31 |
|
yko |
windows - the same |
| 18:31 |
|
sri |
anyone know if thats cross platform? |
| 18:31 |
|
janus |
it isn't, already checked |
| 18:34 |
|
yko |
janus: did you mean Pod::Perldoc lines 1706-1717 ? |
| 18:35 |
|
spleenjack |
sri: sweeeeeet. thanks |
| 18:35 |
|
janus |
if my browser only had line numbers... but maybe *g* |
| 18:35 |
|
yko |
just search for "/pods" :) |
| 18:36 |
|
janus |
ah, nice :) |
| 18:36 |
|
janus |
that's it |
| 18:36 |
|
|
GitHub79 joined #mojo |
| 18:36 |
|
GitHub79 |
mojo: master Sebastian Riedel * 8237f6e (3 files in 3 dirs): improved perldoc support - http://bit.ly/f7Zp1M |
| 18:36 |
|
|
GitHub79 left #mojo |
| 18:37 |
|
janus |
for me, /pod is missing |
| 18:37 |
|
yko |
hehe, 'pods' was 'pod' in older perl, like 5.8 |
| 18:37 |
|
sri |
os? |
| 18:38 |
|
yko |
but since we are going to require 5.10, we can just forget ir :D |
| 18:38 |
|
janus |
This is perl, v5.10.1 (*) built for amd64-openbsd |
| 18:38 |
|
sri |
is perldoc in its own package? |
| 18:38 |
|
|
avkhozov joined #mojo |
| 18:38 |
|
|
avkhozov left #mojo |
| 18:38 |
|
janus |
nah, comes with base perl |
| 18:38 |
|
spleenjack |
pah, tt-renderer has failure again |
| 18:44 |
|
spleenjack |
exactly. using of deprecated controller::helper method |
| 18:56 |
|
|
GitHub137 joined #mojo |
| 18:56 |
|
GitHub137 |
mojo: master Sebastian Riedel * 5a2e5fe (1 files in 1 dirs): cleanup - http://bit.ly/gAUezE |
| 18:56 |
|
|
GitHub137 left #mojo |
| 18:57 |
|
sri |
spleenjack: $c->helper was recently removed since its deprecation period ran out |
| 18:59 |
|
spleenjack |
yep. but plugins' authors have lag behind life) |
| 19:00 |
|
janus |
!twitter showed the perldoc plugin to some #perl hackers today... TIMTOWTDI reactions, but nothing is as easy and nice as it now is with #mojolicious ! |
| 19:00 |
|
sri |
you meant !tweet |
| 19:00 |
|
janus |
darn |
| 19:00 |
|
janus |
!tweet showed the perldoc plugin to some #perl hackers today... TIMTOWTDI reactions, but nothing is as easy and nice as it now is with #mojolicious ! |
| 19:00 |
|
perlrocks |
janus: http://twitter.com/perlrocks/s[…]16931028631293952 |
| 19:02 |
|
janus |
wtf, truncated?! misses the whole point |
| 19:03 |
|
sri |
lol |
| 19:03 |
|
janus |
!tweet showed the #mojolicious perldoc plugin to some #perl hackers today... TIMTOWTDI reactions, but nothing is as easy and nice! |
| 19:03 |
|
perlrocks |
Twitter: "showed the #mojolicious perldoc plugin to some #perl hackers today... TIMTOWTDI reactions, but nothing is as easy and nice! --janus" --perlrocks http://twitter.com/perlrocks/s[…]16931833698582528 |
| 19:03 |
|
perlrocks |
janus: http://twitter.com/perlrocks/s[…]16931833698582528 |
| 19:06 |
|
janus |
everyone seems to have a hack to do it... no need for that anymore |
| 19:08 |
|
janus |
was fun to see the reactions :) |
| 19:08 |
|
sri |
next hack will be for index generation :) |
| 19:09 |
|
sri |
perltoc looks a little underwhelming |
| 19:09 |
|
sri |
especially no links |
| 19:09 |
|
janus |
yep, that sucks in the perl* pages too |
| 19:09 |
|
sri |
ye |
| 19:23 |
|
|
vel left #mojo |
| 19:25 |
|
|
stephen left #mojo |
| 19:26 |
|
zipkid |
Can you use the app object in a helper? |
| 19:26 |
|
zipkid |
or do i need to pass it as a param? |
| 19:26 |
|
yko |
$c->app |
| 19:27 |
|
zipkid |
not known... |
| 19:28 |
|
* zipkid |
read about Helper ... |
| 19:29 |
|
yko |
zipkid: https://github.com/kraih/mojo/[…]od#Adding_Helpers |
| 19:29 |
|
yko |
there's example you just asked in pod that describe helpers |
| 19:31 |
|
zipkid |
yko: i'm talking about /perldoc?Mojolicious#helper |
| 19:32 |
|
yko |
-_- |
| 19:33 |
|
zipkid |
with a module like here /perldoc?Mojolicious/Guides/Growing#Model |
| 19:34 |
|
yko |
I you would look through M9s::Lite you know that 'app' in Lite stands for application object |
| 19:34 |
|
zipkid |
yko: i have. |
| 19:34 |
|
yko |
so app->helper == sub startup { $self->helper } |
| 19:34 |
|
zipkid |
now i'm moving on.... |
| 19:36 |
|
yko |
in helper you recieve controller object as first param. from controller object you can access your application as $c->app |
| 19:36 |
|
zipkid |
yko: my question was, how do i access the app object IN the helper module.... |
| 19:36 |
|
zipkid |
yko: i tried... |
| 19:36 |
|
yko |
there's no "helper module". there's helper routine |
| 19:36 |
|
zipkid |
i'll do it again |
| 19:36 |
|
yko |
ok |
| 19:36 |
|
zipkid |
sorry for the bad naming.. |
| 19:36 |
|
yko |
let me provide little example |
| 19:37 |
|
zipkid |
it is a perl module that i use as helper... no? |
| 19:40 |
|
|
fhelmberger left #mojo |
| 19:40 |
|
yko |
zipkid: https://gist.github.com/748879 |
| 19:41 |
|
yko |
helper isn't an modue. helper is a subroutine that returns (or not) some value |
| 19:41 |
|
yko |
you define helper and you are able use it from templates just calling it by name, or using it from controller object calling $c->helepr_name |
| 19:42 |
|
yko |
there's very simple example at Rendering guide, link to which i already gave to you, but looks like you just ignored it |
| 19:43 |
|
yko |
damn, now i need another glass of bacardi 8 select :\ |
| 19:50 |
|
sri |
https://github.com/kraih/mojo/[…]jolicious.pm#L655 |
| 19:51 |
|
zipkid |
yko: i tink you dont understand my question... |
| 19:51 |
|
sri |
i'm a little puzzled how that could be misinterpreted so badly :( |
| 19:51 |
|
sri |
absolutely nothing there looks like a module, does it? |
| 19:51 |
|
yko |
sri: no |
| 19:52 |
|
zipkid |
sri: no... correct... |
| 19:53 |
|
yko |
zipkid: maybe. because i'm very lazy non-english speaker i can missunderstand somebody even in my mother tongue |
| 19:53 |
|
zipkid |
but the 2nd code listing under /perldoc?Mojolicious/Guides/Growing#Model does ... |
| 19:53 |
|
zipkid |
yko: damn... give me a minute to explain :-( |
| 19:54 |
|
sri |
app->helper(users => sub { $users }); |
| 19:54 |
|
zipkid |
you gouys are great help but a bit focused on what you think.... |
| 19:54 |
|
sri |
whats hard to understand about that code? |
| 19:54 |
|
* yko |
don't see any 'packages' here :) |
| 19:54 |
|
zipkid |
package MyUsers; ...? |
| 19:54 |
|
sri |
it's a closure returning a value |
| 19:55 |
|
zipkid |
i call that a module, excuse me... |
| 19:55 |
|
sri |
thats entirely unrelated to helpers |
| 19:55 |
|
zipkid |
DARN..... |
| 19:55 |
|
* yko |
giggles |
| 19:55 |
|
zipkid |
MAn... is that a 'module' or not? |
| 19:55 |
|
zipkid |
yes/no please |
| 19:55 |
|
sri |
entirely unrelated |
| 19:55 |
|
zipkid |
:-( |
| 19:56 |
|
sri |
that module is refered to as "model" everywhere i look |
| 19:56 |
|
zipkid |
so i am not allowed to ask about using it? |
| 19:56 |
|
zipkid |
"Our login manager will simply use a plain old Perl module abstracting away all logic related to matching user names and passwords." |
| 19:56 |
|
zipkid |
do i see 'module' in there????? |
| 19:56 |
|
sri |
exactly |
| 19:56 |
|
zipkid |
So, back to square one ... |
| 19:56 |
|
sri |
it could be a cow |
| 19:57 |
|
sri |
still is entirely unrelated to helpers |
| 19:57 |
|
zipkid |
i know i am not 'entitled' to help |
| 19:57 |
|
sri |
wtf? |
| 19:57 |
|
zipkid |
but am i deserving being mocked? |
| 19:57 |
|
sri |
i'm out |
| 19:57 |
|
yko |
zipkid, just describe what you want to achieve |
| 19:58 |
|
zipkid |
i'm trying to make clear what i mean but i only get naming discussions or 'unrelated' :-( |
| 19:58 |
|
sri |
yko: maybe it is time to stop and let him cool down |
| 19:58 |
|
sri |
this would go nowhere now |
| 19:58 |
|
* yko |
sighs |
| 19:59 |
|
janus |
heh, just reply with code :> |
| 20:00 |
|
zipkid |
one more try... app->helper(users => sub { $users }); <- $users is an 'object' here... how do i ref 'app' within that object ? ... |
| 20:00 |
|
sri |
please stop |
| 20:01 |
|
marty |
sri++ |
| 20:01 |
|
sri |
you can try again later once everybody has cooled down |
| 20:02 |
|
yko |
sri++ |
| 20:02 |
|
marty |
Only 6 more days until xmas!!! (xmas being on the 26th that is) :) |
| 20:03 |
|
sri |
:) |
| 20:07 |
|
|
perlite_ joined #mojo |
| 20:07 |
|
|
GitHub178 joined #mojo |
| 20:07 |
|
GitHub178 |
mojo: master Sebastian Riedel * a333afd (1 files in 1 dirs): pod cleanup - http://bit.ly/eJxjlT |
| 20:07 |
|
|
GitHub178 left #mojo |
| 20:10 |
|
|
perlite left #mojo |
| 20:10 |
|
|
perlite_ is now known as perlite |
| 20:12 |
|
|
MojoGuest740 joined #mojo |
| 20:12 |
|
MojoGuest740 |
From: http://www.google.ca/search?so[…]TF-8&q=extjs+demo (1 hits) |
| 20:12 |
|
|
MojoGuest740 left #mojo |
| 20:33 |
|
|
memowe left #mojo |
| 20:33 |
|
|
memowe joined #mojo |
| 20:51 |
|
* und3f |
sri o/ |
| 20:56 |
|
kvorg |
#list |
| 21:22 |
|
|
alnewkirk left #mojo |
| 21:33 |
|
|
spleenjack1 joined #mojo |
| 21:39 |
|
yko |
sri: On systems that have no perl docs at all current pod_renderer_lite_app.t will fail at #58: status is 302, redirect to cpan |
| 21:39 |
|
sri |
fail? |
| 21:40 |
|
yko |
yes |
| 21:40 |
|
yko |
code is 302 instead of 200 |
| 21:40 |
|
sri |
you mean it cpan fails? |
| 21:40 |
|
sri |
*-it |
| 21:40 |
|
sri |
it redirects to cpan if something is not available locally |
| 21:41 |
|
yko |
yes. |
| 21:41 |
|
yko |
for example on ubuntu by default there's no /pods dir at all |
| 21:41 |
|
sri |
so? |
| 21:41 |
|
yko |
so, $t->get_ok('/perldoc?perlboot')->status_is(200) will fail, because perldoc redirect user to cpan, status is 302 |
| 21:42 |
|
sri |
ah, now you're making sense :) |
| 21:42 |
|
yko |
i can suggest fix: http://bit.ly/geTuBN |
| 21:42 |
|
yko |
but not sure youll approve it |
| 21:43 |
|
yko |
i should fix my brain and teach myself how to write delicious patches :( |
| 21:44 |
|
sri |
damn broken linux distributions |
| 21:44 |
|
yko |
from other hand, my suggestion tests nothing |
| 21:44 |
|
yko |
sri: i don't think it's broken. it's ust ubuntu |
| 21:44 |
|
yko |
*just |
| 21:44 |
|
sri |
all debian dists |
| 21:44 |
|
yko |
they don't ship docs at all. there's no man by default |
| 21:44 |
|
sri |
i know it's all in perl-doc |
| 21:45 |
|
|
perlite left #mojo |
| 21:45 |
|
yko |
but wait, we have not tests for 302 redirects, so it makes sense |
| 21:46 |
|
sri |
no, it's wrong |
| 21:46 |
|
sri |
tests have to go |
| 21:46 |
|
yko |
you are right... you are so big.... (dont remember further) |
| 21:47 |
|
sri |
;p |
| 21:47 |
|
|
GitHub84 joined #mojo |
| 21:47 |
|
GitHub84 |
mojo: master Sebastian Riedel * 81ec04f (1 files in 1 dirs): removed tests again - http://bit.ly/gI3v1q |
| 21:47 |
|
|
GitHub84 left #mojo |
| 21:47 |
|
yko |
:D |
| 21:49 |
|
* yko |
is writing alias for cpanm http://latest.mojo.... |
| 21:50 |
|
kvorg |
yko: Hmm, the real quote is: "Oh Lord...Oooo You are so BIG...so absolutely HUGE ... Gosh ... we're reeeeeally impressed down here I can tell You ... Lord forgive us our dreadfull toading...but...You're just so SUPER...AMEN!!" |
| 21:51 |
|
kvorg |
toading seems most appropriate though ... ALL GLORY TO THE HYPNOTOAD |
| 21:51 |
|
yko |
:) |
| 21:51 |
|
yko |
ill will never remember that. i cant remember how to use tab key actually |
| 21:52 |
|
kvorg |
no matter ... tab key is difficult. |
| 21:52 |
|
yko |
:D |
| 21:52 |
|
sri |
lol |
| 21:52 |
|
kvorg |
it took me 15 years to get funcional tab keys in my fvwm config. pure lazyness thouhg |
| 21:53 |
|
kvorg |
it was interesting to see the perception of a very non-evlolving config from advanced to cool to old-times to just plain weird, but it is built in my fingers :-P |
| 21:54 |
|
* kvorg |
hates modern desktops' lame impersonation of lame windows concepts ... huge virtual desktops with smart keyboard navigation beat it every time |
| 21:55 |
|
marty |
sri you suck!! (adding balance for posterity) :) |
| 21:55 |
|
sri |
:O |
| 21:56 |
|
* kvorg |
wields a bullwhip and goes score some point with sri (sorry marty, you will feel good about this eventually). |
| 21:56 |
|
marty |
lol |
| 21:56 |
|
sri |
\o/ |
| 21:57 |
|
kvorg |
well ubuntu is a strange distribution. i keep a list of packages that need to be installed to make it bearable, and then it is ok |
| 21:58 |
|
kvorg |
it is just like those above mentioned desktops that bury any way to get at a terminal in some Accessory/Tool submenu ... what is this shit? are we children? |
| 21:58 |
|
kvorg |
give me a fcuking terminal and i will never touch your stinking menus again! |
| 21:58 |
|
* kvorg |
wipes sweat and calms down. |
| 22:05 |
|
|
kvorg left #mojo |
| 22:16 |
|
|
perlite joined #mojo |
| 22:28 |
|
janus |
heh, i could only get rid of fvwm when i started looking and hacking on another one ;) |
| 22:30 |
|
janus |
pure wm with groups instead of desktops, which implies: no desktop ;) |
| 22:30 |
|
janus |
i'm always shocked when by what i see for a few seconds between presentations :> |
| 22:31 |
|
janus |
like... chaos, that can be fun when you select all and execute/enter :P |
| 22:33 |
|
janus |
dumdidoo, but why should i care... i am happy with my stuff |
| 22:34 |
|
janus |
it's only that i went through all of this and feel angry about inefficency in general i guess |
| 22:36 |
|
janus |
</me:rotd> |
| 22:39 |
|
janus |
regarding the $users that want an app... |
| 22:40 |
|
janus |
maybe an example of a method-call passing a $tx around would make it such questions obsolete? |
| 22:40 |
|
janus |
s/it // |
| 22:44 |
|
marcus |
huh |
| 22:45 |
|
marcus |
sri: I don't understand the point of relaxed placeholders |
| 22:45 |
|
marcus |
sri: According to your docs they are the same as generic placeholders |
| 22:46 |
|
sri |
marcus: they also match "." |
| 22:47 |
|
sri |
generic is until "/" or "." |
| 22:47 |
|
marcus |
ah |
| 22:48 |
|
marcus |
ooh, frankfurt airport gets hooters |
| 22:49 |
|
* sri |
has never been to hooters |
| 22:50 |
|
marcus |
me neither. They mostly exist in the US |
| 22:53 |
|
janus |
oh, prefix support from pod_renderer is gone? |
| 22:54 |
|
janus |
but still: perl -Mojo -e 'plugin("pod_renderer"); a()->start' daemon |
| 22:56 |
|
sri |
ye, but the plugin call returns the route |
| 22:59 |
|
janus |
perl -Mojo -e 'plugin("pod_renderer")->pattern->parse("/") and a()->start' daemon |
| 23:00 |
|
janus |
wasn't someone collecting mojo oneliners? |
| 23:00 |
|
sri |
sounds like a wiki page :) |
| 23:00 |
|
janus |
i will make that one an alias :> |
| 23:01 |
|
|
spleenjack1 left #mojo |
| 23:08 |
|
janus |
saving the quotes: alias mojopod="perl -Mojo -e 'plugin(\"pod_renderer\")->pattern->parse(\"/\") and a()->start' daemon" |
| 23:14 |
|
|
kvorg joined #mojo |
| 23:23 |
|
|
und3f is now known as und3f[A] |
| 23:23 |
|
|
und3f[A] is now known as und3f |
| 23:29 |
|
|
perlrocks left #mojo |
| 23:48 |
|
kvorg |
hmmm vti's vacation consists of creating n projects in m days while getting something working in m < 4? weird. |