| Time |
S |
Nick |
Message |
| 00:00 |
|
kvorg |
hmmm... but non-free has to have full security support, still, no? |
| 00:00 |
|
* kvorg |
suddenly folds down and goes to horizontallands. |
| 00:00 |
|
jawnsy |
kvorg: nope it doesn't |
| 00:01 |
|
jawnsy |
kvorg: we don't support contrib or non-free, hence, they're second-class citizens |
| 00:01 |
|
sri |
non-free sounds perfect |
| 00:01 |
|
rhaen |
hm, next reason to leave it unpackaged |
| 00:01 |
|
rhaen |
..or non-free... |
| 00:01 |
|
jawnsy |
non-free would work, but the embedded files, I dunno if that will fly |
| 00:01 |
|
perlrocks |
Twitter: "Mojolicious 1.0 released: http://bit.ly/i3J8XM" --pfig http://twitter.com/pfig/status/19181144184459264 |
| 00:03 |
|
sri |
i'm not entirely opposed to a sharedir solution, but someone has to hack it up and prove that it works in all our use cases |
| 00:03 |
|
sri |
it sucks too though |
| 00:03 |
|
sri |
installs static files in the lib directory |
| 00:04 |
|
rhaen |
hahaha - nice comment: https://github.com/kraih/mojo/[…]e37463b76b097c121 |
| 00:04 |
|
sri |
Oo |
| 00:05 |
|
rhaen |
I liked his CGI::App "framework" - and I thought he might be a nice person |
| 00:05 |
|
sri |
not so easy to work with but a nice person |
| 00:06 |
|
rhaen |
So I really like his comment, even if's something in a competitive arena |
| 00:06 |
|
rhaen |
...(he might hate me, I wrote our wiki entry about porting CGI::App applications).. |
| 00:06 |
|
perlrocks |
Twitter: "Mojolicious:: Guides:: Growing read!" (ja) --kuusou_kyokusen http://twitter.com/kuusou_kyok[…]19182365402210304 |
| 00:07 |
|
jawnsy |
heh |
| 00:07 |
|
jawnsy |
good news everyone |
| 00:07 |
|
jawnsy |
19:05:08 < jawnsy> if I move libmojolicious-perl to non-free, can we just leave everything as-is? |
| 00:07 |
|
jawnsy |
19:06:36 < gregoa> a good topic for an NM question :) |
| 00:07 |
|
jawnsy |
19:07:13 < gregoa> but probably yes; non-free basically boils down to "are we allowed to distribute it", and that should be "yes" in this case |
| 00:08 |
|
jawnsy |
keep in mind that this will only work for people that have added the non-free section to their apt sources.list |
| 00:08 |
|
jawnsy |
but it's better than nothing |
| 00:08 |
|
sri |
good solution |
| 00:08 |
|
rhaen |
hm, well, time for world domination then! |
| 00:08 |
|
sri |
funny how non-free gives us more freedom |
| 00:10 |
|
jawnsy |
non-free refers to things that aren't totally free from the users' perspective |
| 00:10 |
|
jawnsy |
sure, it gives you more flexibility from a developer's standpoint (since you can pick non-DFSG-compliant licenses if you want) |
| 00:10 |
|
jawnsy |
but it's not as good for users |
| 00:11 |
|
sri |
arguable |
| 00:11 |
|
jawnsy |
to be honest, if Mojolicious was non-free when I was first packaging it, I might not have bothered with it at all |
| 00:11 |
|
sri |
good artwork needs to be protected |
| 00:11 |
|
jawnsy |
but now that the work is done, moving it to non-free seems okay to me |
| 00:11 |
|
|
MojoGuest71 left #mojo |
| 00:11 |
|
sri |
otherwise things get ugly for users too |
| 00:12 |
|
jawnsy |
meh, the people behind iceweasel would disagree I guess... |
| 00:12 |
|
rhaen |
sri: I'll document it on the wiki tomorrow. |
| 00:12 |
|
sri |
you would end up with 1000 different projects named firefox all looking the same |
| 00:13 |
|
rhaen |
so we leave users the choices but we should say to them that they should install it from non-freee, if they want it as a package |
| 00:13 |
|
jawnsy |
I don't think there are 1000 projects named Iceweasel all looking the same |
| 00:13 |
|
jawnsy |
despite that there could be |
| 00:13 |
|
rhaen |
jawnsy: will it have dependencies? |
| 00:13 |
|
sri |
i for one heard iceweasel for the first time today |
| 00:13 |
|
sri |
there is no brand building behind it |
| 00:14 |
|
rhaen |
jawnsy: so if it's just the single mojo package I can't see a problem with it. |
| 00:14 |
|
jawnsy |
rhaen: nope, only what you guys require (e.g. perl is the only dependency); currently there is also a Recommends: libio-socket-ssl-perl (>= 1.34) |
| 00:14 |
|
jawnsy |
it's okay for non-free stuff to require stuff from main, but not vice-versa |
| 00:14 |
|
rhaen |
oh, fine! |
| 00:15 |
|
|
daviddelikat left #mojo |
| 00:15 |
|
rhaen |
sri: I will import it into our NetBSD wip repo - that's a more liberal thing :) |
| 00:15 |
|
sri |
liberal is always good |
| 00:16 |
|
sri |
think i can make the artwork license a little more liberal too |
| 00:16 |
|
rhaen |
OMG! |
| 00:16 |
|
sri |
not much though |
| 00:16 |
|
rhaen |
DISTNAME= Mojo-0.9002 |
| 00:16 |
|
rhaen |
was Mojo usuable that time? |
| 00:16 |
|
sri |
wow, a classic! |
| 00:17 |
|
sri |
doubt it |
| 00:17 |
|
rhaen |
ok, bed time for me. I'll see you tomorrow! |
| 00:17 |
|
sri |
nn |
| 00:17 |
|
* rhaen |
waves. |
| 00:19 |
|
sri |
yea, i could switch to cc-nd |
| 00:19 |
|
sri |
not free but more liberal |
| 00:19 |
|
jawnsy |
makes no difference for us |
| 00:19 |
|
sri |
i know, but maybe for our users |
| 00:20 |
|
jawnsy |
interesting though, Catalyst::Manual was moved from non-free back to main now |
| 00:20 |
|
|
MojoGuest120 joined #mojo |
| 00:20 |
|
MojoGuest120 |
From: http://www.google.fr/search?q=[…]&client=firefox-a (1 hits) |
| 00:20 |
|
|
MojoGuest120 left #mojo |
| 00:21 |
|
|
MojoGuest192 joined #mojo |
| 00:21 |
|
MojoGuest192 |
From: http://www.google.fr/search?q=[…]&client=firefox-a (2 hits) |
| 00:21 |
|
|
MojoGuest192 left #mojo |
| 00:22 |
|
|
MojoGuest85 joined #mojo |
| 00:22 |
|
MojoGuest85 |
From: http://www.google.fr/search?q=[…]&client=firefox-a (4 hits) |
| 00:25 |
|
|
MojoGuest85 left #mojo |
| 00:33 |
|
perlrocks |
Twitter: "note to self: must check out. RT @newsycombinator: Mojolicious 1.0 released - A new Web Framework for Perl http://j.mp/hbRQcy" --lucasdickey http://twitter.com/lucasdickey[…]19189070492082176 |
| 00:36 |
|
sri |
Zzz |
| 00:36 |
|
perlrocks |
Twitter: "Read the document now / Mojolicious 1.0 released - Sebastian Riedel about Perl and the Web http://htn.to/CvJaws" (ja) --nabetama http://twitter.com/nabetama/st[…]19189960552742912 |
| 00:45 |
|
tempire |
That whole conversation about debian packaging made me tired. |
| 00:56 |
|
jawnsy |
lol |
| 00:56 |
|
perlrocks |
Twitter: "Mojolicious 1.0 http://bit.ly/hQiipn / cc @ feedly" (sw) --ingen_xiler http://twitter.com/ingen_xiler[…]19194857553666048 |
| 00:56 |
|
jawnsy |
tempire: not as tired as I am of having it over and over |
| 00:58 |
|
perlrocks |
Twitter: "Mojolicious Web Framework - Join the Perl revolution! http://icio.us/Adcz2q" --josoroma http://twitter.com/josoroma/st[…]19195415106682881 |
| 01:05 |
|
|
daviddelikat joined #mojo |
| 01:09 |
|
perlrocks |
Twitter: "Mojolicious 1.0 came out because it seems really out" (ja) --hironorism http://twitter.com/hironorism/[…]19198208932577281 |
| 01:12 |
|
jawnsy |
whoever keeps spelling necessary as neccessary, please stop |
| 01:12 |
|
jawnsy |
:P |
| 01:12 |
|
* diegok |
I know why I stopped using debian after reading the backlog... |
| 01:13 |
|
tempire |
whoever keeps saying whoever when they mean whomever, please stop. |
| 01:13 |
|
tempire |
;) |
| 01:13 |
|
jawnsy |
diegok: to each their own |
| 01:13 |
|
jawnsy |
tempire: well played. |
| 01:14 |
|
tempire |
100% tests pass! |
| 01:15 |
|
diegok |
jawnsy: sure, I'm surrounded by debian users/lovers :) |
| 01:15 |
|
tempire |
\o/ |
| 01:31 |
|
perlrocks |
Twitter: "#twitbotix: #kraih: Had to emergency patch the #mojolicious irc/twitter bot with a retweet filter, too much buzz! :... http://is.gd/jwC70" --twitbotix http://twitter.com/twitbotix/s[…]19203802166984704 |
| 02:10 |
|
|
daviddelikat left #mojo |
| 02:21 |
|
|
daviddelikat joined #mojo |
| 02:38 |
|
|
jawnsy left #mojo |
| 03:11 |
|
* tempire |
does the robot to german techno |
| 03:15 |
|
|
jawnsy joined #mojo |
| 03:28 |
|
|
profjuan joined #mojo |
| 03:36 |
|
perlrocks |
Twitter: "Mojolicious 1.0 released - A new Web Framework for Perl http://bit.ly/hXeYKv http://ff.im/-vT1IN" --TopHackerNews http://twitter.com/TopHackerNe[…]19235143365435392 |
| 03:40 |
|
|
profjuan left #mojo |
| 03:57 |
|
perlrocks |
Twitter: "Oops, Mojolicious I finally came to 1.00" (ja) --aerith http://twitter.com/aerith/stat[…]19240337927045120 |
| 04:03 |
|
perlrocks |
Twitter: "Mojolicious 1.0 released - A new Web Framework for Perl http://j.mp/hbRQcy" --abisrk http://twitter.com/abisrk/stat[…]19241826019966977 |
| 04:03 |
|
|
tholen42 joined #mojo |
| 04:04 |
|
|
memememomo_ is now known as memememomo |
| 04:05 |
|
|
tl left #mojo |
| 04:05 |
|
perlrocks |
Twitter: "Mojolicious Perl web framework at http://mojolicio.us/" --shakthimaan http://twitter.com/shakthimaan[…]19242453030670336 |
| 04:05 |
|
|
memememomo is now known as memememomo_ |
| 04:05 |
|
|
naquad joined #mojo |
| 04:05 |
|
naquad |
hi |
| 04:06 |
|
naquad |
are there any speed (r/s) benchmarks mojo vs sinatra? atm i'm using ruby + sinatra, but i wouldn't mind to use perl + mojo, but i need to know that i won't loose efficiency |
| 04:17 |
|
perlrocks |
Twitter: "Application of the Model Mojolicious Mojo:: Base class using the Mouse changed. I just have to move on now as before, and done easily than you think." (ja) --kuusou_kyokusen http://twitter.com/kuusou_kyok[…]19245540831141888 |
| 04:23 |
|
perlrocks |
Twitter: "http://blog.kraih.com/mojolicious-10-released # Mojolicious 1.0 released #perl #mojolicious" --gslin http://twitter.com/gslin/status/19247047362224128 |
| 04:28 |
|
tempire |
Mojolicious: easily than you think. |
| 04:31 |
|
su-bzero |
;) |
| 04:31 |
|
su-bzero |
naquad: Try to create a benchmark. |
| 04:40 |
|
naquad |
su-bzero, i did, but i really didn't like the results: mojolicious: 144 r/s, sinatra: 1632r/s. thats the code: http://pastebin.com/QrwzQ0ww - mojolicious, sinatra: http://pastebin.com/n80kQKF6 - maybe i'm doing something wrong? i just can't believe perl is slower than ruby =\ |
| 04:43 |
|
naquad |
btw, ab -c100 -n10000 http://localhost:PORT_HERE/asdasd - thats the line i'm running |
| 04:47 |
|
perlrocks |
Twitter: "Source Mojolicious READ" (ja) --hironorism http://twitter.com/hironorism/[…]19252917764628480 |
| 04:48 |
|
naquad |
su-bzero, any ideas how do i make it run faster? maybe i can disable some mods or logs? |
| 04:59 |
|
tempire |
naquad: you're running through apache? |
| 05:00 |
|
naquad |
tempire, no, plain daemon. see the run line and source, i'm using default server |
| 05:00 |
|
tempire |
pastebin is the slowest site ever. |
| 05:00 |
|
naquad |
woks ok for me |
| 05:01 |
|
tempire |
daemon is a debugging tool. Try using hypnotoad. |
| 05:02 |
|
naquad |
tempire, ok, trying it. thank you |
| 05:04 |
|
naquad |
Requests per second: 1131.64 [#/sec] (mean) |
| 05:04 |
|
naquad |
thats better |
| 05:05 |
|
naquad |
but still not enough |
| 05:05 |
|
naquad |
are there any other ways to increase efficiency? |
| 05:06 |
|
tempire |
I've never run a site where I needed 1131 requests per second, so I can't help you much more. |
| 05:07 |
|
naquad |
tempire, :) i'm building a torrent multitracker, so i'm want it to be efficient as much as possible. maybe its a bit paranoid, but i want the best solution. |
| 05:07 |
|
|
yakudzo joined #mojo |
| 05:08 |
|
tempire |
Even so, it's tough to guess what the real bottlenecks will be. I doubt the daemon you're running will be as important as database config, schema access, etc. |
| 05:08 |
|
naquad |
tempire, i'm using nosql (mongodb) and it is fast like hell |
| 05:09 |
|
tempire |
of course. It's web scale ;) |
| 05:09 |
|
naquad |
some issues in case of server failure, invalid mongod shutdown, but still, it is fastest and it has all i need, except full text search, but i did that with sphinx and xmlpipe |
| 05:13 |
|
su-bzero |
apr_socket_recv: Connection reset by peer (104) |
| 05:13 |
|
su-bzero |
Total of 1477 requests completed |
| 05:13 |
|
su-bzero |
For sinatra :( |
| 05:14 |
|
naquad |
odd |
| 05:14 |
|
su-bzero |
Couldn't get benchmark results ;) |
| 05:14 |
|
su-bzero |
Need to test with http_load instead of ab. |
| 05:14 |
|
perlrocks |
Twitter: "@ Hironorism rough notes but if it is good. Mojolicious Behavior - 515 https: / / sites.google.com/site/515memo/mojolicious-no-kyodou" (ja) --kuusou_kyokusen http://twitter.com/kuusou_kyok[…]19259803821940736 |
| 05:14 |
|
naquad |
what's the ruby version and sinatra version? i've got ruby 1.9.2 and sinatra 1.1.2 |
| 05:16 |
|
su-bzero |
Problem is not in ruby I think. sinatra works, but ab fails. |
| 05:16 |
|
naquad |
hmm |
| 05:16 |
|
naquad |
odd |
| 05:16 |
|
* naquad |
went looking for http_load |
| 05:18 |
|
naquad |
http://www.acme.com/software/http_load/ -is that it? |
| 05:18 |
|
naquad |
su-bzero, ^^ |
| 05:19 |
|
su-bzero |
Yes. |
| 05:19 |
|
naquad |
ok, will try it |
| 05:19 |
|
su-bzero |
http_load -verbose -parallel 100 -fetches 10000 ./file_with_urls |
| 05:22 |
|
su-bzero |
193.942 fetches/sec - sinatra |
| 05:23 |
|
su-bzero |
339.6 fetches/sec - mojolicious (--daemon) |
| 05:23 |
|
su-bzero |
But, sinatra has only 9896 code 200, instead of 10000. |
| 05:23 |
|
su-bzero |
May be my 1.8.7 Ruby is so old. ;) |
| 05:24 |
|
naquad |
ohhh |
| 05:24 |
|
naquad |
1.8.x branch sux! |
| 05:24 |
|
naquad |
if you want to deploy at least something with ruby 1.8.x use enterprise ruby |
| 05:25 |
|
su-bzero |
naquad: You should put something like http://localhost:3000/asdfqqq to file_with_urls. |
| 05:25 |
|
su-bzero |
naquad: ;) I don't use ruby. ;) |
| 05:25 |
|
su-bzero |
naquad: So do a benchmark with http_load, show the results. |
| 05:25 |
|
naquad |
ok |
| 05:26 |
|
perlrocks |
Twitter: "Oh, Mojolicious of Version 1.0 is a. http://search.cpan.org/dist/Mojolicious/" (ja) --shingoyoneda http://twitter.com/shingoyoned[…]19262846349086720 |
| 05:29 |
|
naquad |
http://pastebin.com/r1UD6Lj7 |
| 05:29 |
|
naquad |
su-bzero, ^ |
| 05:29 |
|
naquad |
doing same for mojolicious |
| 05:30 |
|
su-bzero |
Like your ab results. |
| 05:30 |
|
naquad |
http://pastebin.com/jA8VTmay |
| 05:30 |
|
naquad |
mojolicious ^^ |
| 05:32 |
|
su-bzero |
Twice slower than sinatra, yeah? |
| 05:32 |
|
naquad |
eah |
| 05:32 |
|
naquad |
*yeah |
| 05:32 |
|
naquad |
i still suspect it is server issue. i don't really beliece that perl is slower than ruby. /me went deploying this all using nginx and fastcgi |
| 05:33 |
|
su-bzero |
Try fcgi too, yes. |
| 05:35 |
|
su-bzero |
Need to go. See you later. |
| 05:35 |
|
naquad |
kk, ttl |
| 05:38 |
|
|
daviddelikat left #mojo |
| 05:43 |
|
|
kaare joined #mojo |
| 05:58 |
|
|
avkhozov joined #mojo |
| 06:16 |
|
perlrocks |
Twitter: "Mojolicious - Web framework for Perl http://www.findbestopensource.[…]oduct/mojolicious # FOSS" (no) --bestopensource http://twitter.com/bestopensou[…]19275338198556673 |
| 06:47 |
|
|
ysyrota joined #mojo |
| 07:26 |
|
|
kvorg left #mojo |
| 07:40 |
|
perlrocks |
Twitter: "Merry Christmas! It fills me with great joy to finally announce the release of Mojolicious... http://reduce.li/owncvu #released" --blogsoftheworld http://twitter.com/blogsofthew[…]19296667752730625 |
| 07:41 |
|
|
fhelmberger_ joined #mojo |
| 07:41 |
|
perlrocks |
Twitter: "Merry Christmas! It fills me with great joy to finally announce the release of Mojolicious... http://reduce.li/wqiby5 #released" --blogsoftheworld http://twitter.com/blogsofthew[…]19296780151689216 |
| 07:44 |
|
|
koban joined #mojo |
| 07:59 |
|
|
arthas joined #mojo |
| 08:14 |
|
perlrocks |
Twitter: "#Mojolicious 1.0 http://goo.gl/fb/vpdwV #mojo #perl #version" --allframeworks http://twitter.com/allframewor[…]19305014614818816 |
| 08:15 |
|
perlrocks |
Twitter: "allframeworks / Perl: Mojolicious 1.0 http://ff.im/vTxud" --planetperlru http://twitter.com/planetperlr[…]19305291371782144 |
| 08:26 |
|
|
koban left #mojo |
| 08:26 |
|
|
koban joined #mojo |
| 08:40 |
|
yakudzo |
congratulations ppl |
| 08:45 |
|
yko |
\o/ |
| 09:02 |
|
perlrocks |
Twitter: "Mojolicious-1.0 http://ff.im/vTDHW" --sharifulin http://twitter.com/sharifulin/[…]19317199789359104 |
| 09:13 |
|
perlrocks |
Twitter: "Mojolicious 1.0 released - The Modern Perl Web Framework (all the goodies, no dependencies) by Sebastian Riedel: perl http://dlvr.it/C9czk" (ja) --RtestR http://twitter.com/RtestR/stat[…]19319843954098177 |
| 09:14 |
|
perlrocks |
Twitter: "I'm in for the long-awaited Mojolicious 1.0." (ja) --mamemomonga http://twitter.com/mamemomonga[…]19320105716420608 |
| 09:15 |
|
|
baton8 left #mojo |
| 09:15 |
|
perlrocks |
Twitter: "Perl. Mojolicious 1.0 That happened a long-awaited stable version http://ff.im/vTFz5" (ru) --sharifulin http://twitter.com/sharifulin/[…]19320574970957824 |
| 09:20 |
|
yakudzo |
in Slide show "new hope" its better to notice that mojolicious has very big retweet community (: |
| 09:22 |
|
|
dotan_ joined #mojo |
| 09:22 |
|
perlrocks |
Twitter: "Anatoly Sharifulin: Perl. Mojolicious 1.0 That happened a long-awaited stable version http://ff.im/vTGhz" (ru) --planetperlru http://twitter.com/planetperlr[…]19322149999214592 |
| 09:24 |
|
marcus |
sri: I for one would welcome a cc-nd license |
| 09:24 |
|
|
dotan_ left #mojo |
| 09:25 |
|
|
koban left #mojo |
| 09:25 |
|
|
koban joined #mojo |
| 09:28 |
|
perlrocks |
Twitter: "Hooray! ;) RT @ sharifulin: Perl. Mojolicious 1.0 That happened a long-awaited stable version http://ff.im/vTFz5" (ru) --ya_boris http://twitter.com/ya_boris/st[…]19323765393465344 |
| 09:30 |
|
marcus |
mm, exciting ps3 hacking things happening at @27c3 |
| 09:36 |
|
yakudzo |
marcus, what what ??? is there any way to easily hack PS3 with out special flashes ? |
| 09:41 |
|
marcus |
yakudzo: there has been some developments in that direction. Not sure what the current status is, but really looking forward to http://twitter.com/marcan42/st[…]18535276120903681 |
| 09:41 |
|
marcus |
sony has been doing some software updates lately to patch some holes, but I've left my ps3 off lately |
| 09:42 |
|
marcus |
being able to run boxee on your ps3 would be pretty hot :) |
| 09:45 |
|
yakudzo |
(: |
| 09:47 |
|
yko |
Ohm... $tx->res->dom and ->json experimental? |
| 09:48 |
|
|
und3f is now known as szasenko_ |
| 09:48 |
|
|
szasenko_ is now known as und3f |
| 10:02 |
|
|
dotan_ joined #mojo |
| 10:06 |
|
* marcus |
wonders how hard it is to use facebook with mojolicious |
| 10:06 |
|
marcus |
guess I can auth with oauth |
| 10:11 |
|
perlrocks |
Twitter: "mojolicious 1.0 is out http://blog.kraih.com/mojolicious-10-released #perl #framework" --rgaidot http://twitter.com/rgaidot/sta[…]19334529302929409 |
| 10:14 |
|
|
dotan_ left #mojo |
| 10:16 |
|
|
dotan_ joined #mojo |
| 10:22 |
|
|
dotan_ left #mojo |
| 10:22 |
|
|
dotan_ joined #mojo |
| 10:31 |
|
|
dotan_ left #mojo |
| 10:31 |
|
|
dotan_ joined #mojo |
| 10:32 |
|
|
dotan_ left #mojo |
| 10:35 |
|
perlrocks |
Twitter: "congrats @kraih on the mojolicious 1.0 release, way to go for perl on rails :) http://blog.kraih.com/mojolicious-10-released" --openpyr http://twitter.com/openpyr/sta[…]19340555213340672 |
| 10:35 |
|
|
jamesw joined #mojo |
| 10:44 |
|
|
alnewkirk left #mojo |
| 10:44 |
|
|
alnewkirk joined #mojo |
| 10:52 |
|
bionoid |
Hi and congrats on the release everyone. I have read up on some docs and code, preparing to write a test application. Are there any docs / examples for DBI with Mojolicious, medium scale applications? Thanks. |
| 10:53 |
|
bionoid |
ie, not with ::Lite |
| 10:56 |
|
yko |
bionoid: Lite is almost the same as full Mojolicious app |
| 10:57 |
|
bionoid |
yko: Ah, yes, point being I do not plan a single-file application. The question is if there are any special considerations in this case. |
| 10:58 |
|
yko |
I'm sure no. you can read Growing Guide, it explains much. Especially 'WELL STRUCTURED APPLICATION' section |
| 10:59 |
|
yko |
just here: http://mojolicio.us/perldoc?Mo[…]us/Guides/Growing :) |
| 10:59 |
|
bionoid |
I have skimmed it ;-) |
| 10:59 |
|
bionoid |
But, like, in a Mojolicious application, should I use a global $dbh? Or should I use some feature of the framework? |
| 11:01 |
|
bionoid |
How can I then serve a static page that does not require a database connection? |
| 11:01 |
|
bionoid |
I am sure just a quick peek at some existing code would answer my questions, but I can't seem to find it ;-) |
| 11:01 |
|
yko |
There's no single practice for that. But ways i saw (and used) were to set stash value in $startup or set global package variable in your base model class |
| 11:02 |
|
bionoid |
Aha, ok, I'll experiment with it when I get there. Thanks. |
| 11:04 |
|
yko |
bionoid: you don't have to do anything to serve static. just put your static files into /public dir of your app |
| 11:04 |
|
yko |
try script/ypurapp get /index.html |
| 11:04 |
|
yko |
default empty index.html should be generated with mojo generate app |
| 11:06 |
|
yko |
if you are using ::Lite, you can just create public dir in place where your app lives and put all static there. |
| 11:06 |
|
yko |
you see, ::Lite behaves almost same as Mojolicious |
| 11:07 |
|
bionoid |
But isn't the main script still executed when a request arrives? |
| 11:07 |
|
bionoid |
ie if I start with DBI->connect, it will be called for a static resource? |
| 11:07 |
|
bionoid |
I am probably misunderstanding it, so just ignore me, I will come back when I have real code problems :) |
| 11:07 |
|
yko |
are we talking about daemon mode or about cgi environment? |
| 11:07 |
|
yko |
oh, that's great point :) |
| 11:09 |
|
yko |
just note: if you are running in deamon mode startup function runs only once - when you start your daemon. After that each request is served with corresponding controller's action or (if any) just a static file. |
| 11:11 |
|
yko |
And if your'e running in cgi mode - your'e suck :D |
| 11:13 |
|
yko |
But even in this way you can save client's time rendering static with your http server (apache for example...) and well-configured .htaccess |
| 11:19 |
|
bionoid |
aha, I'm sure it doesn't matter much in practice either way, with persistent connections and all |
| 11:19 |
|
bionoid |
but I just thought it might be documented with an example or two ;) |
| 11:19 |
|
bionoid |
I'll be writing a test app as I said, if it turns out anything half-decent, I will mention it here and perhaps it can become a tutorial or something. |
| 11:21 |
|
yko |
that would be great |
| 11:22 |
|
yko |
also you can just write a wiki page at https://github.com/kraih/mojo/wiki |
| 11:29 |
|
bionoid |
Yeah that seems like the right place. |
| 11:30 |
|
bionoid |
I'll have to get the code working first, though, so I'll be back with more questions later. Now I have to detach, so thanks for your time so far yko. |
| 11:38 |
|
|
spleenjack joined #mojo |
| 12:07 |
|
und3f |
sri, what about page "Mojolicious sites" in wiki? |
| 12:08 |
|
perlrocks |
Twitter: "mojo.vim now highlights all helpers in #mojolicious templates. Happy development! https://github.com/yko/mojo.vim" --ykorshak http://twitter.com/ykorshak/st[…]19364068632567808 |
| 12:12 |
|
perlrocks |
Twitter: "Mojolicious updated design for Vim syntax. A wide variety of bugs Tteta Teru Naka corrected." (ja) --kuusou_kyokusen http://twitter.com/kuusou_kyok[…]19365047813808129 |
| 12:52 |
|
|
szasenko_ joined #mojo |
| 12:57 |
|
|
ok22 joined #mojo |
| 12:57 |
|
crab |
hi. |
| 13:05 |
|
|
spleenjack left #mojo |
| 13:08 |
|
sri |
moin |
| 13:08 |
|
|
su-bzero is now known as su-bzero[A] |
| 13:17 |
|
sri |
btw. we could use a few more 5 star ratings ;) http://cpanratings.perl.org/dist/Mojolicious |
| 13:19 |
|
|
avkhozov left #mojo |
| 13:20 |
|
szasenko_ |
mojo rocks |
| 13:21 |
|
|
szasenko_ is now known as und3f_ |
| 13:24 |
|
sri |
hmm, that benchmark against sinatra was so apples vs oranges |
| 13:25 |
|
sri |
anyway, mojolicious is still unoptimized, with a little work you could double/tripple those 1131 req/s |
| 13:26 |
|
sri |
*-p |
| 13:27 |
|
und3f_ |
hm... |
| 13:28 |
|
und3f_ |
how did you get 1131 req/s? |
| 13:32 |
|
sri |
thats what the ruby guy said |
| 13:32 |
|
sri |
rather easy to reach with 3-4 cores and hypnotoad |
| 13:33 |
|
sri |
that number is totally unrealistic for any real world app, but still |
| 13:35 |
|
|
kaare left #mojo |
| 13:35 |
|
sri |
those micro benchmarks make no sense at all |
| 13:48 |
|
|
MojoGuest514 joined #mojo |
| 13:48 |
|
MojoGuest514 |
From: http://blog.kraih.com/ (14 hits) |
| 13:52 |
|
perlrocks |
Twitter: "Mojolicious 1.0: Web-based framework for Perl will tape for HTML5?: Sebastian Riedel, author, t. .. http://bit.ly/f9mr9N" (pl) --webhostingpl http://twitter.com/webhostingp[…]19390159392870400 |
| 13:55 |
|
yko |
Comparing apples with tractors. Apples are green, tractors are iron. |
| 13:56 |
|
sri |
:) |
| 13:57 |
|
|
MojoGuest930 joined #mojo |
| 13:59 |
|
|
und3f_ left #mojo |
| 14:00 |
|
|
MojoGuest303 joined #mojo |
| 14:00 |
|
MojoGuest303 |
From: http://community.livejournal.c[…]html?view=4306961 (1 hits) |
| 14:00 |
|
|
MojoGuest303 left #mojo |
| 14:00 |
|
|
MojoGuest930 left #mojo |
| 14:06 |
|
|
spleenjack joined #mojo |
| 14:09 |
|
|
su-bzero[A] is now known as su-bzero |
| 14:19 |
|
moritz |
I'm surprised how positive the comments on http://news.ycombinator.com/item?id=2040729 are |
| 14:19 |
|
moritz |
then again it's not reddit :-) |
| 14:30 |
|
|
avkhozov joined #mojo |
| 14:34 |
|
|
MojoGuest899 joined #mojo |
| 14:35 |
|
|
MojoGuest899 is now known as a-cher |
| 14:39 |
|
|
fhelmberger left #mojo |
| 14:51 |
|
perlrocks |
Twitter: "Mojolicious 1.0 http://bit.ly/hXvBJg #download #Linux_Software #Mojolicious_1.0" --lamptag http://twitter.com/lamptag/sta[…]19404986936983552 |
| 14:52 |
|
sri |
think i need to blog about growing apps |
| 14:54 |
|
|
a-cher left #mojo |
| 14:57 |
|
|
MojoGuest514 left #mojo |
| 14:57 |
|
|
fhelmberger joined #mojo |
| 15:03 |
|
sri |
http://www.reddit.com/r/perl/c[…]_modern_perl_web/ # feel free to join the discussion :) |
| 15:05 |
|
sri |
the whole growing idea might blow some peoples minds |
| 15:06 |
|
sri |
i totally need to explain it in a few simple steps |
| 15:06 |
|
sri |
as in pictures :) |
| 15:08 |
|
yko |
sri: indeed |
| 15:09 |
|
yko |
actually (tsss) i still don't use that idea to start app from lite and then grow it to Mojolicious :) |
| 15:09 |
|
sri |
shame on you! |
| 15:09 |
|
marcus |
http://www.reddit.com/user/ulyanov seems kinda clueless. |
| 15:11 |
|
sri |
troll or nervous dancer user |
| 15:11 |
|
sri |
he's basically begging for reassurance |
| 15:12 |
|
marcus |
https://github.com/sukria/Danc[…]ter/script/dancer *boggles* |
| 15:13 |
|
|
cosimo joined #mojo |
| 15:14 |
|
moritz |
marcus: you just described 80% of the reddit user base, not just one of 'em |
| 15:15 |
|
cosimo |
hi there! |
| 15:15 |
|
* sri |
waves |
| 15:15 |
|
marcus |
cosimo: hai! |
| 15:16 |
|
cosimo |
marcus: hei |
| 15:16 |
|
marcus |
I am pretty sure dancer uses http server simple rather than including a daemon. |
| 15:16 |
|
sri |
it does |
| 15:17 |
|
* sri |
has to wait 9 minutes in between answers :S |
| 15:17 |
|
cosimo |
if I want back 'localhost:3000' what is the right "<% ???? %>" to use? |
| 15:17 |
|
cosimo |
lame question I know |
| 15:18 |
|
marcus |
Sri: i was about to answer that one. ;) |
| 15:18 |
|
sri |
$self->req->url->authority? |
| 15:18 |
|
sri |
marcus: argh! |
| 15:18 |
|
sri |
or $self->req->headers->host |
| 15:19 |
|
sri |
$self->req->url->host/port would be even more specific |
| 15:20 |
|
* sri |
needs to make a list with blog topics |
| 15:20 |
|
sri |
testing is another good one |
| 15:21 |
|
cosimo |
sri: thanks |
| 15:21 |
|
marcus |
I might do one on facebook integration. |
| 15:22 |
|
* sri |
is very interested in oauth2.0 |
| 15:22 |
|
marcus |
If I can get it working with vti's code :) |
| 15:22 |
|
sri |
nono |
| 15:22 |
|
marcus |
Does anyone support it yet? |
| 15:22 |
|
sri |
oauth1.0 != oauth2.0 |
| 15:22 |
|
marcus |
I know |
| 15:22 |
|
sri |
facebook is oauth2.0 |
| 15:22 |
|
marcus |
Oh. |
| 15:22 |
|
marcus |
Didnt know that. |
| 15:22 |
|
|
seb_ joined #mojo |
| 15:23 |
|
sri |
it might be neat enough for a core feature |
| 15:23 |
|
marcus |
Mm. |
| 15:23 |
|
cosimo |
sri: wasn't it like oauth-2.0, but not really? |
| 15:23 |
|
cosimo |
also, OAuth 2.0 is not final yet, is it? |
| 15:23 |
|
sri |
i've not investigated yet |
| 15:23 |
|
sri |
just what i heard |
| 15:23 |
|
|
seb_ left #mojo |
| 15:24 |
|
sri |
but what i've seen so far i really liked |
| 15:24 |
|
marcus |
Facebook Platform uses the OAuth 2.0 protocol for authentication and authorization. |
| 15:24 |
|
spleenjack |
sri: facebook doesn't full complain with last oauth2.0 draft |
| 15:24 |
|
|
seb_ joined #mojo |
| 15:24 |
|
marcus |
Hope it's less involved than oauth 1.0 |
| 15:24 |
|
sri |
well, oauth2.0 is a huge spec |
| 15:24 |
|
sri |
it is very much better than 1.0 |
| 15:25 |
|
sri |
https instead of checksum |
| 15:25 |
|
marcus |
Yeah, looks way more sane. |
| 15:25 |
|
marcus |
http://developers.facebook.com[…]s/authentication/ |
| 15:25 |
|
spleenjack |
sri: "well, oauth2.0 is a huge spec" - not so well :) "it is very much better than 1.0" - +100 |
| 15:26 |
|
* sri |
agrees completely |
| 15:26 |
|
sri |
i've hacked together 1.0 for the twitter bot... |
| 15:27 |
|
|
seb_ left #mojo |
| 15:29 |
|
marcus |
Sri: vti's idea of having a mojo::client::oauth seems pretty good? |
| 15:29 |
|
|
seb_ joined #mojo |
| 15:31 |
|
sri |
marcus: not sure how the workflow was |
| 15:32 |
|
sri |
a separate transaction builder for Mojo::Client might provide a better api |
| 15:32 |
|
sri |
my $tx = $oath->build_oauth_tx(...); or so |
| 15:33 |
|
sri |
but i completely forgot how it worked |
| 15:34 |
|
sri |
if you can get away with $oauth->authorize(some_key => 'yada', another_key => 'foo') it would be much better though |
| 15:35 |
|
marcus |
Well, mostly you want to do authorized api requests right? |
| 15:36 |
|
* sri |
would have to read up on it |
| 15:37 |
|
sri |
i really don't know enough :/ |
| 15:37 |
|
marcus |
So the flow is get an access token, which will redirect you to the provider, then use a callback url to get an access token, and use that for aPi requests. |
| 15:37 |
|
sri |
ah right, the big problem was dealing with the provider |
| 15:38 |
|
* marcus |
is watching 27c3 crypto talk on tv |
| 15:38 |
|
sri |
http://search.cpan.org/~kgrenn[…]/lib/Net/OAuth.pm |
| 15:39 |
|
marcus |
Next up is libusb talk. Very interested in that one. |
| 15:39 |
|
marcus |
Sri: that is oauth 1.0, no? |
| 15:39 |
|
sri |
i'll read up on oauth later and provide some more qualified feedback ;p |
| 15:40 |
|
sri |
looks like 1.0 |
| 15:40 |
|
sri |
maybe the facebook javascript apis have a neat api to steal |
| 15:41 |
|
sri |
just ignore everything i said :) |
| 15:42 |
|
cosimo |
Net::OAuth is 1.0 |
| 15:44 |
|
cosimo |
websockets support in mojo works fantasticly out of the box! |
| 15:44 |
|
sri |
careful with websockets though, the protocol will change soon |
| 15:48 |
|
cosimo |
sri: ack |
| 15:57 |
|
sri |
i suspect somewhen in january/february |
| 15:57 |
|
sri |
after that we might get to use websockets for real |
| 16:00 |
|
|
kvorg joined #mojo |
| 16:09 |
|
yko |
uff. <% for (0..10) {%> blah <%}%> woks now... and looks terrible |
| 16:09 |
|
sri |
marcus: actually, oauth 2.0 seems so simple i don't think we need client abstraction |
| 16:09 |
|
sri |
yko: eww |
| 16:09 |
|
sri |
yko: i prefer the new indented line style |
| 16:10 |
|
sri |
% for (0 ... 10) { |
| 16:10 |
|
sri |
blah |
| 16:10 |
|
sri |
% } |
| 16:10 |
|
yko |
ye. i want to mark deprecated {% %} as errors in syntax but then found that it can be used in loops |
| 16:10 |
|
marcus |
We use haml now. |
| 16:10 |
|
yko |
i think i will mark that syntax as error anyway. people shouldn't write in that way :) |
| 16:11 |
|
sri |
marcus: didn't you hate haml like a year ago? :) |
| 16:11 |
|
marcus |
I still do. But arne likes it. *shrug* |
| 16:12 |
|
sri |
i kinda like mustache, but the no logic in templates part is a little too weak for me |
| 16:14 |
|
sri |
marcus: i think oauth should just be a Mojolicious::Plugin::OAuth2 or so |
| 16:15 |
|
sri |
for the "Authenticating Users in a Web Application" flow |
| 16:15 |
|
sri |
the "Authenticating as an Application" flow is so simple it can just be done with Mojo::Client |
| 16:15 |
|
|
koban left #mojo |
| 16:16 |
|
sri |
actually everythign except for the redirect is simple |
| 16:17 |
|
sri |
and that part is best done with a plugin on the mojolicious layer, maybe with one or two helpers |
| 16:23 |
|
sri |
there is also a new auth system without redirecting http://autho.me/ |
| 16:23 |
|
sri |
somehow doubt it will reach critical mass though |
| 16:37 |
|
|
avkhozov left #mojo |
| 16:38 |
|
|
avkhozov joined #mojo |
| 16:39 |
|
|
GitHub21 joined #mojo |
| 16:39 |
|
GitHub21 |
mojo: master Sebastian Riedel * e385caf (3 files in 3 dirs): pod cleanup - http://bit.ly/gFZmW2 |
| 16:39 |
|
|
GitHub21 left #mojo |
| 16:39 |
|
sri |
back to business as usual :) |
| 16:40 |
|
yko |
:)) |
| 16:42 |
|
sri |
at some point i think we'll split a stable 1.x branch from master, gonna need a real release manager then |
| 16:42 |
|
|
nuba joined #mojo |
| 16:44 |
|
|
ysyrota left #mojo |
| 16:50 |
|
crab |
hi sri. |
| 16:50 |
|
* sri |
waves |
| 17:04 |
|
alnewkirk |
mojolicio.us is awesome, cudos |
| 17:08 |
|
sri |
thanks |
| 17:12 |
|
su-bzero |
How to use HAML in Mojolicious? Any plugins? |
| 17:12 |
|
sri |
i think markus just updated the plugin |
| 17:13 |
|
sri |
s/k/c/ |
| 17:13 |
|
su-bzero |
Where could I find it? |
| 17:14 |
|
sri |
https://github.com/marcusrambe[…]jox-renderer-haml |
| 17:14 |
|
sri |
it should be moved to Mojolicious::Plugin::HamlRenderer imo |
| 17:15 |
|
su-bzero |
Any plugins for SASS? |
| 17:16 |
|
sri |
not seen one yet |
| 17:22 |
|
sri |
isn't less already much more popular? |
| 17:28 |
|
|
kvorg left #mojo |
| 17:30 |
|
su-bzero |
What instead of SASS? |
| 17:34 |
|
|
Zaur joined #mojo |
| 17:38 |
|
Zaur |
hi all |
| 17:38 |
|
* sri |
waves |
| 17:44 |
|
yko |
Hmm.... why Mojolicious is better then that-framework-whose-name-we-don't-say-here? :)) |
| 17:44 |
|
sri |
i'm still thinking about how to put it into a single sentence |
| 17:45 |
|
yko |
that's why i'm asking, you should better know |
| 17:46 |
|
sri |
my favorite so far is "It is a DSL for web apps, Mojolicious is an HTTP framework with a DSL for web apps" |
| 17:46 |
|
sri |
or something along those lines |
| 17:49 |
|
yko |
hmm. thank you |
| 17:49 |
|
sri |
"Dancer is a DSL for web apps, Mojolicious is a HTTP framework with a DSL for web apps." |
| 17:49 |
|
sri |
the whole comparison is silly |
| 17:49 |
|
sri |
like you said, apple vs tractor, both are green |
| 17:50 |
|
yko |
actually i thought about Catalyst :D |
| 17:50 |
|
sri |
Catalyst is just dated |
| 17:50 |
|
yko |
but your opinion about vs Dancer also interesting |
| 17:50 |
|
sri |
it was good in 2005 |
| 17:51 |
|
yko |
Mojolicious! Time for upgrade! |
| 17:52 |
|
sri |
i don't mind catalyst comparisons, it's my baby too :) |
| 17:52 |
|
sri |
it's the dancer ones that insult me |
| 17:53 |
|
yko |
Actually i was surprized about it: i thought that was a marketing sneaky trick. I have to apologize. |
| 17:53 |
|
sri |
what was? |
| 17:53 |
|
yko |
... from creator of Catalyst... blablabla |
| 17:54 |
|
* yko |
is a such ignorant person... |
| 17:54 |
|
sri |
ah, no i still care about it |
| 17:55 |
|
sri |
i cared enough to give it up, that should tell you something :) |
| 17:56 |
|
yko |
ye, i was thinking about that fact a lot |
| 17:57 |
|
sri |
the choices were leaving or a horrible public fight with questionable outcome |
| 17:58 |
|
sri |
i can be grumpy at times, but i'm not poisonous, if it's better for one of my projects if i leave then i'll just do it ;) |
| 17:58 |
|
yko |
when outcome becames questionable it's time to leave, something like that. but who i am to talk about it ^) |
| 17:59 |
|
yko |
oh yes, you can :)) |
| 18:14 |
|
|
fhelmberger left #mojo |
| 18:15 |
|
|
fhelmberger joined #mojo |
| 18:15 |
|
|
fhelmberger left #mojo |
| 18:18 |
|
|
ok22 left #mojo |
| 18:21 |
|
perlrocks |
Twitter: "What #mojolicious topic would you like me to blog next about? #perl" --kraih http://twitter.com/kraih/status/19457863227285504 |
| 18:22 |
|
|
su-bzero is now known as su-bzero[A] |
| 18:24 |
|
|
su-bzero[A] is now known as su-bzero |
| 18:25 |
|
su-bzero |
Что тут было-то? |
| 18:25 |
|
su-bzero |
Sorry. ;) |
| 18:25 |
|
perlrocks |
Twitter: "@kraih About an example app with user authentication ..? #mojolicious" --jakoubek http://twitter.com/jakoubek/st[…]19458818291273728 |
| 18:26 |
|
perlrocks |
Twitter: "@jakoubek Is there something that isn't covered by the growing guide already? http://mojolicio.us/perldoc?Mo[…]us/Guides/Growing" --kraih http://twitter.com/kraih/status/19459145178550272 |
| 18:36 |
|
sri |
damn, perlrocks has filtered out like hundreds of retweets since yesterday :o |
| 18:36 |
|
yko |
haha :) |
| 18:37 |
|
yko |
you make that filter in time :) |
| 18:37 |
|
sri |
yea |
| 18:37 |
|
yko |
we could be buried under tons of retweets :) |
| 18:38 |
|
* yko |
smiles too much today |
| 18:38 |
|
|
seb_ left #mojo |
| 18:38 |
|
sri |
smiling is good for your health i heard |
| 18:40 |
|
* yko |
examining his heals: few teeth are missing. |
| 18:40 |
|
yko |
you may be wrong :) |
| 18:40 |
|
yko |
*health |
| 18:49 |
|
perlrocks |
Twitter: "@kraih: maybe something along the way of integrating extjs and mojolicious ..." --patrick_fraley http://twitter.com/patrick_fra[…]19464849377460224 |
| 18:54 |
|
perlrocks |
Twitter: "@kraih what about why and how to build plugins? #mojolicious" --freekey http://twitter.com/freekey/sta[…]19466076119105536 |
| 18:54 |
|
yko |
one thing that looks not so easy and keeps me away from starting in Lite is that expanding to real app should be done by hands |
| 18:57 |
|
yko |
I know that migration described in Growing Guide very well, but that moment deters me anyway. maybe notes that can brin light on that case can be a good topic? |
| 18:57 |
|
garu |
yko: it would be fun to see an 'inflate' version that would also inflate controllers |
| 18:58 |
|
yko |
garu: i don't think it's possible |
| 18:58 |
|
garu |
why not? it's just a coderef |
| 19:00 |
|
|
spleenjack left #mojo |
| 19:06 |
|
yko |
hmm... you mean using something like B::Deparse to get original source? |
| 19:07 |
|
yko |
sounds interesting |
| 19:09 |
|
yko |
but anyway reproducing routes will be little headache. but i like the idea |
| 19:12 |
|
|
arthas left #mojo |
| 19:14 |
|
sri |
routes and callbacks are the easy part |
| 19:14 |
|
sri |
but you also have app->... calls |
| 19:15 |
|
sri |
maybe even random code |
| 19:15 |
|
garu |
mark it as experimental? write it as an external plugin and go PPI on it? |
| 19:16 |
|
sri |
feel free :) |
| 19:16 |
|
sri |
i'd like to see it |
| 19:27 |
|
|
baton8 joined #mojo |
| 19:33 |
|
|
kvorg joined #mojo |
| 19:33 |
|
perlrocks |
Twitter: "@kraih It would be very nice to hear how to correctly use Mojolicious stuff in MVC Model.( Configs, Logger etc)" --koorchik http://twitter.com/koorchik/st[…]19476045275070464 |
| 19:35 |
|
perlrocks |
Twitter: "@koorchik I thought the growing guide made that quite clear, you are not supposed to use Mojolicious stuff on the model layer." --kraih http://twitter.com/kraih/status/19476558523670528 |
| 19:37 |
|
perlrocks |
Twitter: "@koorchik But there seems to be some confusion about the model layer in Mojolicious, i'll put it on the list. :)" --kraih http://twitter.com/kraih/status/19476969615785985 |
| 19:39 |
|
sri |
mongodb lite app with json config seems to be a popular topic |
| 19:39 |
|
sri |
i wanted to play with mongodb anyway |
| 19:50 |
|
|
seb_ joined #mojo |
| 19:54 |
|
|
avkhozov left #mojo |
| 19:55 |
|
|
avkhozov joined #mojo |
| 20:27 |
|
perlrocks |
Twitter: "@kraih: I guess client hacks are so popular because they are one of #mojolicious strengths ... I have not seen something that simple yet ..." --patrick_fraley http://twitter.com/patrick_fra[…]19489585826365440 |
| 20:37 |
|
|
pid joined #mojo |
| 20:40 |
|
perlrocks |
Twitter: "#Mojolicious wiki - a mindmap overview http://bit.ly/hmy0QQ" --perl_twitch http://twitter.com/perl_twitch[…]19492933573017600 |
| 20:40 |
|
perlrocks |
Twitter: "#Mojolicious 1.0 released http://bit.ly/fEZ0iy" --perl_twitch http://twitter.com/perl_twitch[…]19492943698071552 |
| 20:42 |
|
perlrocks |
Twitter: "Anatoly Sharifulin (sharifulin): # Perl. # Mojolicious 1.0 Ð'Ð ¾ Ñ, Ð ° N Ð »ÑƒÑ ‡ Ð ¸ л Ð ¾ Ñ Noe, Ð'Ð ¾ Ð »Ð ³ Ð ¾ Ð ¶ Ð'Ð ° Ð ½ Ð ½ Ð ° N ... http://bit.ly/gS8GJ5" (id) --perl_twitch http://twitter.com/perl_twitch[…]19493428991627264 |
| 20:42 |
|
perlrocks |
Twitter: "Ulrich Habel (rhaen): #Mojolicious wiki - a mindmap overview http://bit.ly/hmy0QQ" --perl_twitch http://twitter.com/perl_twitch[…]19493439703883776 |
| 20:42 |
|
perlrocks |
Twitter: "Sebastian Riedel (sri): # Mojolicious 1.0 released http://bit.ly/fEZ0iy" (ms) --perl_twitch http://twitter.com/perl_twitch[…]19493451087216640 |
| 20:48 |
|
|
spleenjack joined #mojo |
| 20:55 |
|
sri |
oooh |
| 20:55 |
|
sri |
twitter has a secret oauth2 api |
| 20:55 |
|
sri |
that should be a fun blog topic |
| 21:03 |
|
|
pid left #mojo |
| 21:10 |
|
sri |
marcus: you can actually use the same oauth2 redirect flow for facebook and twitter :) |
| 21:11 |
|
moritz |
if it's the same API, I would certainly hope so |
| 21:12 |
|
sri |
https://oauth.twitter.com/2/authorize |
| 21:13 |
|
sri |
the magic gate |
| 21:13 |
|
sri |
it's not public yet, but used by their @anywhere |
| 21:17 |
|
marcus |
Sri: sweet |
| 21:20 |
|
marcus |
Wow, the graph api is super simple to use. |
| 21:20 |
|
marcus |
Facebook++ |
| 21:21 |
|
sri |
blog it! :) |
| 21:25 |
|
|
marty joined #mojo |
| 21:25 |
|
marcus |
I will. Just have to write a simple plugin first. |
| 21:25 |
|
marcus |
For oauth2 that is. |
| 21:45 |
|
sri |
looking forward to it |
| 21:55 |
|
spleenjack |
sri: "https://oauth.twitter.com/2/authorize" - wow, thanks! just at the right time |
| 21:56 |
|
sri |
:) |
| 21:56 |
|
sri |
it might not be complete though, at least they keep warning about it |
| 22:17 |
|
|
ispy_ joined #mojo |
| 22:18 |
|
|
ispy_ left #mojo |
| 22:18 |
|
|
ispy_ joined #mojo |
| 22:25 |
|
marcus |
Sri: seems mojo::client just returns an empty 200 if you try https stuff without the right module? |
| 22:25 |
|
marcus |
Would maybe be nice if it warned or something? |
| 22:25 |
|
sri |
actually i don't know |
| 22:26 |
|
sri |
sure |
| 22:26 |
|
sri |
can also be tested with BEGIN { $ENV{MOJO_NO_TLS} = 1 } or so |
| 22:27 |
|
marcus |
I got an access_token now \o/ |
| 22:27 |
|
sri |
\o/ |
| 22:30 |
|
marcus |
http://pastie.textmate.org/pri[…]gcccj96shvp8ewr7w # not sure if it's even worth doing a plugin |
| 22:30 |
|
marcus |
it's so little work, it's almost just configuration |
| 22:31 |
|
sri |
you could bundle configurations for facebook and twitter :) |
| 22:31 |
|
marcus |
mm |
| 22:31 |
|
|
arpadszasz joined #mojo |
| 22:32 |
|
sri |
and you can abstract away an async get |
| 22:32 |
|
sri |
oauth2 looks really neat though |
| 22:33 |
|
arpadszasz |
hello |
| 22:34 |
|
* sri |
waves |
| 22:34 |
|
arpadszasz |
for those interested i patched MojoX::Renderer::TT to work with Mojolicious 1.0 |
| 22:34 |
|
sri |
\o/ |
| 22:34 |
|
marcus |
sub fb_login { shift->authorize(provider=>'facebook', secret=>foo',key=>'bar); } |
| 22:34 |
|
arpadszasz |
it's at https://github.com/arpadszasz/mojox-renderer-tt |
| 22:35 |
|
marcus |
send ask a pull request? |
| 22:35 |
|
sri |
arpadszasz: make sure to send a pull request to ask |
| 22:35 |
|
marcus |
woot |
| 22:35 |
|
arpadszasz |
i will |
| 22:35 |
|
arpadszasz |
please test |
| 22:36 |
|
sri |
fix looks good |
| 22:36 |
|
sri |
you even changed the new deprecated attribute already |
| 22:36 |
|
sri |
arpadszasz++ |
| 22:37 |
|
arpadszasz |
unfortunately make test doesn't work, it fails some tests in abh's git repo :( |
| 22:37 |
|
sri |
hmm |
| 22:37 |
|
arpadszasz |
sri++ for releasing Mojolicious 1.0 :) |
| 22:37 |
|
sri |
actually, you could go further |
| 22:37 |
|
arpadszasz |
i will |
| 22:37 |
|
sri |
and remove the whole h.* stuff |
| 22:38 |
|
sri |
since c.* is equal now |
| 22:38 |
|
arpadszasz |
hm |
| 22:38 |
|
arpadszasz |
didn't thought about that |
| 22:38 |
|
sri |
or just initialize h with c |
| 22:38 |
|
sri |
s/or/and/ |
| 22:38 |
|
sri |
for the deprecation period |
| 22:39 |
|
arpadszasz |
sri: i will write that in my todo list for that module |
| 22:39 |
|
sri |
\o/ |
| 22:39 |
|
arpadszasz |
sri, marcus: thanks for the feedback |
| 22:40 |
|
|
kvorg left #mojo |
| 22:41 |
|
|
MojoGuest291 joined #mojo |
| 22:41 |
|
MojoGuest291 |
From: http://www.google.com.ar/searc[…]aql=&oq=&gs_rfai= (1 hits) |
| 22:41 |
|
MojoGuest291 |
aloja |
| 22:42 |
|
MojoGuest291 |
there is something here ? |
| 22:42 |
|
sri |
nope |
| 22:42 |
|
marcus |
nobody here but us chickens |
| 22:42 |
|
sri |
these are not the droids you're looking for |
| 22:43 |
|
MojoGuest291 |
:) |
| 22:43 |
|
|
alnewkirk left #mojo |
| 22:43 |
|
MojoGuest291 |
this chat implement sencha web sockets ? |
| 22:44 |
|
MojoGuest291 |
or use RPC Ajax ? |
| 22:44 |
|
marcus |
just normal html5 web sockets =) |
| 22:45 |
|
MojoGuest291 |
amazing !! |
| 22:45 |
|
marcus |
yeah, IRC is pretty great... |
| 22:45 |
|
marcus |
;-) |
| 22:46 |
|
arpadszasz |
sent pull request to ask |
| 22:47 |
|
marcus |
arpadszasz++ |
| 22:49 |
|
perlrocks |
Twitter: "My first open-source contribution, fixing a compatibility issue with MojoX::Renderer::TT. Great feedback from the #mojolicious guys. :D" --arpadszasz http://twitter.com/arpadszasz/[…]19525233874571264 |
| 22:49 |
|
sri |
\o/ |
| 22:50 |
|
* marcus |
pops open a hobgoblin to celebrate |
| 22:54 |
|
arpadszasz |
any of you tried App-Staticperl-0.92 |
| 22:54 |
|
|
MojoGuest291 left #mojo |
| 22:55 |
|
arpadszasz |
with it i managed to compile a Mojolicious app to a Linux binary |
| 22:55 |
|
marcus |
arpadszasz: what did that give you? |
| 22:56 |
|
arpadszasz |
file mojolitetest -> mojolitetest: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped |
| 22:58 |
|
arpadszasz |
i think it replaces PAR::Packer for distributing apps |
| 22:59 |
|
arpadszasz |
might be useful for zero install, perl interpreter included type scenarios |
| 23:06 |
|
|
MojoGuest49 joined #mojo |
| 23:10 |
|
sri |
interesting |
| 23:10 |
|
|
MojoGuest49 left #mojo |
| 23:10 |
|
sri |
perl is installed pretty much everywhere though :) |
| 23:12 |
|
arpadszasz |
sri: but not all users can be bothered to install CPAN modules |
| 23:12 |
|
sri |
thats true, how well does it work for xs modules like DBI? |
| 23:13 |
|
arpadszasz |
i only tried it with some simple apps using Mojolicious, WWW::Mechanize or Moose |
| 23:13 |
|
sri |
ah |
| 23:13 |
|
arpadszasz |
no DBI |
| 23:13 |
|
sri |
moose uses xs too though |
| 23:13 |
|
* marcus |
discovers that the HAML renderer creates a Text::HAML object for each template and caches it. |
| 23:13 |
|
* marcus |
wonders what vti was thinking |
| 23:14 |
|
arpadszasz |
would be nice to have a "mojo generate binary" command :) |
| 23:14 |
|
sri |
marcus: actually, we do that too for Mojo::Template |
| 23:14 |
|
marcus |
sri: guess that explains what he was thinking |
| 23:14 |
|
garu |
marcus: are you fixing Text::Haml?? |
| 23:14 |
|
sri |
with a queuelimit of 100 or so |
| 23:14 |
|
marcus |
garu: is it broken? |
| 23:15 |
|
garu |
marcus: I think so, yeah |
| 23:15 |
|
garu |
just a minute |
| 23:15 |
|
marcus |
I'm currently trying to make the renderer allow me to turn off escape_html |
| 23:15 |
|
sri |
marcus: not like you have a gazillion templates |
| 23:16 |
|
marcus |
sri: iusethis has 231 templates. |
| 23:16 |
|
sri |
haha |
| 23:17 |
|
sri |
that does sound a bit excessive |
| 23:17 |
|
marcus |
I bet there are much bigger apps out there |
| 23:17 |
|
marcus |
how many templates do you think facebook has? :) |
| 23:18 |
|
sri |
facebook can afford the memory bars |
| 23:18 |
|
marcus |
true |
| 23:19 |
|
sri |
you might want to copy the cache limit from epl_renderer though |
| 23:20 |
|
sri |
it's very naive (patches welcome!) |
| 23:23 |
|
sri |
oh, let me check something else |
| 23:23 |
|
sri |
he might have cargo culted a leak |
| 23:26 |
|
marcus |
sri: do sub build have a special meaning for renderers? |
| 23:26 |
|
sri |
nope |
| 23:27 |
|
marcus |
I see it's used in Mojo::Template |
| 23:27 |
|
sri |
just a convention we came up with because new seemed wrong |
| 23:27 |
|
marcus |
not sure what good it does in the HamlRenderer tho |
| 23:27 |
|
marcus |
sri: Moose uses sub BUILD to let you do stuff after new without having to call super |
| 23:27 |
|
sri |
btw. no cargo cult leak |
| 23:28 |
|
sri |
i know, same as perl6 |
| 23:28 |
|
sri |
think ask came up with it for the tt renderer |
| 23:29 |
|
sri |
back when you had to manually register them |
| 23:29 |
|
sri |
app->renderer->add_handler(tt => MojoX::Renderer::TT->build ); |
| 23:29 |
|
sri |
build because they return a coderef |
| 23:29 |
|
sri |
no object |
| 23:30 |
|
marcus |
I see |
| 23:34 |
|
garu |
marcus: it doesn't like hashrefs very much |
| 23:34 |
|
marcus |
garu: Ah. I noticed that too. At least inside #{} blocks |
| 23:34 |
|
marcus |
h1= $name->{foo} worked fine |
| 23:35 |
|
* marcus |
thinks he can see why that would be a problem.... |
| 23:39 |
|
garu |
yup |
| 23:40 |
|
garu |
also, isn't the dot notation part of Haml? |
| 23:40 |
|
marcus |
more part of ruby |
| 23:40 |
|
sri |
Lua is such a pretty language |
| 23:41 |
|
sri |
http://tir.mongrel2.org/home # looks great in templates too |
| 23:41 |
|
|
arpadszasz left #mojo |
| 23:41 |
|
sri |
local and function kinda ruin the picture though |
| 23:43 |
|
garu |
sri: it was developed here in Rio :P |
| 23:43 |
|
sri |
garu: you mentioned before :) |
| 23:43 |
|
garu |
hehe |
| 23:44 |
|
* garu |
is proud of that |
| 23:44 |
|
sri |
make sure to slap the guy who added local! |
| 23:44 |
|
garu |
so much crap coming from rio |
| 23:45 |
|
marcus |
I like lua |
| 23:45 |
|
* sri |
can only think of good stuff coming from rio |
| 23:45 |
|
garu |
sri: how would you do it? make it lexical to the block? |
| 23:45 |
|
sri |
yea, default to local |
| 23:46 |
|
marcus |
same problem javascript has |
| 23:46 |
|
sri |
maybe add a "global" keyword |
| 23:46 |
|
garu |
yeah |
| 23:46 |
|
sri |
right, but javascript has many more problems :) |
| 23:46 |
|
garu |
what can I say... unfortunately, the dude who invented it is not really someone to see the big picture |
| 23:47 |
|
garu |
s/to see/that sees/ |
| 23:47 |
|
sri |
Lua is pretty close to perfection though |
| 23:48 |
|
garu |
yeah... simplicity goes a long way |
| 23:49 |
|
marcus |
sri: restarter seems to restart a bit too much for some reason |
| 23:49 |
|
|
spleenjack left #mojo |
| 23:49 |
|
sri |
it has to i'm afraid |
| 23:49 |
|
sri |
to recover from more serious bugs |
| 23:49 |
|
marcus |
if I run with --reload, I see Reading config file more than once for a web request |
| 23:49 |
|
sri |
static files? |
| 23:50 |
|
marcus |
yeah |
| 23:50 |
|
sri |
intentional |
| 23:50 |
|
sri |
i have not found a better way to recover from syntax errors |
| 23:50 |
|
marcus |
ok |
| 23:50 |
|
sri |
upside is you notice memory leaks quickly :) |
| 23:51 |
|
sri |
downside it leaks anyway |
| 23:51 |
|
sri |
but feel free to improve |
| 23:52 |
|
sri |
syntax errors in myapp.pl are the hardest to catch |
| 23:52 |
|
sri |
took me quite some time to figure out a way to recover from those |
| 23:53 |
|
sri |
https://github.com/kraih/mojo/[…]ojo/Loader.pm#L63 |