Time |
Nick |
Message |
00:32 |
|
tempire_ left #mojo |
00:57 |
|
GitHub23 joined #mojo |
00:57 |
GitHub23 |
mojo: master Sebastian Riedel * 23b58ae (9 files in 7 dirs): added experimental built in exception template and fixed a few small bugs - http://bit.ly/fYX9hO |
00:57 |
|
GitHub23 left #mojo |
00:57 |
sri |
very productive day :) |
00:59 |
perlrocks |
Twitter: "Exception templates are now built right into every #mojolicious application. :) http://bit.ly/fN7VCx #perl" --kraih http://twitter.com/kraih/status/9773659593900033 |
01:00 |
sri |
it's not redesigned, but useful |
01:01 |
perlrocks |
Twitter: "The exception template will of course get a facelift too before 1.0. ;) #mojolicious #perl" --kraih http://twitter.com/kraih/status/9774111463051264 |
01:06 |
xantus[] |
cool |
01:08 |
|
y0j left #mojo |
01:11 |
ryanc |
yes, thanks for that. |
01:17 |
|
xantus[] left #mojo |
01:27 |
perlrocks |
Twitter: "RT @vtivti: Hypnotoad: A new preforking Perl server for #Mojolicious http://tinyurl.com/33umfgq #Perl" --kraih http://twitter.com/kraih/status/9780502949011456 |
01:28 |
perlrocks |
Twitter: "RT @ vtivti: Hypnotoad: A new server for preforking Perl # Perl # Mojolicious http://tinyurl.com/33umfgq" (de) --fwever http://twitter.com/fwever/status/9780904893349888 |
01:29 |
|
y0j joined #mojo |
01:48 |
|
MojoGuest840 joined #mojo |
01:48 |
|
MojoGuest840 left #mojo |
01:48 |
|
MojoGuest983 joined #mojo |
01:48 |
MojoGuest983 |
g |
01:48 |
MojoGuest983 |
hello |
01:49 |
|
MojoGuest983 left #mojo |
02:12 |
|
arpadszasz left #mojo |
02:37 |
|
phillipadsmith left #mojo |
02:37 |
|
phillipadsmith joined #mojo |
02:41 |
|
GitHub74 joined #mojo |
02:41 |
GitHub74 |
mojo: master Sebastian Riedel * 402b420 (3 files in 3 dirs): improved Mojolicious::Lite ability to recover from syntax errors |
02:41 |
GitHub74 |
mojo: master Sebastian Riedel * 7460fa2 (3 files in 2 dirs): improved reloading even more |
02:41 |
GitHub74 |
mojo: master commits 23b58ae...7460fa2 - http://bit.ly/fboqJT |
02:41 |
|
GitHub74 left #mojo |
02:43 |
sri |
Zzz |
02:45 |
DaTa |
29 files changed, 1282 insertions(+), 140 deletions(-) |
02:45 |
DaTa |
awesome :) |
03:02 |
daviddelikat |
I wrote a simple wiki using mojo lite |
03:02 |
daviddelikat |
and I was wondering if I could get some comments on it |
03:03 |
daviddelikat |
specifically regarding the best use of mojo |
03:05 |
sri |
damn, can't sleep :S |
03:05 |
sri |
guess not_found will get the same treatment as exception |
03:06 |
daviddelikat |
heres the wiki code: http://pastebin.com/ui8AHssT |
03:08 |
|
GitHub153 joined #mojo |
03:08 |
GitHub153 |
mojo: master Sebastian Riedel * 4c54788 (4 files in 3 dirs): added experimental built in not_found template - http://bit.ly/geS08q |
03:08 |
|
GitHub153 left #mojo |
03:09 |
sri |
daviddelikat: not bad, but you need to read up on helpers ;) |
03:09 |
daviddelikat |
ok |
03:10 |
sri |
then you can get rid of the app:: stuff |
03:10 |
daviddelikat |
I figured there must be a better way. |
03:10 |
sri |
make sure to put it up on github and to add it to our list of examples in the wiki |
03:10 |
daviddelikat |
I was bored at my inlaws so I read what I could get ( no internet ) and just started writing |
03:11 |
daviddelikat |
I'll do that |
03:11 |
daviddelikat |
thanks |
03:12 |
sri |
you might also want to dig into Mojolicious::Plugin::TagHelpers |
03:12 |
sri |
lots of examples |
03:14 |
|
achromic left #mojo |
03:19 |
|
y0j left #mojo |
03:19 |
perlrocks |
Twitter: "If you were having problems with the #mojolicious reloader, make sure to try the latest github master. ;) http://bit.ly/hwFjGX #perl" --kraih http://twitter.com/kraih/status/9808841139032066 |
03:25 |
charsbr |
sri: what do you think? http://pastebin.com/ZHVXGpwe |
03:26 |
sri |
charsbr: no performance penalty, should be fine with a few tests |
03:26 |
|
MojoGuest878 joined #mojo |
03:26 |
MojoGuest878 |
From: http://friendfeed.com/laclefyoshi/2221d48a/websocket-extjsirc-client-permission-denied?embed=1 (1 hits) |
03:26 |
charsbr |
sri: shall I write some or will you? |
03:27 |
charsbr |
test |
03:27 |
sri |
charsbr: would be nice if you did it |
03:27 |
charsbr |
k. will send you pull req later |
03:27 |
|
MojoGuest878 is now known as intact |
03:27 |
sri |
great |
03:28 |
sri |
and i'll try to finally sleep i guess |
03:29 |
|
intact left #mojo |
03:29 |
charsbr |
gute nacht :) |
03:30 |
sri |
:) |
03:32 |
|
achromic joined #mojo |
04:03 |
|
tholen42 joined #mojo |
04:05 |
|
tl left #mojo |
04:39 |
|
daviddelikat1 joined #mojo |
04:44 |
|
daviddelikat left #mojo |
05:41 |
crab |
# Failed test 'right url' |
05:41 |
crab |
# at t/mojo/client_online.t line 254. |
05:41 |
crab |
# got: 'http://www.google.co.in/' |
05:41 |
crab |
# expected: 'http://www.google.de/' |
05:41 |
* crab |
giggles like a little girl |
06:27 |
|
kvorg left #mojo |
06:28 |
tempire |
!!! |
06:30 |
crab |
hi tempire. |
06:30 |
tempire |
hello |
06:32 |
|
ltriant left #mojo |
06:36 |
polvo |
does Mojolicious support plugins in MojoX namespace? |
06:38 |
polvo |
the changelog says 'Deprecated the MojoX namespace and merged affected modules into the Mojolicious namespace', but what does it mean for 3rd party modules? |
06:39 |
tempire |
use Plugin:: unless you have a good reason not to. |
06:52 |
perlrocks |
Twitter: "just upgraded #perl without taking down his #mojolicious web app. To the Mojolicious!" --tempiretech http://twitter.com/tempiretech/status/9862324689043456 |
06:52 |
polvo |
tempire, i'm not talking about my own plugins |
06:53 |
|
y0j joined #mojo |
06:55 |
crab |
what is this obsession with upgrading perl? :-) |
07:00 |
|
pid joined #mojo |
07:14 |
marcus |
crab: upgrading perl without app downtime is pretty darn sexy tho |
07:14 |
marcus |
:) |
07:15 |
marcus |
sri is waaay too productive. Makes the rest of us look bad. |
07:21 |
|
koban joined #mojo |
07:26 |
* marcus |
is rendering a spoof of the Starwars Ep2 introduction for his presentation. This will be epic! |
07:27 |
marcus |
in full 720 p :D |
07:29 |
marcus |
hope I won't run out of disk |
07:32 |
marcus |
360 frames rendered so far. |
07:36 |
marcus |
1040 frames |
07:36 |
marcus |
each frame is a 2.8mb BMP :D |
07:39 |
polvo |
marcus, is there some doc about upgrading mojolicious w/o a downtime? |
07:39 |
marcus |
polvo: Look at the new hypnotoad code in trunk? |
08:01 |
|
arthas joined #mojo |
08:10 |
|
arthas left #mojo |
08:11 |
|
arthas joined #mojo |
08:13 |
|
kvorg joined #mojo |
08:30 |
|
yko joined #mojo |
08:34 |
|
ysyrota joined #mojo |
08:36 |
yko |
polvo: about plugins' namespaces: it doeas afaik |
08:40 |
yko |
push @{$self->plugins->namespaces}, 'MojoX::Plugin', 'MyApp::Plugin', 'WhateverYouWant'; before loading any plugins and then load plugins in usual way |
08:40 |
yko |
Mojolicious will search for plugins in that namespaces |
08:41 |
|
kaare joined #mojo |
08:42 |
omega |
has anyone ever generated PDFs from Mojo? :p |
08:44 |
yko |
i don't think it will be different than generating PDF from any other perl application |
08:44 |
omega |
has anyone ever generated PDFs from any other perl applicatino? :p |
08:44 |
* moritz |
|
08:45 |
moritz |
emitting latex code, and then running pdflatex is my route of choice |
08:45 |
yko |
yes, i tested something years ago. As far as i remember i used PDF::API3 or 2, you should look on cpan |
08:45 |
yko |
ye, that's way too, if you know latex :) |
08:45 |
omega |
I used to know it at least :) |
08:46 |
moritz |
iirc most of the PDF modules on CPAN are fairly low-level |
08:46 |
moritz |
and don't do text wrapping (for example around page borders) for you |
08:47 |
yko |
hehe, yeMojolicious::Plugin::TexRenderer :D |
08:47 |
|
kaare left #mojo |
08:49 |
|
kaare joined #mojo |
08:49 |
yko |
years ago i did manually text wrapping in Perl for specific font to fit in specific width... that was really painfull :( |
08:50 |
omega |
yeah, sounds bad |
08:50 |
omega |
I think the tex-route is my best bet |
09:01 |
|
fhelmber_ joined #mojo |
09:07 |
omega |
phew, there was a small package of MacTeX as well |
09:07 |
omega |
was not looking forward to downloading 1.2gb with between 20 and 70kb/s |
09:17 |
yko |
hehe |
09:19 |
moritz |
miktex has this nice functionality to lazily download packages when they are needed for compilation |
09:27 |
rhaen |
MOJO! |
09:27 |
rhaen |
yay! |
09:31 |
|
pid left #mojo |
09:32 |
marcus |
http://nordaaker.com/docs/skitch/Mojolicious-20101201-103231.png |
09:33 |
|
pid joined #mojo |
09:33 |
rhaen |
hahhahha! |
09:34 |
rhaen |
still like this one: http://korshak.name/ra/awlwrong.png |
09:35 |
|
pid left #mojo |
09:35 |
yko |
:D |
09:56 |
|
spleenjack joined #mojo |
10:01 |
|
Christian joined #mojo |
10:01 |
Christian |
hello |
10:08 |
* moritz |
sees familiar faces all around |
10:14 |
rhaen |
yes. Welcome to the Mojo family |
10:14 |
rhaen |
the family that will drive the web. |
10:14 |
rhaen |
we know what webscale is |
10:16 |
moritz |
can you recommend any javascript lib for doing drag'n'drop? |
10:17 |
rhaen |
huh, not me. marcus is the js wizzard in here |
10:17 |
rhaen |
but sri dreams of node.js |
10:17 |
rhaen |
usually nightmares ....but at least some dreaming |
10:19 |
yko |
mortis: why not to use jquery to do that stuff? |
10:19 |
moritz |
yko: do you have a tab key? :-) |
10:19 |
yko |
moritz: ye, sorry |
10:19 |
moritz |
there's no "why not", I'm simply asking for recommendations |
10:21 |
yko |
ok, ok. i can not recommend, because i have nothing to compare with, but last time i did dragndrop i used jquery and that was easy enough. |
10:21 |
moritz |
yko: thanks, that's a good start |
10:37 |
marcus |
don't do drag and drop :p |
10:38 |
moritz |
marcus: if you can name a good alternative, sure |
10:39 |
moritz |
marcus: I want to give the user the ability to insert nodes at arbitrary points in a tree |
10:39 |
moritz |
and so far I couldn't think of a user friendly way to allow that, except drag and drop |
10:40 |
yko |
implement ls, rm and mv and give them console :D |
10:42 |
* moritz |
is open for serious suggestions |
10:42 |
* yko |
sighs |
10:45 |
yko |
moritz: http://www.jstree.com |
10:46 |
crab |
Subroutine Mojo::Template::5a19a889cb56085452d8a012c30f2cb1::b redefined at /usr/local/share/perl/5.10.1/Mojo/ByteStream.pm line 19. |
10:46 |
crab |
Subroutine Mojo::Template::5a19a889cb56085452d8a012c30f2cb1::b redefined at /usr/local/share/perl/5.10.1/Mojo/ByteStream.pm line 19. |
10:46 |
crab |
i get gazillions of those warnings now |
10:47 |
yko |
are you in reload mode? |
10:47 |
crab |
yes |
10:47 |
yko |
are you running latest github version? |
10:47 |
crab |
but these warnings have never appeared before, so i thought i would mention them |
10:47 |
crab |
yko: yes |
10:48 |
yko |
sri: http://korshak.name/ra/whatdydo.jpg |
10:49 |
yko |
:) than it looks like a little bug |
10:51 |
yko |
hmmm. perhaps there: http://bit.ly/eiqDax try to use version before that change |
10:55 |
crab |
moritz: i too recommend jquery's drag and drop, if you have to use it at all. |
10:55 |
moritz |
crab: thanks |
10:56 |
moritz |
as mentioned above, I'm open for alternatives, but I don't see any yet |
10:56 |
yko |
crab: have you used another js lib? just curious |
11:00 |
crab |
yko: yes, prototype, mochikit etc. |
11:00 |
crab |
i use only jquery now |
11:01 |
moritz |
just looked at a tutorial for jquery drag and drop, seems easy enough |
11:02 |
Christian |
do you look at the docs in jquery ui? |
11:03 |
moritz |
I looked at http://viralpatel.net/blogs/2009/05/implement-drag-and-drop-example-jquery-javascript-html.html which looked like a minimal-ish example |
11:08 |
Christian |
maybe it helps you: http://www.webresourcesdepot.com/dynamic-dragn-drop-with-jquery-and-php/ |
11:53 |
perlrocks |
Twitter: "The framework Dancer is very similar to Mojolicious, what difference; cas?" (pt) --pac_man http://twitter.com/pac_man/status/9938177183719424 |
12:42 |
|
MojoGuest217 joined #mojo |
12:42 |
MojoGuest217 |
From: http://www.google.de/search?sourceid=chrome&ie=UTF-8&q=Websockets+demo (1 hits) |
12:43 |
|
MojoGuest739 joined #mojo |
12:43 |
MojoGuest739 |
From: http://www.google.de/search?sourceid=chrome&ie=UTF-8&q=Websockets+demo (2 hits) |
12:43 |
|
MojoGuest739 left #mojo |
12:43 |
|
MojoGuest217 left #mojo |
12:44 |
|
MojoGuest270 joined #mojo |
12:44 |
MojoGuest270 |
From: http://www.google.de/ (1 hits) |
12:45 |
|
MojoGuest270 left #mojo |
12:47 |
|
MojoGuest276 joined #mojo |
12:47 |
MojoGuest276 |
From: http://www.google.de/ (2 hits) |
12:47 |
|
MojoGuest276 left #mojo |
12:55 |
|
daviddelikat joined #mojo |
13:00 |
|
daviddelikat1 left #mojo |
13:04 |
|
otaviof joined #mojo |
13:04 |
|
daviddelikat left #mojo |
13:04 |
|
daviddelikat joined #mojo |
13:05 |
|
otaviof left #mojo |
13:07 |
|
spleenjack left #mojo |
13:09 |
|
koban left #mojo |
13:11 |
|
koban joined #mojo |
13:23 |
|
perlrocks left #mojo |
13:23 |
|
perlrocks joined #mojo |
13:26 |
sri |
marcus: lol |
13:29 |
koban |
hi all! |
13:29 |
|
GitHub98 joined #mojo |
13:29 |
GitHub98 |
mojo: master Sebastian Riedel * fe0eb72 (1 files in 1 dirs): silence warnings - http://bit.ly/hpgv8F |
13:29 |
|
GitHub98 left #mojo |
13:30 |
sri |
the redefine warnings are caused by the much more aggressive reloader |
13:30 |
yko |
thx |
13:30 |
|
spleenjack joined #mojo |
13:30 |
koban |
sri: thanks! |
13:31 |
* sri |
recommends jquery too btw |
13:31 |
yko |
hehe |
13:32 |
sri |
we might even bundle jquery for internal use |
13:32 |
yko |
last time i'm looking at dojo and mootools, but have no time for real testdrive |
13:32 |
sri |
i have some huge ideas for the exception template |
13:33 |
yko |
sri: why? there's nice google hosted jquery with jquery-ui |
13:33 |
moritz |
sri: I'm about to blog about that :-) |
13:33 |
sri |
i want people to feelgood about exceptions :D |
13:33 |
sri |
show http headers, request method, url and stuff in a very pretty way |
13:34 |
sri |
writing "die 'yay!';" should become a debugging tool :) |
13:34 |
DaTa |
i hate that everyone is using libs from 3rd party servers |
13:35 |
yko |
sri: lol |
13:35 |
moritz |
yko: google hosted jquery is a bad idea if you're developing locally, and you're offline |
13:35 |
yko |
DaTa: why not while you are in development mode, writing fast M9s::Lite examples or simple page that shouldn't attract many people? |
13:36 |
yko |
mortiz: i don't remember when i was offline last time :) |
13:36 |
sri |
browsers should bundle jquery like opera does |
13:36 |
DaTa |
yko: i don't trust google |
13:36 |
moritz |
yko: well, you're not the only mojo user |
13:37 |
sri |
opera precompiles jquery, very cool stuff |
13:39 |
sri |
yay for the mac app store, finally they are building cool stuff like Reeder for mac |
13:41 |
sri |
btw. i've been thinking about a welcome page |
13:42 |
sri |
not_found in development mode might be a good start |
13:42 |
sri |
it could show a logo and a list of first steps |
13:42 |
sri |
skeletons would start without routes |
13:42 |
sri |
so it is shown |
13:43 |
sri |
(or only more specific routes) |
13:46 |
|
spleenjack left #mojo |
13:47 |
|
daviddelikat left #mojo |
13:47 |
|
daviddelikat joined #mojo |
13:49 |
perlrocks |
Twitter: "Wow, new #mojolicious server is full of love - cpanm http://bit.ly/fcAjWX - ALL GLORY TO THE HYPNOTOAD! #perl" --freekey http://twitter.com/freekey/status/9967219769348097 |
13:50 |
|
daviddelikat left #mojo |
13:53 |
|
jfuller joined #mojo |
13:54 |
sri |
moritz: in case you missed it, exception template is built in now btw. |
13:54 |
moritz |
sri: yes, I missed it :-) |
13:54 |
sri |
the huge facelift will follow soon |
13:54 |
jfuller |
Are there any known issues regarding not receiving post parameters while running mojolicious under perl 5.8.9 on Windows using Apache CGI? |
13:55 |
perlrocks |
Twitter: "http://bit.ly/gu9nhU #mojolicious #hypnotoad #perl" --freekey http://twitter.com/freekey/status/9968762455330817 |
13:55 |
sri |
few releases a go there was such a problem |
13:55 |
jfuller |
sri: I'll get my my sysadmin to make sure we're using the latest version of mojo on the server |
13:56 |
sri |
windows is very tricky though, so much to go wrong |
13:56 |
sri |
even perl bugs are common |
13:57 |
sri |
you're not doing yourself a favor using such an ancient version there |
13:57 |
sri |
i would go with the latest strawberry perl and pray |
13:59 |
diegok |
sri: you mean, windows is for believers?, nice quote :-p |
13:59 |
sri |
heh |
14:01 |
sri |
moritz: i've also improvd the reloader, so your restarting problem from yesterday might be gone too |
14:02 |
moritz |
sri: is it already released? |
14:02 |
sri |
github |
14:02 |
sri |
curl -L cpanmin.us | perl - http://latest.mojolicio.us |
14:04 |
perlrocks |
Twitter: "RT @tempiretech: just upgraded #perl without taking down his #mojolicious web app. To the Mojolicious!" --kraih http://twitter.com/kraih/status/9971218123853824 |
14:05 |
perlrocks |
Twitter: "RT @freekey: Wow, new #mojolicious server is full of love - cpanm http://bit.ly/fcAjWX - ALL GLORY TO THE HYPNOTOAD! #perl" --kraih http://twitter.com/kraih/status/9971288986615808 |
14:14 |
perlrocks |
Twitter: "RT @kraih: RT @freekey: Wow, new #mojolicious server is full of love - cpanm http://bit.ly/fcAjWX - ALL GLORY TO THE HYPNOTOAD! #perl" --j3nnn1 http://twitter.com/j3nnn1/status/9973528677842944 |
14:14 |
perlrocks |
Twitter: "RT @kraih: RT @tempiretech: just upgraded #perl without taking down his #mojolicious web app. To the Mojolicious!" --j3nnn1 http://twitter.com/j3nnn1/status/9973541327872000 |
14:14 |
jfuller |
sri: That appears to be most of the problem. They were using the PPM from the activate state repo, which is quite old |
14:15 |
jfuller |
sri: Although, now I have run into an issue using redirect. Its serving the current page template, and the page that's being redirected to, very strange |
14:15 |
|
und3f[A] is now known as und3f |
14:22 |
jfuller |
sri: If I put an explicit return after the redirect_to command it works as expected. Is that the intended behavior? |
14:27 |
yko |
jfuller: redirect_to makes redirection header, no more |
14:27 |
yko |
i usually use something like 'return $c->redirect_to("home")' |
14:28 |
jfuller |
yko: That's a reasonable solution. |
14:32 |
yko |
even prettier: return $c->render_text("Go home, boy!")->redirect_to("home")' |
14:33 |
yko |
ouch. my fault. in that chain redirect_to should be called first |
14:33 |
perlrocks |
Twitter: "@ Prenzier Look, I'm more for Mojolicious:: Lite. # Perl" (pt) --otaviof http://twitter.com/otaviof/status/9978502237396992 |
14:34 |
yko |
actually, it would be nice if it were possible pass stash values to redirect_to. like it described in pod |
14:35 |
|
daviddelikat joined #mojo |
14:36 |
yko |
than maybe even $c->redirect_to('home', text => "Go home, boy!") syntax was possible |
14:36 |
|
spleenjack joined #mojo |
14:37 |
rhaen |
yko: interesting idea! |
14:37 |
yko |
hmm. maybe ill write test and fix later |
14:38 |
Christian |
is that not the same like that: $c = $c->redirect_to('named', foo => 'bar'); |
14:38 |
yko |
one line fix and three line test :) |
14:38 |
yko |
Christian : foo => 'bar' goes to nowhere now |
14:39 |
yko |
Controller:render_* and render itself passes all parameters to renderer now. render mixes them with stash values and then renders based on that mix |
14:39 |
yko |
Please correct me if i'm wrong |
14:41 |
yko |
It would be intuitive and much userfriendly if redirect_to act as render_* bu as far as it can not pass parameters to renderer, it can just stash them for later use |
14:42 |
yko |
That is my idea, but i need to test it |
14:47 |
jfuller |
When I use url_for, I end up getting the internal ip instead of the proxy url, and enabled MOJO_REVERSE_PROXY does not seem to affect this. Is there a way to get the proxy url? |
14:49 |
sri |
yko: it might work, or not |
14:49 |
sri |
i think pairs after route name are turned into placeholders |
14:50 |
sri |
route('/:lala')->name('foo') redirect_to('foo', lala => 'yada') |
14:50 |
sri |
jfuller: your reverse proxy needs to be configured right |
14:51 |
sri |
jfuller: the nginx example in the cookbook does everything |
14:51 |
yko |
sri, right you are -_- |
14:51 |
yko |
it wouldnt work |
14:51 |
yko |
inly if add hash trick, but i don't want to |
14:51 |
sri |
jfuller: X-Forwarded-For |
14:52 |
sri |
most reverse proxies need to be configured for that |
14:52 |
|
spleenjack left #mojo |
14:53 |
jfuller |
sir: Ah, I think we're using HTTP_X_FORWARDED_* |
14:54 |
sri |
that would be a cgi key |
14:55 |
yko |
http://korshak.name/ra/howdoi.jpg |
14:55 |
jfuller |
sri: Oh yeah, it is. Hmm... |
14:57 |
sri |
oh wait |
14:57 |
sri |
you said url_for |
14:57 |
sri |
thats generated from the Host header |
14:58 |
su-bzero |
Take kote ;) |
15:00 |
|
GitHub181 joined #mojo |
15:00 |
GitHub181 |
mojo: master Sebastian Riedel * d638a14 (1 files in 1 dirs): small cookbook update - http://bit.ly/fUKvzW |
15:00 |
|
GitHub181 left #mojo |
15:01 |
sri |
the nginx recipe also includes a Host header fix |
15:03 |
yko |
http://korshak.name/ra/yahooo.jpg # sri riding the hypnotoad |
15:03 |
sri |
rofl |
15:05 |
|
spleenjack joined #mojo |
15:08 |
perlrocks |
Twitter: "RT @ kraih: RT @ FreeKey: Wow, new # mojolicious server is full of love - cpanm http://bit.ly/fcAjWX - ALL GLORY TO THE HYPNOTOAD! # Perl" (de) --2mad4milk http://twitter.com/2mad4milk/status/9987087692468224 |
15:09 |
jfuller |
sri: Which doc has the Nginx recipe? |
15:09 |
sri |
the cookbook |
15:09 |
|
GitHub126 joined #mojo |
15:09 |
GitHub126 |
mojo: master Sebastian Riedel * 4bca9c6 (3 files in 3 dirs): added ability to call Mojo::Base->attr as an instance method - http://bit.ly/hQ8xli |
15:09 |
|
GitHub126 left #mojo |
15:09 |
sri |
only on github though |
15:10 |
jfuller |
sri: Ah, that's why I wasn't able to find it |
15:11 |
sri |
https://github.com/kraih/mojo/blob/master/lib/Mojolicious/Guides/Cookbook.pod |
15:11 |
jfuller |
sri: Yup, found it once I knew where to look ;-) |
15:12 |
|
kaare left #mojo |
15:13 |
Christian |
sri, you have damn much done in the time where I was sick |
15:13 |
Christian |
nice work!!! |
15:14 |
|
GitHub197 joined #mojo |
15:14 |
GitHub197 |
mojo: master Sebastian Riedel * 2d15856 (1 files in 1 dirs): fixed typo - http://bit.ly/giFJBM |
15:14 |
|
GitHub197 left #mojo |
15:14 |
sri |
need to get ready for 1.0 :) |
15:15 |
Christian |
still 30 days |
15:15 |
Christian |
;) |
15:15 |
sri |
worst case |
15:15 |
sri |
i woudl prefer a release before the 24th |
15:16 |
sri |
mostly just docs and design work left |
15:17 |
jfuller |
You could do a release on the 24th, and then let the bug list fill up over night. Then on the 25th it would be like opening a bunch of really bad presents |
15:17 |
Christian |
ohh very nice |
15:17 |
sri |
lol |
15:18 |
moritz |
bad presents? bug reports are love! |
15:18 |
sri |
maybe i should wait for the end of the month then, since january 1 means hangover anyway |
15:18 |
moritz |
they show that somebody cares about your software, uses it and reports |
15:18 |
Christian |
there are no bugs this are all features ;) |
15:19 |
Christian |
only over Christmas |
15:20 |
sri |
brings back bad memories... too often i fix bugs people depend on :S |
15:23 |
Christian |
it is your decision you will choose the right one ;) |
15:27 |
jfuller |
sri: So, the fix in this nginx recipe is to explicitly override the host setting in the header? |
15:28 |
sri |
nginx doesn't send a host header by default |
15:28 |
sri |
it is http 1.0 |
15:29 |
jfuller |
sri: Ah, I'm using apache, so I am getting a host header, its just the local machine, rather than the x-forwarded-host which is correct |
15:29 |
sri |
then your apache must be bugged |
15:29 |
sri |
Host is an end to end header |
15:30 |
sri |
x-forwarded-for is something else |
15:30 |
sri |
it makes sure we know the ip address of the real client |
15:30 |
sri |
not relevant for url_for |
15:30 |
jfuller |
sri: What I am getting is, x-forwarded-for is the ip of the frontend proxy, and host is the ip of the middleware server |
15:31 |
sri |
your Host header is borked |
15:31 |
sri |
thats what needs fixing |
15:31 |
jfuller |
Actually, what I just said is not accurate |
15:31 |
jfuller |
Let me double check |
15:37 |
jfuller |
sri: Ok, x-forwarded-for is the ip of the client that initiated the request, host is the ip of the server responding to the request, and x-forwarded-host is the what I want |
15:38 |
sri |
custom apache setup? |
15:38 |
jfuller |
I should note the the frontend proxy is servering on 443, but the connection from frontend to middleware is over port 80, so even if I do get this working correctly will it pick that up? |
15:38 |
jfuller |
sri: Yes it is |
15:39 |
sri |
ProxyPreserveHost On |
15:39 |
sri |
that might solve your problem |
15:39 |
sri |
we don't support x-forwarded-host |
15:43 |
sri |
dunno why apache breaks rfc 2616 intentionally |
15:44 |
jfuller |
Would it be possible for me to add a plugin that did? I'm pretty sure I'm going to get the "if it ain't broke don't fix it" speech if I ask them to change apache config |
15:44 |
|
kvorg left #mojo |
15:46 |
sri |
possibly |
15:46 |
sri |
a before_dispatch hook could clean everythign up |
15:47 |
sri |
don't think i would mind x-forwarded-host support in core either, if it was done properly and had good tests |
15:49 |
jfuller |
sri: ProxyPreserveHost, would I put that in the frontend, or middlewhere apache config? |
15:50 |
sri |
i don't know your setup |
15:50 |
sri |
should be enough if you tell that an admin |
15:53 |
|
kvorg joined #mojo |
15:55 |
|
MojoGuest805 joined #mojo |
15:55 |
MojoGuest805 |
From: http://blog.kraih.com/ (8 hits) |
15:59 |
crab |
if i have a form with many inputs with the same name, can i count on the browser submitting even the empty values? |
16:01 |
|
koban left #mojo |
16:01 |
Christian |
why have the inputs the same names? |
16:04 |
|
dotan joined #mojo |
16:04 |
Christian |
jquery each is an option for that |
16:05 |
Christian |
get all inputs and check them |
16:05 |
|
su-bzero left #mojo |
16:05 |
crab |
Christian: multiple values for the same thing |
16:11 |
Christian |
ok, you can do it with jquery. get all inputs and check them in a for. |
16:12 |
Christian |
or use this plugin: http://bassistance.de/jquery-plugins/jquery-plugin-validation/ there is an option :blank search for that in the docu |
16:13 |
Christian |
i thing it is to much to use the plugin for that |
16:13 |
crab |
i don't understand. check them for what? |
16:14 |
Christian |
if they empty |
16:14 |
Christian |
you wnat to count all fields which are empty right? |
16:15 |
crab |
my question is actually: if the fields are 1,2,empty,4 and i call $self->param("foo") in mojo, can i count on getting (1,2,undef,4) or can i even get (1,2,4)? |
16:16 |
crab |
if i can't count on the empty value being submitted, then i'll have to name them differently so as to know which fields were left empty |
16:17 |
Christian |
sry that ist a question for sri ;) |
16:17 |
sri |
crab: you have to try it |
16:18 |
Christian |
cu later guys, knocking off |
16:18 |
|
MojoGuest805 left #mojo |
16:19 |
crab |
the problem is that i can only try it on one or two or $small_number of browsers |
16:20 |
* sri |
waves |
16:20 |
|
Christian left #mojo |
16:21 |
sri |
well, i would not count on browsers |
16:22 |
|
pid joined #mojo |
17:00 |
marcus |
hmm |
17:00 |
marcus |
sri: Decided to use R2D2 instead of bender on your slide =) Will use bender on the slide about futurama quotes |
17:00 |
marcus |
http://www.extravaganzi.com/wp-content/uploads/2010/03/Last-Nikko-R2D2-Video-Projector-3.jpg |
17:01 |
marcus |
unless you'd rather be the other droid :p |
17:05 |
sri |
noooooo |
17:12 |
crab |
sri: ok, so the new warnings aren't unexpected? |
17:12 |
crab |
fine |
17:12 |
crab |
(just read scrollback) |
17:12 |
sri |
not at all |
17:14 |
|
otaviof joined #mojo |
17:15 |
sri |
thats the tradeoff for reloading working better |
17:18 |
sri |
crab: which warnings do you see? |
17:18 |
crab |
Subroutine Mojo::Template::5a19a889cb56085452d8a012c30f2cb1::b redefined at /usr/local/share/perl/5.10.1/Mojo/ByteStream.pm line 19. |
17:18 |
crab |
etc. |
17:18 |
sri |
umm |
17:18 |
sri |
thats fixed already |
17:19 |
sri |
like 5 mins after the report |
17:19 |
crab |
oh. |
17:19 |
* crab |
pulls |
17:19 |
crab |
thanks. |
17:19 |
sri |
:) |
17:20 |
|
toebu joined #mojo |
17:20 |
toebu |
I am running mojolicious in fastcgi mode ... |
17:21 |
toebu |
but it is not sitting in the 'root' of the web tree. is there a simple way to rebase it ? |
17:21 |
|
achromic left #mojo |
17:22 |
toebu |
at the moment it looks at the whole url and complains that it can not server this ... what is the canonical way to figure the location of the fastcgi/cgi script within the web tree ? |
17:29 |
sri |
you're really hard to understand |
17:30 |
sri |
but i suspect your server is configured wrong |
17:31 |
sri |
from the mojolicious site there is usually nothing you have to do |
17:32 |
sri |
*side |
17:33 |
|
dotan left #mojo |
17:34 |
toebu |
sorry :-) |
17:35 |
toebu |
i have created an index.fcgi file which execs the mojolicious script with a fastcgi argument |
17:36 |
sri |
not sure why you would do that |
17:36 |
toebu |
it starts fine but as it tries to handle the request it finds sees the complete url and tries to act accordingly ... |
17:37 |
toebu |
because the website runs other stuff as well ...the mojolicious site is installed in a sub-tree |
17:37 |
sri |
well, my point stands, it is a server issue |
17:37 |
sri |
mojolicious can detect the "base path" if it gets the information |
17:38 |
toebu |
got to run ... will try to explain better ... |
17:38 |
|
ysyrota left #mojo |
17:50 |
|
jfuller left #mojo |
17:51 |
moritz |
I want to have a piece of template that I reuse in multiple other template files |
17:52 |
moritz |
and pass arguments to that first piece of template |
17:52 |
moritz |
how can I do that with ep? |
17:52 |
crab |
moritz: pass arguments through the stash |
17:52 |
crab |
moritz: <%= include 'foo', var => value %> etc. |
17:53 |
moritz |
crab: adn 'foo' is a template name in that case? |
17:53 |
crab |
yup. |
17:53 |
* moritz |
tries |
17:54 |
moritz |
crab: thanks, works like a charm |
17:55 |
moritz |
ah, I didn't read far enough in the rendering guide |
17:57 |
crab |
moritz: you're welcome. |
18:15 |
|
achromic joined #mojo |
18:18 |
perlrocks |
Twitter: "VTI Hypnotoad: A new preforking # Perl server for # Mojolicious http://bit.ly/eiUJx0" (sv) --perl_twitch http://twitter.com/perl_twitch/status/10035057964093440 |
18:38 |
|
pid left #mojo |
18:49 |
|
spleenjack left #mojo |
18:51 |
sri |
release time? |
18:52 |
marcus |
booty time |
18:53 |
sri |
tagged |
18:57 |
|
tempire_ joined #mojo |
18:57 |
tempire_ |
tag that booty |
18:57 |
tempire_ |
time |
18:57 |
sri |
:) |
18:59 |
perlrocks |
Twitter: "Mojolicious 0.999950 by Sebastian Riedel - http://frepan.64p.org/~kraih/Mojolicious-0.999950/" --cpan_new http://twitter.com/cpan_new/status/10045310806003712 |
19:01 |
perlrocks |
Twitter: "Released #mojolicious 0.999950, most likely the last release before 1.0 later this month, enjoy! :) #perl" --kraih http://twitter.com/kraih/status/10045715619258368 |
19:03 |
sri |
may the polishing begin |
19:05 |
|
stephen left #mojo |
19:11 |
|
stephen joined #mojo |
19:13 |
yko |
sri: have you thought about press-release for Mojolicious 1.0? It's very nice media occasion to use... |
19:13 |
sri |
we'll see |
19:13 |
sri |
i could surely use some help |
19:14 |
sri |
still lots of work to do |
19:14 |
yko |
i know |
19:14 |
marcus |
http://nordaaker.com/docs/skitch/Mojolicious-20101201-201431.png - last slide of my talk |
19:14 |
tempire_ |
help with what, specifically? A press release? |
19:15 |
marcus |
polishing for 1.0 ? |
19:15 |
sri |
haha |
19:15 |
sri |
help with everything |
19:16 |
sri |
documentation needs work, the web site needs to be rebuilt and included templates need a facelift |
19:18 |
sri |
press release doesn't write itself either |
19:19 |
sri |
and i'm quite sure there will be bug reports for additional distraction |
19:20 |
sri |
where is everybody? -.- |
19:20 |
* yko |
hides in the corner. |
19:20 |
sri |
I CAN SEE YOU! |
19:20 |
* janus |
hides in the stash |
19:20 |
yko |
no, you dont. *jedi move* |
19:27 |
|
arthas left #mojo |
19:29 |
sri |
i would also like to blog about hypnotoad :S |
19:36 |
|
Htbaa joined #mojo |
19:47 |
tempire_ |
I'll see about making a default page. |
19:47 |
tempire_ |
For the sample app. |
19:48 |
tempire_ |
And/or spiffing up the error templates, if no one gets there first. |
20:25 |
chansen |
marcus: nice final slide =) |
20:32 |
|
otaviof left #mojo |
20:43 |
sri |
tempire: i already have evil plans for the exception template |
20:44 |
sri |
and possibly the not_found one |
20:45 |
sri |
i could really use some help with the new http://mojolicio.us though |
20:45 |
sri |
it should become a pod browser |
20:46 |
sri |
design is no big deal, i will take care of that |
20:46 |
sri |
but the pod browser needs to be implemented |
20:47 |
sri |
not sure about the sample apps, i'd like to keep them as simple as possible actually |
20:48 |
sri |
like i said before, i'd rather put more weight on not_found |
20:48 |
sri |
and have it show a "first steps guide" in development mode |
20:49 |
sri |
i guess i could also delay the web site rebuilding |
20:50 |
tempire_ |
I think the first steps guide is vital |
20:50 |
tempire_ |
huge barrier of entry |
20:50 |
sri |
kinda weird how nobody ever wants to get involved with the framework website |
20:50 |
tempire_ |
especially considering dancer has a nice one. |
20:51 |
tempire_ |
I'm not sure what you mean by the 'pod browser' |
20:51 |
tempire_ |
for mojolicio.us |
20:51 |
tempire_ |
do you mean a pretty color-coded display for pod? |
20:53 |
sri |
thats not an argument |
20:54 |
sri |
we never do something because someone else has it |
20:54 |
|
y0j left #mojo |
20:54 |
sri |
about mojolicio.us, i want the whole site to be a pod browser |
20:55 |
tempire_ |
that's not the argument, just a comment. The argument is that not having an intro page is a barrier of entry. |
20:56 |
tempire_ |
I thought you were all for that, anyway. |
20:56 |
tempire_ |
having an intro page, I mean. |
20:57 |
sri |
i am, but i want to do it right |
20:58 |
sri |
especially not overloaded |
20:58 |
sri |
just maybe 3 very simple steps |
20:58 |
tempire_ |
agreed. |
20:59 |
tempire_ |
do this, do that, profit. |
20:59 |
sri |
right |
21:28 |
|
fhelmber_ left #mojo |
21:29 |
|
achromic left #mojo |
21:32 |
sri |
actually i'm unsure what to do with the web site |
21:42 |
|
achromic joined #mojo |
21:44 |
|
Akron joined #mojo |
21:46 |
tempire_ |
What the priorities? |
21:47 |
tempire_ |
I kind of like what it does now. |
21:47 |
tempire_ |
with a couple changes, it seems fine to me |
21:48 |
sri |
maybe |
21:48 |
tempire_ |
Actually, the default intro page for a generated app could be the framework for the website. |
21:49 |
sri |
i don't want to overload the generated app |
21:49 |
sri |
like i said, i'd rather keep it on the not_found |
21:50 |
sri |
actually the skeletons should be as small as possible |
21:51 |
sri |
but i'm open for suggestions |
21:51 |
sri |
i have no big plans myself for the skeletons |
21:52 |
|
ltriant joined #mojo |
21:52 |
|
Htbaa left #mojo |
21:53 |
|
spleenjack joined #mojo |
21:53 |
|
y0j joined #mojo |
21:55 |
|
yko left #mojo |
21:56 |
|
daviddelikat left #mojo |
22:00 |
|
y0j left #mojo |
22:12 |
toebu |
is back and tries again to explain his fastcgi issue |
22:14 |
sri |
guess i'll focus on docs and mojolicious itself for now, web site is no requirement for 1.0 |
22:14 |
toebu |
I have a fastcgi installed in /var/www/test/index.fcgi ... It handles all requests to http://site/test/... but its internal routes do not match because it includes /test/ into the url it matches |
22:16 |
toebu |
it seems that index.fcgi has to be written so that its routes match the location in the webtree where it sits ... |
22:16 |
sri |
toebu: thats a pure web server problem |
22:16 |
sri |
you prolly need a rewrite rule or so |
22:16 |
sri |
i think there is a recipe in the wiki |
22:17 |
sri |
wow, reeder for mac is quite good |
22:17 |
toebu |
can mojo not detect where its located in the tree ? |
22:17 |
sri |
good bye netnewswire |
22:18 |
sri |
toebu: it can if it gets the information |
22:18 |
sri |
your server is not cinfigured for that obviously |
22:18 |
sri |
*configured |
22:19 |
toebu |
so how does it get that information ? where in the code does that happen ? |
22:20 |
sri |
fastcgi parameters |
22:20 |
sri |
it's like a cgi environment |
22:20 |
toebu |
so mod_fcgid should take care of this ... hmmm |
22:21 |
sri |
no |
22:21 |
sri |
apache |
22:21 |
sri |
mod_fcgid is only the process manager |
22:22 |
sri |
can you try to dump $self->req->env? |
22:22 |
|
und3f is now known as und3f[A] |
22:22 |
toebu |
inside an action ? |
22:22 |
sri |
yes |
22:23 |
sri |
i need to see it |
22:25 |
|
daviddelikat joined #mojo |
22:29 |
toebu |
sri: https://gist.github.com/724356 |
22:30 |
toebu |
SCRIPT_URL is set |
22:32 |
toebu |
I found the problem ... I have to call http://site/test/index.fcgi/# and I can use rewrite rules to 'hide' the index.fcgi |
22:35 |
Akron |
toebu: And then you have to strip the script to have proper routes. |
22:36 |
sri |
we could use a proper cookbook recipe for this |
22:36 |
sri |
yko started something on the wiki but keeps saying it is not good enough... |
22:37 |
toebu |
I just looked at the wiki but did not see it ... what is the url ? |
22:37 |
sri |
https://github.com/kraih/mojo/wiki/Apache-deployment |
22:38 |
Akron |
sri: Is there an easier way to strip the script part then rewriting the path with a before_dispatch hook? |
22:38 |
sri |
umm, doesn't proper rewriting take care of that? |
22:39 |
Akron |
There are some things for servers that can do it. mod_rewrite doesn't IMHO. |
22:40 |
Akron |
And for shared webhost users, there is no real alternative, I think. |
22:40 |
sri |
well, i sadly have not much of a clue about apache |
22:40 |
Akron |
sri: And after Wikileaks AWS is no alternative anymore! :P |
22:40 |
sri |
there are countless ec2 alternatives now |
22:42 |
sri |
well if you control the server you can always use ScriptAlias |
22:42 |
Akron |
Sure. |
22:44 |
sri |
i don't really see an alternative to a before_dispatch hook if your server doesn't do clean rewriting |
22:45 |
sri |
magic workarounds for wrong configured or broken servers is not maintainable |
22:45 |
Akron |
sri: So what do you then think about: http://pastebin.com/mZGyjZjY |
22:46 |
|
daviddelikat left #mojo |
22:46 |
sri |
imo if you're going with shared hosting you've already pretty much accepted ugly urls |
22:46 |
sri |
Akron: sure, ugly hack but if you need it :) |
22:47 |
Akron |
sri: Why ugly urls - when mod_rewrite works? |
22:47 |
Akron |
sri: Yepp - it's needed for the moment. |
22:48 |
sri |
because shared hosting is already a very ugly tradeoff ;p |
22:48 |
sri |
if you go there you might as well not bother with urls |
22:48 |
Akron |
sri: But no real impact on the urls. Just big impact on maintainability. :) |
22:53 |
|
daviddelikat joined #mojo |
22:53 |
toebu |
Akron: looks good |
22:54 |
Akron |
toebu: At least one who appreciates a good ugly hack! :P |
22:54 |
|
MadManchegan joined #mojo |
22:55 |
toebu |
since I am writing an application I am about to distribute, such issues are dear to me |
22:56 |
Akron |
Yeah. Oh - I missed to change the package name to something more generic ... but I think you saw it. |
22:56 |
Akron |
Maybe that's something for a recipe. It took me a while to figure it out. |
22:58 |
sri |
the apache wiki page needs a lot more recipes |
23:01 |
Akron |
sri: And I don't think, the CGI recipe will work ... "RewriteRule ^(.*) myapp.cgi [L]" looks wrong to me ... |
23:01 |
sri |
fix it :) |
23:02 |
Akron |
sri: But it seems that GitHub does not allow for OpenID! |
23:02 |
Akron |
;) |
23:02 |
sri |
now thats a cheap excuse |
23:03 |
Akron |
sri: *sigh* |
23:08 |
|
MadManchegan left #mojo |
23:17 |
marcus |
you get a github account, you get a github account eeeverybody gets a github account! |
23:21 |
Akron |
marcus: Oookay ... ahem ... later. |
23:21 |
marcus |
</oprah> |
23:26 |
tempire_ |
Akron: marcus is actually a bot. |
23:26 |
tempire_ |
His real name is Flexo. |
23:26 |
marcus |
DESTROY ALL HUMANS! |
23:27 |
tempire_ |
Although he may be the crushinator, but that would imply certain relations between him & sri. |
23:28 |
tempire_ |
And since this is Perl, we can't handle that sort of change. |
23:28 |
tempire_ |
viva la revolucion! |
23:29 |
marcus |
http://store.dieselsweeties.com/products/crush-all-humans-shirt |
23:30 |
marcus |
I meant crush! |
23:30 |
sri |
marcus could also be robot santa |
23:30 |
sri |
i hear he's from norway too |
23:30 |
tempire_ |
shnikies. That's one mean bot. |
23:30 |
marcus |
HO HO HO |
23:31 |
marcus |
http://store.dieselsweeties.com/collections/books-and-stickers I so want that sticker for my mazda |
23:31 |
sri |
"Your mistletoe is no match for my TOW missile!" |
23:32 |
sri |
http://store.dieselsweeties.com/products/i-screw-robots-stickers |
23:32 |
Akron |
temprie_: So ... is Skynet already on GitHub? |
23:34 |
sri |
no i am not |
23:34 |
tempire_ |
bam! |
23:35 |
tempire_ |
I wore my grooviest shirt today in honor of hypnotoad. |
23:36 |
|
s0va left #mojo |
23:36 |
marcus |
hmm, I need to add a hypnotoad slide or two to my talk. |
23:37 |
Akron |
Oh - I thought hypnotoad was meant to distract from leaks ... now it seems to be meant to infiltrate ... works pretty well. |
23:39 |
marcus |
sri: is there a script to generate a default hypnotoad.conf ? |
23:39 |
sri |
mojo generate hypnotoad |
23:40 |
marcus |
sueet |
23:41 |
marcus |
have some more slide porn http://nordaaker.com/docs/skitch/Mojolicious-20101202-004054.png |
23:42 |
|
GitHub159 joined #mojo |
23:42 |
GitHub159 |
mojo: master Sebastian Riedel * be0aca0 (4 files in 4 dirs): added pod reference to hypnotoad.conf generator - http://bit.ly/hxY2vN |
23:42 |
|
GitHub159 left #mojo |
23:42 |
sri |
and there i spoil whats coming next :S |
23:44 |
sri |
marcus: :D |
23:46 |
|
s0va joined #mojo |
23:49 |
marcus |
Grower's Guide to Mojo |
23:49 |
marcus |
kind of funny. |
23:53 |
tempire_ |
sri: perfect. |
23:57 |
|
Akron left #mojo |