| Time |
S |
Nick |
Message |
| 00:02 |
|
sri |
http://kraih.spreadshirt.de/pe[…]customize/color/2 # it is back :D |
| 00:03 |
|
sri |
much cheaper now |
| 00:03 |
|
jwang |
yep |
| 00:04 |
|
jwang |
and no longer available in a rainbow of colors |
| 00:04 |
|
jwang |
not that it's any big loss |
| 00:04 |
|
sri |
you can have any color, as long as it is black! |
| 00:07 |
|
jwang |
looking good |
| 00:18 |
|
|
ispy_ joined #mojo |
| 00:26 |
|
j-v-e |
if I have a config value named 'conf1', the file is parsed with json_config but how do I access it from the controller ? there is nothing in $self->stash->{conf1} or app->stash->{conf1} |
| 00:31 |
|
j-v-e |
code is here: http://4u.1nw.eu/mojolicious_test_conf.png |
| 00:53 |
|
sri |
j-v-e: umm, that makes no sense at all |
| 00:53 |
|
sri |
your primary lite app does not load the config plugin |
| 00:54 |
|
sri |
and your secondary is useless |
| 00:54 |
|
sri |
where did you see that? |
| 00:54 |
|
sri |
please read the documentation |
| 01:30 |
|
j-v-e |
the documentation has a lot of examples, so that great, but the explanations are a bit short for a beginner |
| 01:30 |
|
j-v-e |
but I understood my problem :) thanks |
| 01:42 |
|
|
Akron joined #mojo |
| 02:06 |
|
|
Akron left #mojo |
| 02:12 |
|
|
daviddelikat1 joined #mojo |
| 02:18 |
|
|
daviddelikat left #mojo |
| 03:07 |
|
perlrocks |
Twitter: "Just checked in Komodo support for Mojolicious template language "ep", but I'm calling it "EPerl" to avoid any confusion for now." --ericpromislow http://twitter.com/ericpromisl[…]42058183371534336 |
| 03:08 |
|
perlrocks |
Twitter: "@ericpromislow That may be confused with Embperl. How about something like Mojolicious-EP?" --kjwcode http://twitter.com/kjwcode/sta[…]42058590776852480 |
| 03:10 |
|
perlrocks |
Twitter: "@ericpromislow Or "mojolicious" of course. :)" --kraih http://twitter.com/kraih/status/42058973804765184 |
| 03:10 |
|
perlrocks |
Twitter: "@ericpromislow Works for me! Hopefully I'll have time to give it a whirl this week. I'm looking forward to playing with Mojolicious." --kjwcode http://twitter.com/kjwcode/sta[…]42059079165820928 |
| 03:12 |
|
perlrocks |
Twitter: "@ericpromislow It really depends on if you also cover templates in the DATA section, then i'd go with "mojolicious"." --kraih http://twitter.com/kraih/status/42059434414968833 |
| 04:03 |
|
|
tholen42 joined #mojo |
| 04:05 |
|
|
tl left #mojo |
| 04:17 |
|
|
ispy_ left #mojo |
| 05:12 |
|
|
GitHub113 joined #mojo |
| 05:12 |
|
GitHub113 |
mojo: master Sebastian Riedel * d0dc228 (1 files in 1 dirs): added link - http://bit.ly/heeah7 |
| 05:12 |
|
|
GitHub113 left #mojo |
| 05:32 |
|
|
zenon joined #mojo |
| 05:33 |
|
|
j-v-e left #mojo |
| 05:33 |
|
zenon |
Howdy good folks, can anyone please suggest a way to implement access control lists (and routing) through ::lite ? |
| 05:36 |
|
|
GitHub109 joined #mojo |
| 05:36 |
|
GitHub109 |
mojo: master Sebastian Riedel * 2610462 (1 files in 1 dirs): small pod tweaks - http://bit.ly/dK7vSP |
| 05:36 |
|
|
GitHub109 left #mojo |
| 05:55 |
|
|
koban1 joined #mojo |
| 05:59 |
|
crab |
zenon: bridges |
| 06:00 |
|
sri |
or "under" in lite |
| 06:01 |
|
crab |
bridge... under... troll! |
| 06:01 |
|
sri |
:) |
| 06:01 |
|
crab |
that's the basis of authentication with mojo. if you don't have the password, a troll blocks your way. |
| 06:04 |
|
sri |
yay, blog post for later written and everything prepared for the raptor logo release, time to lay back and relax a bit :) |
| 06:10 |
|
|
kaare joined #mojo |
| 06:19 |
|
|
tempire left #mojo |
| 06:33 |
|
crab |
meanwhile, here the day is just starting. |
| 06:42 |
|
zenon |
Thanks Sri |
| 06:58 |
|
minimalist |
what is a proper way to define default values for variables in the templates, without using the stash? |
| 07:07 |
|
|
kaare_ joined #mojo |
| 07:08 |
|
|
kaare left #mojo |
| 07:09 |
|
|
tholen joined #mojo |
| 07:10 |
|
crab |
minimalist: what's the proper way to cook an egg without a frying pan? |
| 07:11 |
|
crab |
why would you want to *do* such a thing? mojo has a stash. it is good and helpful. use it. |
| 07:12 |
|
minimalist |
What if a varaible is not defined in the stash and the template is using it? It dies miserably. |
| 07:13 |
|
minimalist |
I use the stash, but setting defaults is a good thing. |
| 07:14 |
|
crab |
set the defaults IN the stash |
| 07:14 |
|
crab |
either app->defaults or just $self->stash(...) or even pass them in with render() |
| 07:14 |
|
crab |
also, in a template where you really don't know if a variable is set or not, use the stash helper |
| 07:14 |
|
minimalist |
what if I'm 'include'-ing a template from another template and I don't have all of the varibales handy? |
| 07:14 |
|
crab |
i.e. instead of $foo use: stash 'foo' || "default" |
| 07:15 |
|
crab |
minimalist: <%= include 'other', some => "val", other => "val" %> |
| 07:15 |
|
minimalist |
ok, that'll do |
| 07:16 |
|
|
tholen left #mojo |
| 07:17 |
|
minimalist |
The proper way to cook an egg without a frying pan is in a microwave. See, I also answer your questions. |
| 07:20 |
|
crab |
BUT BUT... what if i only want to use waves with a lower frequency??? |
| 07:20 |
|
minimalist |
then your egg will cook slower |
| 07:24 |
|
minimalist |
crab, I'm not able to use 'include' at all. Nothing gets included ... You have any tips? |
| 07:27 |
|
minimalist |
I include files in the same directory ... no luck. Could it be only .epl feature? |
| 07:27 |
|
marcus |
damnit |
| 07:28 |
|
* marcus |
forgot it !#$%!#$! access card |
| 07:28 |
|
crab |
minimalist: i don't know the difference between ep and epl |
| 07:28 |
|
crab |
is ep the new one and epl the old, or the other way around? |
| 07:28 |
|
minimalist |
epl is for lite |
| 07:28 |
|
marcus |
epl is the old one |
| 07:28 |
|
crab |
oh no |
| 07:29 |
|
crab |
there's no lite/not-lite distinction, that i know |
| 07:29 |
|
crab |
i mean. there's nothing that says you have to use epl in lite |
| 07:29 |
|
marcus |
nope |
| 07:30 |
|
marcus |
.epl used to be embedded perl language or something |
| 07:30 |
|
marcus |
sri just rebranded it to be able to make .ep without breaking backwards compat |
| 07:34 |
|
minimalist |
ok, it seems that include is only available for files in the template root or the current controller dir. |
| 07:35 |
|
crab |
does the EPO have its own template format? :-) |
| 07:35 |
|
minimalist |
for example if your template is /templates/foo/bar.html.ep, you can only include files from /templates or /templates/foo |
| 07:36 |
|
crab |
doesn't sound right |
| 07:36 |
|
minimalist |
either that or I'm nuts |
| 07:41 |
|
minimalist |
disregard everything i said. I'm too tired now, I'll try again tomorrow. |
| 07:43 |
|
|
koban1 left #mojo |
| 07:55 |
|
|
AmeliePoulain joined #mojo |
| 07:57 |
|
|
esskar joined #mojo |
| 08:01 |
|
|
breaker313 joined #mojo |
| 08:34 |
|
|
minimalist left #mojo |
| 08:35 |
|
|
lonerr_ left #mojo |
| 09:26 |
|
|
fhelmberger_ left #mojo |
| 09:38 |
|
|
koban1 joined #mojo |
| 10:16 |
|
oleber |
Hy all |
| 10:17 |
|
oleber |
in Test::Mojo, hoe do I simulate a post request with a body having a content type 'application/json' |
| 10:17 |
|
oleber |
??? |
| 10:30 |
|
crab |
post_ok('/url', {"Content-Type" => "..."}, "...content...") |
| 10:32 |
|
oleber |
crab: thanks |
| 10:33 |
|
oleber |
IS there a good documentation about it |
| 10:33 |
|
oleber |
I really looked arround and I find nothing telling this |
| 10:33 |
|
crab |
um, the Test::Mojo manpage? |
| 10:34 |
|
|
snearch joined #mojo |
| 10:34 |
|
oleber |
not so good |
| 10:34 |
|
oleber |
http://search.cpan.org/~kraih/[…]t/Mojo.pm#post_ok |
| 10:36 |
|
crab |
i don't think there is anything else. |
| 10:38 |
|
oleber |
My English is terrible, but I may help if someone tell me how |
| 10:39 |
|
crab |
how what? |
| 10:41 |
|
crab |
i would also like to see, for every method, a description saying "this method takes a foo, a bar, and a baz as arguments and does p, q, and r, and returns x". but this is a lot of work to do and to maintain, and it's not much in vogue in perl documentation. |
| 10:42 |
|
oleber |
I may help on the documentation |
| 10:43 |
|
oleber |
maybe some examples, could do all the diference |
| 10:43 |
|
oleber |
my question is basic |
| 10:43 |
|
oleber |
or was basic |
| 10:43 |
|
oleber |
I was needing to simulate a JSON request |
| 10:44 |
|
|
memememomo_ is now known as memememomo |
| 10:45 |
|
|
snearch left #mojo |
| 10:50 |
|
|
memememomo is now known as memememomo_ |
| 10:56 |
|
crab |
oleber: you can submit patches by email to the list or as github pull requests |
| 10:57 |
|
crab |
(if that's what you meant with "someone tell me how") |
| 11:04 |
|
koban1 |
oleber: script/myapp --method GET --header 'Content-Type: application/json' --content '{"id":1,"title":"abc"}' |
| 11:04 |
|
koban1 |
would it be suitable for you? |
| 11:04 |
|
oleber |
hy koban1 |
| 11:05 |
|
oleber |
the idea of crab is correct |
| 11:05 |
|
|
spleenjack joined #mojo |
| 11:05 |
|
oleber |
I need (I love it) to do Unit testing, |
| 11:05 |
|
koban1 |
argh, sorry, you need it in Test::Mojo |
| 11:06 |
|
koban1 |
then https://github.com/kraih/mojo/[…]Test/Mojo.pm#L449 |
| 11:07 |
|
crab |
GET can't have content |
| 11:07 |
|
koban1 |
& crab's advice :) |
| 11:07 |
|
crab |
or, well, GET shouldn't have content :-) |
| 11:08 |
|
koban1 |
ouch, of course 'script/myapp get --method POST ... ' is better :) |
| 11:19 |
|
|
Christian joined #mojo |
| 11:19 |
|
Christian |
moin |
| 11:24 |
|
* crab |
gnaws on Christian's head in a friendly manner |
| 11:26 |
|
Christian |
:D |
| 11:27 |
|
crab |
so, Christian, what do you use mojo for? |
| 11:28 |
|
Christian |
for little project in the firm i work |
| 11:29 |
|
Christian |
we test it and when it is good for uns we will use it, my boss wnat to have one framework, because it is easy i we have one framework an not every programmer his own :) |
| 11:30 |
|
Christian |
and at this point i want to use mojo!!! |
| 11:42 |
|
perlrocks |
Twitter: "http://koorchik.blogspot.com/2[…]licious-lite.html" --afiskon http://twitter.com/afiskon/sta[…]42187942252396544 |
| 11:49 |
|
crab |
it feels strange to see perl code with russian comments. |
| 11:51 |
|
Christian |
crab, why are you asking? |
| 11:51 |
|
DaTa |
at least he doesn't use utf8; sub запуска { } :) |
| 12:11 |
|
|
Alias joined #mojo |
| 12:12 |
|
espent |
can default tag url_for render complete uri with full hostname by only saying <%= uri_for '/' %> ? |
| 12:12 |
|
crab |
Christian: just random curiosity |
| 12:13 |
|
crab |
Christian: usually you only say "good morning" and "have a nice evening" :-) |
| 12:13 |
|
espent |
actually its url_for, catalyst is uri_for |
| 12:13 |
|
crab |
espent: i don't think so. |
| 12:14 |
|
espent |
need it for jquery getJSON... dont think it will do anything without |
| 12:15 |
|
espent |
i'll put it in my config file for now |
| 12:15 |
|
koban1 |
url_for('/')->to_abs maybe? |
| 12:16 |
|
espent |
koban1: yup, that works! thanx! |
| 12:17 |
|
koban1 |
:) |
| 12:18 |
|
Christian |
crab, I have really little time. I hope it change in the next time, then I can more write than "good morning" and "have a nice evening" ;) |
| 12:40 |
|
|
Alias left #mojo |
| 13:13 |
|
|
dotan joined #mojo |
| 13:59 |
|
elb0w |
So I am trying to get this controller to be recognized but im failing hard. http://pastie.org/1616767 I want to get facebook.pm to work. I tried doing namespace 'Elbow::Social::Facebook' and then point it to the action, what am I missing? |
| 14:01 |
|
moritz |
try to call it Facebook.pm |
| 14:01 |
|
crab |
shouldn;t your namespace be Elbow::Social and your controller#action be facebook#whatever? |
| 14:01 |
|
elb0w |
Well I tried both |
| 14:01 |
|
elb0w |
Im not sure what I am doing wrong |
| 14:04 |
|
crab |
what is it dispatching? |
| 14:04 |
|
elb0w |
$r->route('/gt_test')->to('facebook#welcome', namespace => 'Elbow::Social') |
| 14:04 |
|
elb0w |
is there something wrong with that? |
| 14:05 |
|
|
kaare_ left #mojo |
| 14:11 |
|
|
ispy_ joined #mojo |
| 14:13 |
|
sri |
good morning fellow monsters |
| 14:13 |
|
elb0w |
ah figured it out |
| 14:13 |
|
elb0w |
nvm ty |
| 14:13 |
|
elb0w |
morning |
| 14:13 |
|
moritz |
elb0w: what was the problem? |
| 14:13 |
|
elb0w |
im an idiot |
| 14:13 |
|
elb0w |
txt != text |
| 14:14 |
|
elb0w |
hate making dumb errors like that haah |
| 14:25 |
|
sri |
http://blog.kraih.com/a-logo-for-perl-5 |
| 14:25 |
|
elb0w |
dinosaur? |
| 14:25 |
|
purl |
dinosaur is http://u.nix.is/wtdinosaur.swf or DINOSAURS AND SODOMY!!! |
| 14:26 |
|
elb0w |
i like it |
| 14:26 |
|
elb0w |
sri++ |
| 14:26 |
|
sri |
:) |
| 14:26 |
|
elb0w |
purl, is that SFW? |
| 14:28 |
|
elb0w |
I keep leaning towards python but lately ive been thinking of letting that go and fully embracing perl |
| 14:28 |
|
elb0w |
hard decision to make |
| 14:28 |
|
elb0w |
:o |
| 14:29 |
|
moritz |
there's no need for a final decision |
| 14:29 |
|
moritz |
I speak German and English every day too |
| 14:29 |
|
elb0w |
Well its more of a career choice |
| 14:29 |
|
elb0w |
Ive debugged some really hairy perl |
| 14:29 |
|
elb0w |
thats made me want to just rewrite entire applications |
| 14:30 |
|
elb0w |
im sure you all have haha |
| 14:32 |
|
elb0w |
Its funny, ive read books on python, c#, C++ but never perl. I use perl 90% more than anything else lol |
| 14:39 |
|
|
kaare joined #mojo |
| 14:52 |
|
elb0w |
it should have a monocle and top hat to show its distinguished as well haha :o |
| 14:59 |
|
sri |
heh |
| 15:02 |
|
elb0w |
so when I render as json only chrome shows me it |
| 15:03 |
|
elb0w |
everything else tries to download it |
| 15:03 |
|
omega_ |
there is an addon for firefox |
| 15:03 |
|
elb0w |
That wouldnt break JS on a website would it? |
| 15:03 |
|
omega_ |
JSONView |
| 15:03 |
|
elb0w |
if its making an ajax call to it |
| 15:03 |
|
omega_ |
nope |
| 15:03 |
|
elb0w |
ok then I dont care :P, usally do text/html |
| 15:03 |
|
elb0w |
and print a json string on it |
| 15:04 |
|
elb0w |
see the new firebox |
| 15:04 |
|
elb0w |
I really like it |
| 15:05 |
|
omega_ |
this gives you something like the XML view for JSON as well |
| 15:05 |
|
omega_ |
instead of download |
| 15:06 |
|
elb0w |
ok will check it out |
| 15:06 |
|
elb0w |
ty |
| 15:09 |
|
|
ispy_ left #mojo |
| 15:09 |
|
|
ispy_ joined #mojo |
| 15:18 |
|
sri |
yay, spreadshirts has also approved my vector images |
| 15:22 |
|
|
dekimsey joined #mojo |
| 15:22 |
|
elb0w |
oh yeah mozilla has a dino already :x |
| 15:23 |
|
sri |
they have godzilla |
| 15:23 |
|
sri |
which is a t-rex on steroids |
| 15:24 |
|
elb0w |
:o |
| 15:24 |
|
sri |
perl hunts in packs |
| 15:24 |
|
elb0w |
always can do a ninja if this doesnt take |
| 15:24 |
|
elb0w |
i like it though, ill probably buy a shirt haha |
| 15:24 |
|
elb0w |
maybe a hat |
| 15:25 |
|
sri |
well, judging by t-shirt sales people like it :) |
| 15:25 |
|
elb0w |
oh yeah? |
| 15:25 |
|
purl |
totally! |
| 15:25 |
|
elb0w |
how many sales |
| 15:25 |
|
* sri |
hugs purl |
| 15:25 |
|
* purl |
smiles |
| 15:25 |
|
elb0w |
let me know when you put it on a u.s. store |
| 15:26 |
|
sri |
5 already |
| 15:26 |
|
elb0w |
be cool if it picks up |
| 15:26 |
|
elb0w |
maybe well get some new hipsters using perl |
| 15:39 |
|
|
AmeliePoulain left #mojo |
| 16:05 |
|
crab |
wow, "perl hunts in packs" |
| 16:05 |
|
crab |
that is a scary image |
| 16:05 |
|
|
koban1 left #mojo |
| 16:05 |
|
elb0w |
as long as they all comment |
| 16:06 |
|
elb0w |
its fine with me |
| 16:06 |
|
* crab |
imagines meeting some CPAN modules in a dark alley |
| 16:06 |
|
|
ispy_ left #mojo |
| 16:07 |
|
Christian |
nice evening to you all :) |
| 16:07 |
|
|
Christian left #mojo |
| 16:13 |
|
sri |
hehe |
| 16:14 |
|
sri |
and everybody gets the "Predator" t-shirt :) |
| 16:23 |
|
dotan |
sri: What's this "just-so" story " After a careful review of Jurassic Park i've come to the conclusion that Perl has to be a Velociraptor, and that's what i'm basing the logo on!" ? |
| 16:23 |
|
sri |
? |
| 16:24 |
|
dotan |
mdk used a velociraptor logo twice on his blog, mst gave a "state of the velociraptor" talk - the association of perl5 and the raptor didn't come from you, so why not give people credit? This is the Internet. |
| 16:25 |
|
sri |
read the next sentence |
| 16:25 |
|
sri |
and the disclaimer at the bottom |
| 16:26 |
|
sri |
i'm not trying to steal an idea, it's just a made up story to sell the idea |
| 16:28 |
|
dotan |
sri: wasn't there before I hit refresh. Like your code, I see one always needs to update before reacting ... |
| 16:29 |
|
sri |
updated it as soon as i was made aware of how it could be misunderstood |
| 16:29 |
|
sri |
my english skills are limited |
| 16:33 |
|
chansen |
sri: no vector version? |
| 16:33 |
|
sri |
not sure what to do about the font yet |
| 16:33 |
|
sri |
it's commercial |
| 16:38 |
|
chansen |
May I suggest that you use fewer teeth and sharper ones in the low res versions? Currently the looks like antialiased toothpicks IMO |
| 16:39 |
|
sri |
the needle look is intended, but yes |
| 16:41 |
|
crab |
they didn't have good anti-aliasing algorithms back in the time of the dinosaurs |
| 16:45 |
|
chansen |
heh |
| 16:46 |
|
sri |
i've actually changed the teeth a few times to make them viable for spreadshirts |
| 16:47 |
|
sri |
bit afraid now to touch them ever again :D |
| 16:48 |
|
sri |
it looked more like a stuffed animal with less teeth btw ;p |
| 17:07 |
|
|
breaker313 left #mojo |
| 17:12 |
|
|
minimalist joined #mojo |
| 17:29 |
|
|
dotan left #mojo |
| 17:30 |
|
|
abra joined #mojo |
| 17:45 |
|
* sri |
wonders why the week starts so slow |
| 17:46 |
|
sri |
did the whole world watch the oscars or something? |
| 17:47 |
|
chansen |
perhaps the world has abandon Mojo ;P |
| 17:48 |
|
|
tholen joined #mojo |
| 18:02 |
|
sri |
zombie apocalypse seems more likely |
| 18:04 |
|
chansen |
heh |
| 18:05 |
|
|
vel joined #mojo |
| 18:09 |
|
|
xris joined #mojo |
| 18:13 |
|
perlrocks |
Twitter: "http://www.pubbs.net/201102/ja[…]-mojolicious.html qooxdoo-devel - new" --bullpubbs http://twitter.com/bullpubbs/s[…]42286333925933056 |
| 18:32 |
|
|
tholen left #mojo |
| 18:41 |
|
|
vel left #mojo |
| 18:41 |
|
|
giwi left #mojo |
| 18:42 |
|
|
giwi joined #mojo |
| 18:42 |
|
|
tholen joined #mojo |
| 18:44 |
|
|
stephen joined #mojo |
| 18:50 |
|
|
tholen left #mojo |
| 18:53 |
|
elb0w |
So sessions are based on cookies? |
| 18:53 |
|
elb0w |
if I wanted to create a temporary session I would generate something to $self->session(user => ?)? |
| 18:53 |
|
elb0w |
Like a random md5 for the session? |
| 18:57 |
|
|
giwi left #mojo |
| 18:57 |
|
|
giwi joined #mojo |
| 19:03 |
|
|
tholen joined #mojo |
| 19:05 |
|
|
abra left #mojo |
| 19:09 |
|
|
s0va joined #mojo |
| 19:11 |
|
perlrocks |
Twitter: "Released MojoX::Run 0.15; improved async sub execution: http://bit.ly/eXJvc4 #mojolicious #perl" --gracnar http://twitter.com/gracnar/sta[…]42300785278726144 |
| 19:15 |
|
minimalist |
I'm also a little confused by the sessions. If someone can give a good example of creating and deleting a session, it would be fantastic. $self->session( user => { a => 1, b => 2 } ) did not send the cookie for me. |
| 19:18 |
|
elb0w |
I didnt see to pass a hash as user? |
| 19:20 |
|
minimalist |
well, you should be able to pass both a scalar and a hashref |
| 19:22 |
|
minimalist |
elb0w, here is the deal: |
| 19:23 |
|
minimalist |
in $self->startup you have to set your secret, i.e. $self->secret('My super complex password'); |
| 19:23 |
|
minimalist |
That's in your base class. |
| 19:23 |
|
elb0w |
ok |
| 19:24 |
|
minimalist |
Then from your controllers you can set and get sessions like this: |
| 19:24 |
|
minimalist |
$self->session( user => 'elb0w' ); |
| 19:24 |
|
minimalist |
or |
| 19:24 |
|
minimalist |
$self->session( user => \%user_info ); |
| 19:24 |
|
minimalist |
4096 bytes is the limit |
| 19:25 |
|
elb0w |
I guess im just blurry on the way sessions work |
| 19:25 |
|
elb0w |
like purpose |
| 19:25 |
|
minimalist |
to get the session, use: my $session = $self->session( 'user' ); |
| 19:25 |
|
elb0w |
It would have to be dynamic no? |
| 19:26 |
|
minimalist |
what do you mean? |
| 19:26 |
|
elb0w |
I thought, session would be unique and ID stored in the cookie. Then when you needed data you would do a $session reference and it would look at the cookie to pull the data |
| 19:26 |
|
elb0w |
So everyone that visits the site can have unique data |
| 19:26 |
|
minimalist |
ah, that's not the case here |
| 19:26 |
|
elb0w |
and you could access the data inside controllers |
| 19:26 |
|
minimalist |
all of your data goes in the cookie |
| 19:26 |
|
elb0w |
ok |
| 19:26 |
|
minimalist |
there is nothing on the server, if that's what you mean |
| 19:27 |
|
elb0w |
So the maximum global data I could store would be 4096 |
| 19:27 |
|
elb0w |
per visitor |
| 19:27 |
|
minimalist |
yes, but it should be enough for you to store a user id and then pull the rest of the information from your database. |
| 19:27 |
|
elb0w |
Yes was thinking that |
| 19:28 |
|
perlrocks |
Twitter: "Mojolicious-Lite app run on Apache-CGI - scrawled in http://bit.ly/hENkIX Tatsumi" (ja) --wPerlnews http://twitter.com/wPerlnews/s[…]42305053742211072 |
| 19:28 |
|
|
spleenjack left #mojo |
| 19:28 |
|
elb0w |
Ok, but I wanted to do this without logins |
| 19:29 |
|
elb0w |
So I would need a unique id |
| 19:29 |
|
elb0w |
to go into each cookie, and then reference the cookie for db lookup |
| 19:30 |
|
minimalist |
use the client's IP address as a unique id then |
| 19:30 |
|
elb0w |
yeah |
| 19:31 |
|
elb0w |
ill probably make a hash with a secret word + their ip |
| 19:31 |
|
elb0w |
to make it a little harder |
| 19:31 |
|
minimalist |
you don't need to because the session is encrypted already |
| 19:31 |
|
elb0w |
oh yeah, I read that earlier. Ok nice ty |
| 19:35 |
|
elb0w |
actually that wouldnt work |
| 19:36 |
|
elb0w |
if people are all coming from a company that has an internal network |
| 19:36 |
|
elb0w |
the requests could all come from a single ip for multiple users |
| 19:37 |
|
|
toebu joined #mojo |
| 19:38 |
|
toebu |
Using Mojolicious to provide JsonRPC service for qooxdoo javascript applications http://qooxdoo.org/contrib/project/rpcperl-mojo |
| 19:42 |
|
elb0w |
Can you disable the encryption on the cookie? |
| 19:47 |
|
elb0w |
Is session the only way to carry data in between Models->controllers? |
| 19:47 |
|
elb0w |
other then the passed arguments |
| 19:50 |
|
perlrocks |
Twitter: "The #perl 5 raptor t-shirts are now also available for americans, enjoy. :) http://t.co/IEWGrP8 #mojolicious" --kraih http://twitter.com/kraih/status/42310617180274689 |
| 19:51 |
|
elb0w |
lol like the buttons |
| 19:52 |
|
sri |
they don't have mugs in the us, can you believe it? :O |
| 19:53 |
|
elb0w |
boo |
| 19:55 |
|
sri |
the huge selection of oversize shirts made me giggle a bit though |
| 19:57 |
|
elb0w |
sri, is there a hash that will go globally through controllers? |
| 19:57 |
|
elb0w |
So I can share values between them? |
| 19:57 |
|
sri |
the stash |
| 19:57 |
|
purl |
the stash is reachable in all, but only per one request |
| 19:57 |
|
elb0w |
But does that just mean one route? |
| 19:58 |
|
elb0w |
I want '/' -> main#index and then from there set some values and call con1#blah, con2#blah and use values set by main#index |
| 19:58 |
|
elb0w |
would stash do that? |
| 19:59 |
|
sri |
stash has request scope |
| 20:01 |
|
elb0w |
so what do I gain with Session? |
| 20:02 |
|
elb0w |
I want to get a facebook auth token ultimately |
| 20:02 |
|
elb0w |
and be able to pass it around |
| 20:02 |
|
elb0w |
that is why I am asking this |
| 20:05 |
|
|
fhelmber_ left #mojo |
| 20:09 |
|
minimalist |
elb0w, I don't see why you couldn't place the FB token in your session cookie. |
| 20:11 |
|
elb0w |
yeah thats one part. But I am thinking what else will I want to store |
| 20:11 |
|
elb0w |
Just trying to think ahead so I dont revisit same issue |
| 20:11 |
|
minimalist |
are you using any kind of database? |
| 20:11 |
|
elb0w |
Yeah, but then im going to hit the db everytime I hit a controller? |
| 20:12 |
|
minimalist |
I ran a site that got over 3 mil unique hits per day and it had no probem with that. As long as you don't connect to the db at every request. |
| 20:13 |
|
elb0w |
ok well then how do I pass the handle for the db around? lol |
| 20:14 |
|
minimalist |
you have 2 options: 1) use database abstraction such as DBIx::Class; 2) use Apache::DBI. Both will cache your database handle and reuse it. |
| 20:15 |
|
elb0w |
DBI->connect_cached? |
| 20:15 |
|
minimalist |
that would do too |
| 20:15 |
|
elb0w |
yeah, I sort of want to stay away from apache |
| 20:16 |
|
elb0w |
I will explore DBIx |
| 20:16 |
|
elb0w |
ty |
| 20:16 |
|
minimalist |
I had this done in lighttpd with fastcgi. Worked well. |
| 20:16 |
|
elb0w |
I wish I had been at my current employer when he designed this system |
| 20:17 |
|
elb0w |
he is passing these values around |
| 20:17 |
|
elb0w |
I will ask him how he does it |
| 20:51 |
|
perlrocks |
Twitter: "@kraih I really enjoy the secure by default HTML escaping in Mojolicious. By the way, really nice web framework. #perl" --adulau http://twitter.com/adulau/stat[…]42326102336733184 |
| 21:00 |
|
|
tholen left #mojo |
| 21:06 |
|
perlrocks |
Twitter: "What can be worse than #Mojolicious marketing? #perl" --vtivti http://twitter.com/vtivti/stat[…]42329695731200001 |
| 21:28 |
|
|
flamey joined #mojo |
| 21:30 |
|
|
janus joined #mojo |
| 21:47 |
|
|
marty left #mojo |
| 21:56 |
|
perlrocks |
Twitter: "Viva la revolucion! #perl #mojolicious" --kraih http://twitter.com/kraih/status/42342428312735744 |
| 22:04 |
|
perlrocks |
Twitter: "What's revolutionary in #Mojolicious? Copy pasting? #perl" --vtivti http://twitter.com/vtivti/stat[…]42344476966006784 |
| 22:05 |
|
|
tholen joined #mojo |
| 22:05 |
|
sri |
lol, someone seems butthurt |
| 22:06 |
|
moritz |
sri: did you see http://www.modernperlbooks.com[…]velociraptor.html |
| 22:06 |
|
sri |
lol! |
| 22:20 |
|
chansen |
sri: congrats on publicasity =) |
| 22:21 |
|
|
spleenjack joined #mojo |
| 22:23 |
|
chansen |
sri: with this publicity why don't you address some serious p5 flaws? |
| 22:24 |
|
sri |
chansen: what do you suggest? |
| 22:24 |
|
chansen |
sri: I don't dare so sugest ;P |
| 22:25 |
|
chansen |
ok, why not utf8 model of p5? |
| 22:26 |
|
sri |
not my area of expertise |
| 22:30 |
|
chansen |
yeah, I know |
| 22:37 |
|
|
flamey left #mojo |
| 22:37 |
|
|
kaare left #mojo |
| 22:37 |
|
* mateu |
is unclear of chansen's point |
| 22:38 |
|
chansen |
mateu: ask and your point will be clear? |
| 22:38 |
|
mateu |
what were you trying to get at ^^ ? |
| 22:41 |
|
chansen |
mateu: at what? |
| 22:41 |
|
mateu |
that's the question isnt' it ;) |
| 22:42 |
|
perlrocks |
Twitter: "Mojolicious:: Lite Getting Started with http://slidesha.re/h0jj0g" (ja) --wPerlnews http://twitter.com/wPerlnews/s[…]42353871909171200 |
| 22:42 |
|
perlrocks |
Twitter: "Ah, #Dancer wars are over. #Mojolicious now has the ability to create its own trolls #perl" --burakgursoy http://twitter.com/burakgursoy[…]42353950254563328 |
| 22:45 |
|
chansen |
mateu: perhaps you should gain knowledge about above question before commenting it? |
| 22:47 |
|
mateu |
chansen: I find it strange that you ask someone to address something that you state is not their expertise. maybe it was a joke and I missed it. |
| 22:50 |
|
chansen |
mateu: What didn't I state publicly? |
| 22:51 |
|
chansen |
didn't I say "why not utf8 model of p5?" |
| 23:03 |
|
chansen |
mateu: as i thought, stick to your pointless 0 benchmarks |
| 23:05 |
|
|
magnus joined #mojo |
| 23:05 |
|
|
tempire joined #mojo |
| 23:05 |
|
mateu |
whoa somebody is having a little temper tantrum |
| 23:08 |
|
mateu |
chansen: my point was you asked sri to address flaws of the utf8 model of perl5, then when says it's not his area of expertise you say "I know" |
| 23:08 |
|
mateu |
chansen: so either you were joking or being an ass. |
| 23:09 |
|
sri |
ok, stop it please |
| 23:09 |
|
sri |
both |
| 23:11 |
|
chansen |
mateu: WTF?, everybody I know on this network (irc.perl.*) knows that I won't make a ass of me at the expense of you |
| 23:12 |
|
sri |
final warning |
| 23:12 |
|
chansen |
to who? |
| 23:12 |
|
purl |
to is Tonga Islands |
| 23:12 |
|
sri |
both of you |
| 23:12 |
|
chansen |
WTF? |
| 23:12 |
|
sri |
being rude is not an option here |
| 23:13 |
|
chansen |
Are you still on snake poison? |
| 23:14 |
|
|
chansen was kicked by sri: bye |
| 23:35 |
|
|
tholen left #mojo |
| 23:45 |
|
|
tempire_ joined #mojo |
| 23:45 |
|
tempire_ |
viciousness all around today. |
| 23:46 |
|
tempire_ |
must be the raptor |
| 23:46 |
|
* sri |
shoots the sheriff |
| 23:46 |
|
sri |
you were needed like 10 minutes ago! |
| 23:46 |
|
tempire_ |
I know! I just saw it. I was riding back into town after taking care of a corporate america plot. |
| 23:48 |
|
tempire_ |
I wonder why vti is taking shots. |
| 23:48 |
|
* tempire_ |
declares loves for vti regardless. |
| 23:50 |
|
sri |
3 letter nicks... who can tell... |
| 23:50 |
|
|
tempire_ is now known as tmp |
| 23:50 |
|
tmp |
!! |
| 23:51 |
|
|
tmp is now known as tpr |
| 23:51 |
|
* sri |
moves backwards...slowly |
| 23:51 |
|
* sri |
falls into the alligator pit |
| 23:51 |
|
* tpr |
spreads glitter on the pit, so sri can fly |
| 23:51 |
|
|
mateu is now known as venereal_disease |
| 23:51 |
|
tpr |
oh wait, that was heroine |
| 23:51 |
|
tpr |
eh, same effect. |
| 23:52 |
|
* sri |
vomits rainbows |
| 23:53 |
|
venereal_disease |
Hey you guys mind if I join your channel? </bad_humour> |
| 23:53 |
|
|
venereal_disease is now known as mateu |
| 23:54 |
|
sri |
"Fat Tony is a cancer on this fair city! He is the cancer and I am the… uh… what cures cancer?" |