| Time |
S |
Nick |
Message |
| 00:00 |
|
|
kvorg left #mojo |
| 00:16 |
|
|
GitHub175 joined #mojo |
| 00:16 |
|
GitHub175 |
mojo: master Sebastian Riedel * 642f731 (10 files in 5 dirs): fixed relative path handling in Mojo::URL - http://bit.ly/dMzUkC |
| 00:16 |
|
|
GitHub175 left #mojo |
| 00:17 |
|
sri |
ok, that should cover both cases now |
| 00:54 |
|
* tempire |
dances |
| 01:06 |
|
Akron |
Hi! What's the easiest way to use a helper in a template with multiple lines (Arguments, I want to indent)? |
| 01:06 |
|
Akron |
Oh - and by the way: Happy new year! :) |
| 01:27 |
|
|
bloonix joined #mojo |
| 01:36 |
|
|
Akron left #mojo |
| 02:04 |
|
tempire |
Hooray! |
| 02:04 |
|
tempire |
I have 3 auth plugins for mojolicious |
| 02:04 |
|
tempire |
my login controllers are so pretty now. no auth functionality in the actions at all |
| 02:04 |
|
* tempire |
dances again |
| 02:05 |
|
tempire |
Akron: what do you want to do? |
| 02:05 |
|
* tempire |
gives sri a hug arbitrarily |
| 02:06 |
|
* tempire |
gives marcus a hug too |
| 02:53 |
|
curt |
ok, I need another hand with https://github.com/kraih/mojo/[…]for-non-lite-apps example. I can't seem to make the update work... |
| 02:54 |
|
curt |
which should route to $r->route('/cities/:id')->via('put')->to(controller => 'cities', action => 'update')->name('cities_update'); |
| 02:54 |
|
curt |
via put |
| 02:55 |
|
curt |
but it's using post... |
| 03:02 |
|
curt |
I don't see anything in the Routing Guide concerning via('put') |
| 03:45 |
|
tempire |
curt: what do you mean when you say it's using post? |
| 03:45 |
|
tempire |
what is using post? |
| 03:46 |
|
tempire |
wow, that's quite a guide. |
| 03:46 |
|
tempire |
who wrote that? |
| 03:46 |
|
tempire |
rhaen? |
| 03:46 |
|
tempire |
fantastic. |
| 03:48 |
|
curt |
yes, it's a great guid |
| 03:48 |
|
curt |
e |
| 03:48 |
|
curt |
when you click the submit button |
| 03:48 |
|
|
ka2u left #mojo |
| 03:48 |
|
curt |
http://localhost:3000/ads/paris/edit |
| 03:49 |
|
tempire |
The route command in mojolicious routes said request to where you say. |
| 03:49 |
|
tempire |
For example, if you issue a put request to /cities/:id, it goes to cities#update |
| 03:49 |
|
tempire |
Browsers only support GET & POST, however. |
| 03:50 |
|
tempire |
So your browser submit is issuing a post, and it wouldn't be picked up by that particular mojolicious route, because it's a POST request, & not a PUT |
| 03:52 |
|
curt |
yes but <%= hidden_field '_method' => 'put' %> |
| 03:52 |
|
tempire |
doesn't matter |
| 03:52 |
|
tempire |
browsers don't support PUT |
| 03:52 |
|
curt |
according to the notes should do the following |
| 03:52 |
|
curt |
As you can see, we still submit data via POST (instead of PUT), however, there is a hidden form parameter that allows our plugin to transform the POST request to a PUT request before the data is finally dispatched by Mojolicious! |
| 03:53 |
|
tempire |
that's interesting. |
| 03:53 |
|
tempire |
I don't know anything about that. |
| 03:54 |
|
curt |
and I'm 99% sure that it worked in 0.999930 |
| 03:55 |
|
tempire |
maybe. .999930 was aeons ago, in terms of mojolicious releases, though. You probably want to contact forwardever, the creator the plugin. I doubt the POST -> PUT mapping is part of mojolicious. |
| 03:55 |
|
curt |
it's should be part of the mojo |
| 03:56 |
|
curt |
I think |
| 03:56 |
|
tempire |
I don't think so...https://github.com/forwardever[…]ourcefulRoutes.pm |
| 03:58 |
|
tempire |
I wouldn't rely on that, if I were you. Too potentially confusing. |
| 03:58 |
|
tempire |
just my 2 cents |
| 04:04 |
|
|
tl joined #mojo |
| 04:05 |
|
curt |
I was trying to using the hidden_field without the plugin... thinking the hidden_field was part of the core |
| 04:06 |
|
|
tholen42 left #mojo |
| 05:25 |
|
|
curt left #mojo |
| 06:15 |
|
|
dku left #mojo |
| 06:27 |
|
|
kaare joined #mojo |
| 06:33 |
|
|
su-bzero is now known as su-bzero[A] |
| 06:33 |
|
|
su-bzero[A] is now known as su-bzero |
| 06:41 |
|
|
su-bzero_ joined #mojo |
| 06:41 |
|
|
su-bzero1 left #mojo |
| 06:52 |
|
|
su-bzero is now known as su-bzero[A] |
| 07:34 |
|
|
Christian joined #mojo |
| 07:34 |
|
Christian |
morning and a happy new year |
| 07:37 |
|
|
mobyu joined #mojo |
| 07:39 |
|
|
mobyu left #mojo |
| 07:39 |
|
|
mobyu joined #mojo |
| 07:44 |
|
|
su-bzero joined #mojo |
| 07:49 |
|
|
su-bzero_ left #mojo |
| 08:03 |
|
|
jwang left #mojo |
| 08:19 |
|
|
MojoGuest830 joined #mojo |
| 08:34 |
|
|
MojoGuest830 left #mojo |
| 08:48 |
|
Quai |
is it possitble to set localaddr when you create a new connection in Mojo::IOLoop? |
| 08:51 |
|
|
su-bzero_ joined #mojo |
| 08:51 |
|
|
su-bzero left #mojo |
| 09:05 |
|
|
omega joined #mojo |
| 09:13 |
|
|
MojoGuest898 joined #mojo |
| 09:13 |
|
MojoGuest898 |
hi |
| 09:14 |
|
moritz |
hello |
| 09:16 |
|
|
ispy_ left #mojo |
| 09:19 |
|
|
MojoGuest898 left #mojo |
| 09:21 |
|
yko |
Quai : yes |
| 09:26 |
|
yko |
i think i will spend this day writing tests :\ too many bugs found |
| 09:27 |
|
* yko |
is ashamed |
| 09:33 |
|
|
alnewkirk joined #mojo |
| 09:41 |
|
|
wolf_ left #mojo |
| 09:43 |
|
Quai |
yko: 'args' => { LocalAddr => '...' } worked. Undocumented, but still.. :) Thank you |
| 09:50 |
|
|
wolf__ joined #mojo |
| 09:58 |
|
Christian |
are there a recipe for a database connection? |
| 10:00 |
|
|
otaviof joined #mojo |
| 10:06 |
|
|
snearch joined #mojo |
| 10:09 |
|
|
alnewkirk left #mojo |
| 10:38 |
|
|
arthas joined #mojo |
| 10:38 |
|
|
verrens joined #mojo |
| 10:41 |
|
|
koban joined #mojo |
| 11:17 |
|
|
koban left #mojo |
| 11:38 |
|
zipkid |
Hmmm... where can i put my own Plugin to be found...? |
| 11:39 |
|
zipkid |
ok... nm that... |
| 12:00 |
|
|
curt joined #mojo |
| 12:08 |
|
perlrocks |
Twitter: "Mojolicious:: Lite in Data:: Model've used it - it filtered its programmers Isuzu http://htn.to/8GCX5c Sunday" (ja) --nabetama http://twitter.com/nabetama/st[…]21900633455988737 |
| 12:16 |
|
Christian |
it is possible to call a helper from a controller. background i get data from a db in Helpers.pm and i want to have this data in the stash but it is not possible to call stash in Helpers.pm |
| 12:17 |
|
* yko |
didn't get. |
| 12:18 |
|
|
mobyu left #mojo |
| 12:22 |
|
|
curt left #mojo |
| 12:22 |
|
Christian |
how must it look? |
| 12:22 |
|
|
forwardever joined #mojo |
| 12:23 |
|
yko |
i just can't get what you want to achieve |
| 12:24 |
|
yko |
if you making something in helper you always have controller instance |
| 12:29 |
|
Christian |
thats right, but i can't call $app->stash(...) in Helpers.pm to store the result in the stash |
| 12:33 |
|
yko |
your 'Helpers.pm' is a plugin? |
| 12:34 |
|
Christian |
yes. it is the same like this: https://github.com/kraih/mojo/[…]king-with-helpers |
| 12:36 |
|
Christian |
http://perlpunks.de/paste/show/4d21c2b8.153a.2a4 |
| 12:36 |
|
Christian |
and i want to have the return in stash() |
| 12:39 |
|
yko |
Christian : you may want to look at http://mojolicio.us/perldoc?Mo[…]ng#Adding_Helpers |
| 12:40 |
|
yko |
each helper sub get first parameter - controller |
| 12:41 |
|
|
curt joined #mojo |
| 12:44 |
|
|
su-bzero[A] is now known as su-bzero-su |
| 12:44 |
|
|
su-bzero-su is now known as su-bzero |
| 12:54 |
|
|
verrens left #mojo |
| 12:54 |
|
Christian |
ahh thx |
| 12:56 |
|
yko |
helper( foo => sub {}); <% foo bar => 'baz' %> will bring to helper sub parameters: @_ = ($controller, 'bar', 'baz') -- that how it works |
| 12:58 |
|
yko |
ouch.. helper method is still marked as experimental |
| 13:00 |
|
Christian |
yes it is |
| 13:01 |
|
|
mobyu joined #mojo |
| 13:02 |
|
|
mobyu left #mojo |
| 13:05 |
|
Christian |
i think it is not really clear how to use the helpers. an example with a database connection would be great. |
| 13:08 |
|
yko |
You may create related wiki page |
| 13:15 |
|
|
tardisx left #mojo |
| 13:31 |
|
|
koban joined #mojo |
| 13:31 |
|
|
Akron joined #mojo |
| 13:34 |
|
marcus |
yko: I forget. Where in the mir are you? |
| 13:34 |
|
yko |
ukraine, somewhere near chernobyl nuclear station |
| 13:35 |
|
Akron |
tempire: Hi! I want something like <%= my_helper 'tag', {foo => 'bar', \\ att => 'val'} =%> - i.e. my helpers in multiple lines. |
| 13:42 |
|
marcus |
my halper |
| 13:53 |
|
Akron |
marcus: Your halper? |
| 13:54 |
|
marcus |
Akron: ignore me |
| 13:54 |
|
Akron |
marcus: done. |
| 13:54 |
|
Akron |
marcus: damn! Not done! ;) |
| 13:54 |
|
marcus |
hah |
| 14:14 |
|
zipkid |
Hmm, Can i get the 'current' controller via the 'default' controller? |
| 14:16 |
|
|
bloonix left #mojo |
| 14:16 |
|
yko |
there's no 'current' controller |
| 14:18 |
|
zipkid |
yko: that is the description for the Mojolicious hooks..... |
| 14:18 |
|
zipkid |
http://mojolicio.us/perldoc?Mojolicious#hook |
| 14:18 |
|
zipkid |
and there sure is a difference.... |
| 14:19 |
|
yko |
what you are trying to achieve? |
| 14:19 |
|
yko |
stash something or ... ? |
| 14:20 |
|
zipkid |
yes |
| 14:20 |
|
zipkid |
based on a session var |
| 14:20 |
|
yko |
afaik stash is inherited, no? |
| 14:20 |
|
zipkid |
but i need the session... |
| 14:22 |
|
yko |
zipkid: https://github.com/kraih/mojo/[…]jolicious.pm#L184 |
| 14:23 |
|
yko |
session should be loaded into default controller even before before_dispatch hook runs |
| 14:23 |
|
yko |
isn't it? |
| 14:23 |
|
zipkid |
no |
| 14:24 |
|
zipkid |
let me check one more time... |
| 14:25 |
|
zipkid |
i don't want to goof... |
| 14:25 |
|
yko |
i may be wrong (not surprizing) but according to source code it should |
| 14:39 |
|
|
kaare left #mojo |
| 14:40 |
|
* zipkid |
was wrong... sry yko :-( |
| 14:40 |
|
yko |
np |
| 14:41 |
|
yko |
http://korshak.name/ra/awlwrong.png <-- time for a little illustration |
| 14:41 |
|
zipkid |
Sounds familiar :-) |
| 14:43 |
|
marcus |
yko: I love ukrainian pepper vodka |
| 14:46 |
|
yko |
ye, it can deliver much fun, but i preffer whiskey last year |
| 14:47 |
|
marcus |
fairy snuff |
| 14:50 |
|
marcus |
rails is like really hard |
| 14:50 |
|
* marcus |
looks at device, sighs |
| 14:50 |
|
marcus |
devise even |
| 14:54 |
|
yko |
marcus: according to national standarts, average weight of single rails is about 1875kg |
| 14:54 |
|
yko |
so ye, its damn hard! |
| 14:54 |
|
marcus |
single rail |
| 14:54 |
|
marcus |
damn heavy |
| 14:55 |
|
yko |
-_- |
| 14:55 |
|
marcus |
WE ARE THE ROBOTS |
| 14:55 |
|
yko |
wright you are, my deer friend... |
| 14:56 |
|
* yko |
giggles |
| 14:56 |
|
yko |
but anyway thank you for corrections :) |
| 15:08 |
|
perlrocks |
Twitter: "# Perl # mojolicious / Mojolicious wiki ORLite in a Unicode-enabled example - students write http://htn.to/q6FytQ" (ja) --kits_ http://twitter.com/kits_/status/21946016253087744 |
| 15:18 |
|
marcus |
yko: somehow you don't seem sincere =) |
| 15:19 |
|
|
dotan joined #mojo |
| 15:19 |
|
yko |
when i say 'my deer friend' or when i thank you for corrections? :) |
| 15:20 |
|
yko |
anyway, in both cases i'm absolutely sincere!! |
| 15:21 |
|
marcus |
good stuff |
| 15:21 |
|
marcus |
as long as it's not hunting season |
| 15:21 |
|
yko |
:D |
| 15:22 |
|
yko |
i don't like hunting and fishing... too much vodka |
| 15:24 |
|
zipkid |
Can i set a namespace on a bridge->to route? |
| 15:24 |
|
zipkid |
seems not to work ... |
| 15:25 |
|
zipkid |
my $auth = $r->bridge->to( 'auth#protected' ); $auth->namespace("Ds::Controllers"); -> Ds::Customers does not exist, maybe a typo? It should look for Ds::Controllers::Customers |
| 15:27 |
|
yko |
look there => http://mojolicio.us/perldoc?Mo[…]atsheet#namespace |
| 15:28 |
|
|
mattastrophe left #mojo |
| 15:29 |
|
zipkid |
yko: found it already |
| 15:29 |
|
yko |
and there => http://mojolicio.us/perldoc?Mo[…]_Class__namespace |
| 15:29 |
|
yko |
does it work for you? |
| 15:30 |
|
zipkid |
yko: yes, it causes a different problen, but hey... that's normal right? :-) |
| 15:31 |
|
yko |
:) |
| 15:32 |
|
|
snearch left #mojo |
| 15:35 |
|
zipkid |
damn... i want my bridge code and the resulting routes to be in a different namespace... seems not to work (yet) :-( |
| 15:36 |
|
yko |
zipkid: you should set ns in bridge and then set ns in your routes again :\ |
| 15:37 |
|
yko |
it's inherited |
| 15:38 |
|
zipkid |
yko, i understand but i'm using the ResourcefulRoutes... i'll need to modify that again then.... |
| 15:38 |
|
yko |
oh... than you can use cb instead |
| 15:38 |
|
zipkid |
hmm, cb ...? |
| 15:39 |
|
yko |
bridge->to(cb => \&MyNamespace::Bridges::bridge_routine)->route('...')->to |
| 15:40 |
|
zipkid |
ah, CallBack... ic |
| 15:40 |
|
yko |
ugly, but should works: you dont need to modify namespace |
| 15:41 |
|
yko |
you even can set up namespace in bridge, but provide callback. than namespace will affect routes that are behind the bridge |
| 15:41 |
|
yko |
(^--possible) |
| 15:41 |
|
zipkid |
yko: yes works with cb, thx |
| 15:42 |
|
yko |
mojolicious is very flexible |
| 15:43 |
|
yko |
thinking how deep i may hack Mojo::Client and keep it stable :\ |
| 15:44 |
|
yko |
from one hand i need to send addictional parameters to loop->connect. from other hand i want to keep using cached connections. |
| 15:45 |
|
yko |
from third hand (ye, chernobyl affection) i don't like to overload much client private methods :( |
| 15:51 |
|
|
koban left #mojo |
| 15:51 |
|
yko |
rely on internal stuff are painfull because it can change at any time, but using only public methods such a limitation... |
| 15:56 |
|
perlrocks |
Twitter: "ORLite Mojolicious wiki in a Unicode-enabled example - students write http://bit.ly/e7PIrH" (ja) --wPerlnews http://twitter.com/wPerlnews/s[…]21957984020074497 |
| 15:58 |
|
dotan |
Why are people still writing all these new ORMs? Is it because they're Japanese? |
| 16:00 |
|
moritz |
maybe they don't like the existing ones. Or plain NIH syndrom |
| 16:02 |
|
forwardever |
dotan: what orm do you use? |
| 16:02 |
|
dotan |
Class::DBI :P |
| 16:03 |
|
dotan |
The crappy original, which I think sri is partially responsible for killing as a project... |
| 16:04 |
|
Christian |
cu all |
| 16:05 |
|
|
Christian left #mojo |
| 16:05 |
|
dotan |
I was young and thought the way you get list accessors for your foreign keys was cool. Now I have loads of code where I map and grep over objects I pull from the database instead of writing proper queries. |
| 16:07 |
|
* sri |
killed the sheriff |
| 16:23 |
|
|
kaare joined #mojo |
| 16:27 |
|
|
vel joined #mojo |
| 16:31 |
|
|
kvorg joined #mojo |
| 16:37 |
|
sri |
dotan: one of the few things i'm not proud of |
| 16:40 |
|
dotan |
sri: speaking of pride, SawyerX gave a talk at Tel-Aviv.pm, said kind words about Mojolicious and used your Perl 6 logo (after talking about the Camel and the Onion perl logos and their respective owners...) |
| 16:41 |
|
sri |
dotan: weird |
| 16:42 |
|
sri |
when marcus wrote about it on facebook they said something along the lines of "sri should not be encouraged" |
| 16:45 |
|
|
su-bzero1 joined #mojo |
| 16:46 |
|
dotan |
sri: he's a nice guy, and I think he's not interested in keeping up a feud. |
| 16:49 |
|
dotan |
I mean, Mojolicious is one of the cooler perl projects, getting angsty because you were yanking their pigtails is just silly if you're interested in promoting Perl and the Perl community. |
| 16:49 |
|
dotan |
Also, the butterflies were pretty. |
| 16:49 |
|
|
su-bzero_ left #mojo |
| 16:50 |
|
dotan |
Although he did use the mauve one... |
| 16:50 |
|
|
mattastrophe joined #mojo |
| 16:54 |
|
dotan |
Maybe those Japanese are just writing a lot of CGIs (explains the lightweight ORMs, the guy who suggested lazy-loading Mojo::Client on the mailing list...) |
| 16:57 |
|
|
ispy_ joined #mojo |
| 17:16 |
|
|
trcjr left #mojo |
| 17:27 |
|
dotan |
How do you send those signals to hypnotoad? Like, reload my app. |
| 17:28 |
|
yko |
dotan: kill -s USR1 `cat hypnotoad.pid` |
| 17:29 |
|
yko |
or something like that |
| 17:29 |
|
dotan |
Thanks, I just found it: http://mojolicio.us/perldoc?Mo[…]ookbook#Hypnotoad |
| 17:32 |
|
dotan |
USR1 just killed it - I think I should have used USR2 |
| 17:33 |
|
sri |
as documented |
| 17:33 |
|
|
seb_ left #mojo |
| 17:36 |
|
marcus |
hmm |
| 17:37 |
|
yko |
lol |
| 17:38 |
|
marcus |
for HAML, I think maybe it'd be better to just rewrite %{ foo.bar } constructs as $foo->{bar} using regex |
| 17:38 |
|
marcus |
instead of using icky lvalue |
| 17:39 |
|
yko |
ohhh yeaahhhh! sri you are sooooo big! |
| 17:39 |
|
marcus |
#{ foo bar } even |
| 17:39 |
|
marcus |
#{ foo.bar.baz} |
| 17:39 |
|
marcus |
sri is big in japan |
| 17:39 |
|
yko |
indeed |
| 17:40 |
|
yko |
thanks for advice you gave to me about preparing connection and injecting it in $tx |
| 17:41 |
|
|
fhelmber_ joined #mojo |
| 17:42 |
|
marcus |
sri injection |
| 17:45 |
|
|
fhelmberger left #mojo |
| 17:47 |
|
|
Akron left #mojo |
| 17:48 |
|
sri |
they call me doctor love |
| 17:49 |
|
|
curt left #mojo |
| 17:50 |
|
yko |
anyway preparing connections by hands a bit complicated |
| 17:50 |
|
yko |
especially if you want to reuse cache |
| 18:01 |
|
|
curt joined #mojo |
| 18:17 |
|
sri |
tempire: any progress on the mojo patch? |
| 18:27 |
|
|
tempire_ joined #mojo |
| 18:28 |
|
tempire_ |
sri: I haven't done ->cert & ->key yet, and there's uncaught ssl error when the ca.crt isn't supplied to Mojo::Server::Daemon. |
| 18:29 |
|
tempire_ |
I also want to see if I can clean up the tests a bit. They seem a bit unwieldy at the moment |
| 18:31 |
|
tempire_ |
You can take a look, though: https://github.com/tempire/moj[…]/client-ssl-certs |
| 18:32 |
|
sri |
just been wondering if it will be ready for the next release |
| 18:33 |
|
dotan |
I was just about to report a bug (url_for(@_)->to_abs truncated a query string) but instead I upgraded and it's fixed! |
| 18:34 |
|
tempire_ |
when's the next release? |
| 18:38 |
|
|
mattastrophe left #mojo |
| 18:38 |
|
|
mattastrophe joined #mojo |
| 18:46 |
|
janus |
heh, that deserves a futurama quote... |
| 18:46 |
|
janus |
soon enough! |
| 18:47 |
|
janus |
your turn now would be ``that's not soon enough'' :) |
| 18:47 |
|
* janus |
has too seen it way too often... |
| 18:48 |
|
janus |
i still need something that throws fry saying ``fix it! fix it! fix it!'' for example :> |
| 18:48 |
|
sri |
tempire_: soon enough |
| 18:52 |
|
tempire_ |
I'll be done within the week. The weekend if things get crazy 'round these parts. |
| 18:54 |
|
sri |
that's not soon enough |
| 18:55 |
|
tempire_ |
!! |
| 18:55 |
|
tempire_ |
I definitely want it in the next release. |
| 18:55 |
|
tempire_ |
I'll shoot for within two days. |
| 18:55 |
|
tempire_ |
Best I can do. |
| 18:55 |
|
sri |
fix it! fix it! fix it! |
| 18:56 |
|
* tempire_ |
needs an jailed unicorn to help |
| 18:56 |
|
|
su-bzero is now known as su-bzero[A] |
| 18:56 |
|
* sri |
blames janus for the bad text |
| 18:56 |
|
|
su-bzero1 left #mojo |
| 18:56 |
|
* sri |
needs a better ghost writer |
| 19:02 |
|
janus |
get a child ;D |
| 19:05 |
|
|
dotan left #mojo |
| 19:32 |
|
sri |
http://groups.google.com/group[…]/2a7e52028cfa56a6 |
| 19:33 |
|
* sri |
hates it when people ignore the big picture :S |
| 19:33 |
|
|
fhelmber_ left #mojo |
| 19:34 |
|
yko |
ргр |
| 19:34 |
|
yko |
i was on the same thing but then dropped it |
| 19:35 |
|
yko |
ye, mojolicious can start faster 30-50% in cgi mode if cut off many stuff. but then i bought small vps and forget about that stuff |
| 19:37 |
|
sri |
nobody ever bothers to test micro optimizations for real apps |
| 19:38 |
|
sri |
quite sure that charlie brady guy will ignore all of my arguments |
| 19:40 |
|
yko |
in CGI mode question is: user will see your page in 0.5s or in 1.7-2s |
| 19:40 |
|
yko |
but finally, if you are in CGI mode, youre sucks anyway |
| 19:40 |
|
sri |
a hello world takes 0.3s here |
| 19:41 |
|
sri |
you can cut it down to 0.25s |
| 19:41 |
|
sri |
maybe 0.2s with more lazy loading |
| 19:41 |
|
yko |
there -> on your machine? CGI suggestsshared hosting |
| 19:41 |
|
sri |
any interaction with a database will still be the bottleneck |
| 19:42 |
|
yko |
sri, lets drop this discussion :) |
| 19:42 |
|
sri |
well, you brought up the micro benchmark example ;p |
| 19:43 |
|
yko |
ye, and i shut up now :) |
| 19:43 |
|
sri |
the socket connection alone to the database will void any optimization we could make |
| 19:43 |
|
* sri |
too |
| 19:47 |
|
tempire_ |
I just hit the goldmine |
| 19:47 |
|
tempire_ |
I've optimized the data transfer of hello world app |
| 19:47 |
|
tempire_ |
I just removed the "world" |
| 19:48 |
|
tempire_ |
50% faster data transfer time. |
| 19:48 |
|
sri |
brilliant! |
| 19:48 |
|
yko |
:)) |
| 19:49 |
|
sri |
actually the funny thing is, node.js people have been optimizing away the whole "Hello World!" in their benchmarks for quite some time now -.- |
| 19:50 |
|
sri |
you know, to get cooler req/s numbers :D |
| 19:50 |
|
yko |
if ($0 eq 'helloworld.pl') { print "Hello World!\n" and exit } |
| 19:51 |
|
sri |
well, it makes perfect sense, thats exactly what "ab" encourages |
| 19:51 |
|
sri |
and why i've been preaching that ab benchmarks are a really really bad idea for advertising your project |
| 19:54 |
|
|
arthas left #mojo |
| 19:54 |
|
|
Akron joined #mojo |
| 19:55 |
|
yko |
sri, may i ask you why $tx has no $tx->cb attribute? |
| 19:55 |
|
sri |
for? |
| 19:55 |
|
zipkid |
is flash supposed to be available in the bridge->to callback ? |
| 19:56 |
|
sri |
flash is request scope, yes |
| 19:56 |
|
zipkid |
thx... |
| 19:56 |
|
yko |
just thinking... in client store tx => cb pair anyway |
| 19:56 |
|
sri |
yko: tx is for client *and* server |
| 19:57 |
|
yko |
oh. yes. that's way. thanks |
| 19:59 |
|
|
meraxes joined #mojo |
| 20:05 |
|
|
curt left #mojo |
| 20:07 |
|
janus |
http://nopaste.info/c1146ae4e5.html :) |
| 20:08 |
|
|
vel left #mojo |
| 20:10 |
|
zipkid |
could anyone hint me why the flash is not defined here? -> https://gist.github.com/763885 |
| 20:11 |
|
|
GitHub5 joined #mojo |
| 20:11 |
|
GitHub5 |
mojo: master Sebastian Riedel * 707e96b (1 files in 1 dirs): fixed typo - http://bit.ly/fXDqMm |
| 20:11 |
|
|
GitHub5 left #mojo |
| 20:14 |
|
sri |
zipkid: does putting it into the session help? |
| 20:14 |
|
perlrocks |
Twitter: "@merlyn What about a show on Mojolicious, now that it has reached 1.0?" --marcusramberg http://twitter.com/marcusrambe[…]22022981983141888 |
| 20:14 |
|
zipkid |
sri maybe, haven't tried |
| 20:14 |
|
sri |
that would hint at another request in between stealing the flash |
| 20:14 |
|
zipkid |
sri: will try |
| 20:14 |
|
zipkid |
ok |
| 20:16 |
|
zipkid |
yep... that must be it... it works with session |
| 20:20 |
|
sri |
think i consider it a bug |
| 20:20 |
|
sri |
static responses should not reset the flash |
| 20:20 |
|
zipkid |
see the log i added to the gist |
| 20:20 |
|
zipkid |
no pages in between as far as i see |
| 20:20 |
|
sri |
static responses are not logged |
| 20:21 |
|
zipkid |
ah.... |
| 20:21 |
|
zipkid |
so i need to use session here> |
| 20:21 |
|
zipkid |
s/>/?/ |
| 20:21 |
|
sri |
or wait for the fix |
| 20:21 |
|
marcus |
yeah, it sounds like a bug |
| 20:21 |
|
zipkid |
5 or 10 minutes? |
| 20:21 |
|
marcus |
soon time for 1.01 sri? :) |
| 20:21 |
|
zipkid |
:-D |
| 20:21 |
|
sri |
waiting for tempire |
| 20:22 |
|
sri |
want the tls improvements for the announcement ;p |
| 20:22 |
|
marcus |
:) |
| 20:22 |
|
zipkid |
i'll use session for now |
| 20:22 |
|
* marcus |
stares at tempire |
| 20:22 |
|
* sri |
cracks the whip |
| 20:22 |
|
sri |
tempire: no pressure... but everybody is waiting for you now :D |
| 20:23 |
|
* yko |
impatiently waits for tempire. |
| 20:24 |
|
|
achromic left #mojo |
| 20:24 |
|
yko |
zipkid: or you can pass redirect as query param |
| 20:24 |
|
zipkid |
yko: true... |
| 20:26 |
|
* marcus |
has started using DDR for training. |
| 20:26 |
|
marcus |
it's actually kinda fun |
| 20:28 |
|
|
curt joined #mojo |
| 20:28 |
|
janus |
data driven revolution? |
| 20:28 |
|
marcus |
no, the dance mat thing |
| 20:28 |
|
marcus |
dance dance |
| 20:28 |
|
marcus |
last right word tho |
| 20:29 |
|
janus |
:) |
| 20:29 |
|
marcus |
got inspired after watching scott pilgrim vs the world and ordered one for my wii. |
| 20:30 |
|
marcus |
think maybe I should get another mat so we can have dance offs :D |
| 20:31 |
|
sri |
http://www.youtube.com/watch?v=ZQs83V-uAsE # not sure it's that great for training |
| 20:31 |
|
marcus |
wow, that guy si fat |
| 20:32 |
|
marcus |
"i havent seen a fat kid move like that since they had a sale at krispy kreme.." |
| 20:32 |
|
marcus |
:D |
| 20:32 |
|
sri |
xD |
| 20:34 |
|
|
curt left #mojo |
| 20:34 |
|
|
curt joined #mojo |
| 20:37 |
|
|
pid joined #mojo |
| 20:47 |
|
|
GitHub163 joined #mojo |
| 20:47 |
|
GitHub163 |
mojo: master Sebastian Riedel * fca6e50 (5 files in 4 dirs): fixed a bug where the static dispatcher would eat the flash - http://bit.ly/fZ8heH |
| 20:47 |
|
|
GitHub163 left #mojo |
| 20:47 |
|
sri |
zipkid: there ya go |
| 20:47 |
|
zipkid |
lol |
| 20:47 |
|
zipkid |
thx |
| 20:47 |
|
* tempire_ |
wants to play the data driven revolution game |
| 20:50 |
|
sri |
oh my, he agreed with me in the list thread :o |
| 20:51 |
|
* yko |
hides soldering-iron, scissors and awl. |
| 20:52 |
|
* sri |
doesn't get it, but is too afraid to ask |
| 20:52 |
|
zipkid |
hmm... still no flash .. :-( |
| 20:53 |
|
yko |
typycaly discussion-solving toolkit. was widely used by inquisition. |
| 20:55 |
|
stephan48 |
is there a way to use websockets in ff without a flash policy server or flash replacement? |
| 20:58 |
|
stephan48 |
or should i rather use ajax then? |
| 20:59 |
|
sri |
don't use websockets in production |
| 20:59 |
|
sri |
they are not ready |
| 21:00 |
|
stephan48 |
k |
| 21:01 |
|
|
GitHub180 joined #mojo |
| 21:01 |
|
GitHub180 |
mojo: master Sebastian Riedel * 306dd9c (1 files in 1 dirs): added more flash tests - http://bit.ly/e3EEqi |
| 21:01 |
|
|
GitHub180 left #mojo |
| 21:01 |
|
sri |
zipkid: according to tests the flash works just fine |
| 21:02 |
|
zipkid |
sri: i must be doing it wrong then.... |
| 21:02 |
|
|
curt left #mojo |
| 21:02 |
|
|
curt joined #mojo |
| 21:03 |
|
sri |
can anyone recommend a google analytics iphone app? |
| 21:39 |
|
|
curt left #mojo |
| 21:46 |
|
sri |
http://groups.google.com/group[…]/6419ea9d5aad89ca # Future plans |
| 21:48 |
|
tempire_ |
um. |
| 21:48 |
|
tempire_ |
didn't you try this once before? |
| 21:49 |
|
tempire_ |
I read somewhere that many enemies were made. |
| 21:49 |
|
tempire_ |
Actually, I redact my statement. That's just me being negative. |
| 21:50 |
|
tempire_ |
I'll be using drizzle, sqlite, & riak. |
| 21:50 |
|
tempire_ |
I'll be forced to use oracle, probably. |
| 21:53 |
|
stephan48 |
mh.. recursive lists in templates? howto implement properly with mojo? |
| 21:53 |
|
yko |
recursive lists? |
| 21:54 |
|
sri |
no matter what he means, the answer is "just like you would do in perl" ;) |
| 21:54 |
|
stephan48 |
{Playlist1->{Playlist2,Playlist3->{Playlist4}}} and so on |
| 21:54 |
|
sri |
right answer :) |
| 21:55 |
|
yko |
sri ye |
| 21:55 |
|
yko |
stephan48 : http://mojolicio.us/perldoc?Mo[…]e_Template_Blocks can help you or finally confuse :) |
| 21:56 |
|
stephan48 |
mh, seems sane so far on first look :) |
| 22:01 |
|
stephan48 |
thanks ;) |
| 22:01 |
|
sri |
tempire_: answer on the list you slacker! |
| 22:06 |
|
perlrocks |
Twitter: "Lets talk a bit about the (not so distant) future of #mojolicious. :) http://bit.ly/fluWAg #perl" --kraih http://twitter.com/kraih/status/22051084084183040 |
| 22:07 |
|
xantus |
let's talk about sex, bayyybeeee |
| 22:07 |
|
sri |
shagadelic! |
| 22:08 |
|
xantus |
sri: mongodb huh |
| 22:09 |
|
xantus |
I thought you were on the riak bandwagon with me |
| 22:09 |
|
* sri |
loves riak, but it is still missing the special sauce |
| 22:10 |
|
stephan48 |
riak? |
| 22:12 |
|
sri |
i was sceptical about mongodb, but ad-hoc queries are teh shit |
| 22:12 |
|
xantus |
hmm |
| 22:12 |
|
mxey |
If you care for one more database opinion, I use SQLite and PostgreSQL. |
| 22:12 |
|
sri |
you will hate the wire protocol though |
| 22:12 |
|
mxey |
But I am interested in going for NoSQL stuff as well. |
| 22:13 |
|
sri |
it's very heavy binary stuff |
| 22:13 |
|
xantus |
sri: bson? |
| 22:13 |
|
sri |
bson + framing with ops |
| 22:13 |
|
xantus |
heh |
| 22:16 |
|
sri |
then again you seemto have accepted protocol buffers too :) |
| 22:17 |
|
sri |
which is even heavier than bson |
| 22:17 |
|
xantus |
well, I'm familiar with them |
| 22:18 |
|
xantus |
and it would bring a some performance boost without having to switch immediately from http to pbc |
| 22:27 |
|
sri |
hope i didn;t scare anyone, the full-stack experiment won't affect mojolicious itself at all |
| 22:28 |
|
sri |
tempire made me a little nervous |
| 22:37 |
|
stephan48 |
when i got a app global var(lite app) $rpld, i could access it in my templates or? |
| 22:37 |
|
sri |
my $rpld =...? |
| 22:38 |
|
stephan48 |
its a object |
| 22:38 |
|
sri |
that wouldn't be global |
| 22:38 |
|
stephan48 |
ye declared that way |
| 22:38 |
|
sri |
our $rpld |
| 22:38 |
|
stephan48 |
k |
| 22:38 |
|
sri |
<%= $main::rpld %> |
| 22:39 |
|
stephan48 |
k |
| 22:39 |
|
sri |
but i wouldn't do that ;p |
| 22:39 |
|
stephan48 |
yap |
| 22:39 |
|
sri |
app->defaults(rpld => ...) and <%= $rpld %> |
| 22:39 |
|
stephan48 |
i think i rather want to insert the object into stash ;) |
| 22:39 |
|
sri |
defaults does that global |
| 22:42 |
|
tempire_ |
don't be scared. |
| 22:42 |
|
tempire_ |
I just thought you disliked that space |
| 22:43 |
|
tempire_ |
based on things you've said over the past year |
| 22:43 |
|
|
trcjr joined #mojo |
| 22:44 |
|
tempire_ |
I've love to see a model that's database-agnostic, which is what I presume you're talkign about. |
| 22:48 |
|
tempire_ |
And it's only a matter of time before dbic is moose-based. |
| 22:54 |
|
marcus |
sri: Mojolicious-Heavy |
| 22:54 |
|
marcus |
:) |
| 22:54 |
|
marcus |
I've started to dislike dbic after using it a lot |
| 22:55 |
|
marcus |
I feel like it's more effort than writing sql to trick it into doing the stuff sql can out of the box |
| 22:55 |
|
marcus |
it's nice for the easy stuff tho |
| 22:56 |
|
marcus |
also, I often want to do sql queries where I aggregate or select from different tables, and the dbic model hinders that |
| 22:56 |
|
xantus |
damn moose |
| 22:56 |
|
marcus |
don't think moosifying it would be very useful. |
| 22:56 |
|
xantus |
what a heavy beast |
| 22:56 |
|
marcus |
it's not like it has helped catalyst much |
| 22:57 |
|
sri |
3. PROFIT |
| 22:58 |
|
marcus |
someone should write Perl - The good parts. |
| 22:59 |
|
marcus |
I really enjoyed the javascript one |
| 22:59 |
|
sri |
that would actually be cool |
| 23:00 |
|
mxey |
What about “Modern Perl”? :) |
| 23:03 |
|
marcus |
perl for hipsters |
| 23:03 |
|
marcus |
the modern perl book is out now, right? |
| 23:03 |
|
xantus |
how to hang yourself if you have enough rope |
| 23:04 |
|
marcus |
http://www.onyxneon.com/books/[…]n_perl/index.html |
| 23:04 |
|
stephan48 |
mh.. |
| 23:04 |
|
marcus |
available soon for free in epub |
| 23:05 |
|
xantus |
nice |
| 23:05 |
|
stephan48 |
when i define a block $block and want to call it from within it(recursion), would that work? |
| 23:06 |
|
janus |
define the block before, otherwise you can't reference it from within itself |
| 23:06 |
|
|
kaare left #mojo |
| 23:06 |
|
stephan48 |
http://abc123.pastebin.com/KUUikKef |
| 23:06 |
|
stephan48 |
define before? |
| 23:06 |
|
xantus |
I often do something like my $block; $block = sub { }; |
| 23:06 |
|
stephan48 |
ah |
| 23:06 |
|
janus |
welcome to the recursive department of recursion :) |
| 23:11 |
|
janus |
that construct cries btw for a decent plugin... |
| 23:11 |
|
janus |
or builtin taghelper? |
| 23:12 |
|
sri |
MY EYES! |
| 23:13 |
|
sri |
stephan48: please indent those poor perl lines |
| 23:13 |
|
stephan48 |
maybe janus maybe |
| 23:13 |
|
stephan48 |
sri: why? would make it only better to read so no real benefit :) |
| 23:13 |
|
sri |
janus: how would a tag helper "help" there? |
| 23:14 |
|
stephan48 |
maybe to remove the <a and list things but then i would have there only taghelper lines almost :) |
| 23:14 |
|
sri |
umm |
| 23:15 |
|
janus |
like select_field, but nested and as [uo]l/li |
| 23:15 |
|
sri |
<%= link_to $playlist->{'name'}, '#?id=' . $playlist->{'id'} %>? |
| 23:16 |
|
xantus |
heh, it snowed in vegas |
| 23:16 |
|
xantus |
GLOBAL COOLING! |
| 23:17 |
|
sri |
global warming will just be evened out by the nuclear winter |
| 23:17 |
|
janus |
my bet still is on extremly fast warm/cool switching, i.e. global desert |
| 23:19 |
|
marcus |
who cares. the world will end in 2012 anyways |
| 23:19 |
|
janus |
or soon enough :P |
| 23:20 |
|
xantus |
global warming is a myth, it's just an increase in solar wind due to the suns cycle of higher activity |
| 23:20 |
|
|
curt joined #mojo |
| 23:21 |
|
xantus |
I should start selling supplies and generators to the 2012 nuts |
| 23:22 |
|
janus |
haven't even heard of it yet... reminds me of... |
| 23:22 |
|
janus |
[X] ... and this time i mean it! |
| 23:26 |
|
janus |
how often has the world ended already until now? |
| 23:27 |
|
tempire_ |
I like dbic |
| 23:27 |
|
tempire_ |
Once you get past the learning curve, it's quite nice. |
| 23:27 |
|
marcus |
tempire: I don't think my problem is the learning curve. I've used it longer than anyone almost |
| 23:27 |
|
marcus |
I was one of the first contributors to dbic |
| 23:28 |
|
tempire_ |
that may be. I'm quite ok with never ever writing sql again, though. |
| 23:28 |
|
marcus |
why? |
| 23:28 |
|
stephan48 |
never? |
| 23:29 |
|
marcus |
you have to understand sql to use dbic effectively anyways. |
| 23:29 |
|
stephan48 |
yap |
| 23:29 |
|
tempire_ |
yeah, I just don't want to manage the writing of it. |
| 23:29 |
|
stephan48 |
and for checking if dbic does what you want :) |
| 23:29 |
|
tempire_ |
I've been involved in too many projects where people embed sql in their code. |
| 23:29 |
|
tempire_ |
and they eventually end up writing their own orm |
| 23:29 |
|
tempire_ |
:s |
| 23:30 |
|
janus |
that's as nice as mixing code and html |
| 23:30 |
|
tempire_ |
sql is the devil. |
| 23:30 |
|
xantus |
Repent now, because the world is perpetually ending! |
| 23:30 |
|
janus |
sql is fine |
| 23:30 |
|
tempire_ |
DEVIL!!!!!!!!!!! |
| 23:30 |
|
janus |
if you're going to use it anyways... |
| 23:30 |
|
tempire_ |
I just recently found handlersocket for mysql, which skips the sql layer. |
| 23:30 |
|
janus |
... better dance with him :P |
| 23:30 |
|
tempire_ |
it's pretty interesting. |
| 23:31 |
|
marcus |
I think if I was to start a new sql project now I would use something like DBIx::Skinny |
| 23:31 |
|
marcus |
but I am more likely to pick a nosql alternative |
| 23:31 |
|
tempire_ |
is that the new hipness? |
| 23:31 |
|
tempire_ |
Yeah, I haven't had much chance to use nosql |
| 23:31 |
|
marcus |
tempire: it's a very lightweight model |
| 23:31 |
|
tempire_ |
but I'm pretty convinced riak is cool, especially based on their search engine. |
| 23:31 |
|
janus |
only dbic was able to survive more than one project for me, but yet i am back to plain dbi + smallish helpers |
| 23:32 |
|
tempire_ |
I haven't run into dbic problems, at least not yet. |
| 23:32 |
|
tempire_ |
at least, nothing that is greater than writing direct sql. |
| 23:32 |
|
* tempire_ |
likes writing perl, not sql. |
| 23:32 |
|
xantus |
I'm going to buy some 3gb drives so I can set up a riak/luwak file cluster |
| 23:33 |
|
|
MojoGuest611 joined #mojo |
| 23:33 |
|
MojoGuest611 |
From: http://www.google.com/search?s[…]=html5+irc+client (4 hits) |
| 23:33 |
|
|
MojoGuest611 left #mojo |
| 23:33 |
|
* janus |
likes writing perl and sql, and even mixing them... plperl anyone? :D |
| 23:35 |
|
janus |
luckily there's no perl clone of ecpg... |
| 23:36 |
|
janus |
anyways, it's less the language than the model that makes it interesting |
| 23:41 |
|
janus |
(for me, that is) |
| 23:59 |
|
|
forwardever left #mojo |