Camelia, the Perl 6 bug

IRC log for #mojo, 2011-02-22

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:00 tempire close
00:00 tempire ->res->code isn't available for the exception template, though
00:01 tempire I need to append a <script> tag to any generated page, including an exception.  currently, it's appending content to prettify.js as well.
00:32 tempire ah.  checking $self->stash('mojo.static') does the job
00:52 perlrocks Twitter: "Mojolicious-Plugin-ConsoleLogger 0.01 by TEMPIRE - http://frepan.org/~tempire/Mojoli​cious-Plugin-ConsoleLogger-0.01/" --cpan_new http://twitter.com/cpan_ne​w/status/39850102604574720
00:55 julien if I parse a config file using my $conf = plugin 'json_config'; I can access it right away in $conf and in app->defaults. But how do I access it from a sub function ?
00:58 tempire julien: The app is available within the controller as $self->app
00:58 tempire so $self->app->defaults ...
01:00 ZadYree joined #mojo
01:00 ZadYree Hello
01:00 purl what's up, ZadYree.
01:00 ZadYree =)
01:00 ZadYree I'm fine, you?
01:01 tempire you know what might be neat: MOJO_PLUGIN=whatever perl MyApp daemon
01:01 tempire use case: "MOJO_PLUGIN=console_logger perl MyApp daemon"
01:03 ZadYree I have some questions about using mojo, which may appear very basic but meh... couldn't find the answer on the FAQ
01:03 ZadYree assuming I'll buid my mojo server at /var/www
01:04 ZadYree do I have to create a specific file where I will point my web packages?
01:04 julien tempire: ok but inside the app, the content of app->defaults should be persistent, right ?
01:05 tempire it's persistent throughout the app, yes.
01:05 tempire ZadYree: not sure what you mean
01:05 ZadYree well, I just discovered mojo today, and was used to classic web coding, using pages, etc.
01:05 tempire there's nothing much to running mojo "mojo generate lite_app MyApp; perl MyApp daemon" is all it takes for the simplest example
01:06 ZadYree ah
01:06 ZadYree so
01:06 tempire ZadYree: ah, so this will be your first time using mvc?
01:06 ZadYree yup
01:06 tempire well you're in the right place
01:06 ZadYree aha thanks!
01:06 tempire You might want to start with http://mojolicio.us/perldoc?Mojolicious/Lite
01:07 ZadYree thanks!
01:07 tempire That will explain the basics of mojolicious
01:07 tempire Then move on to http://mojolicio.us/perldoc​?Mojolicious/Guides/Growing, and you'll get an idea of how it all works with mvc
01:08 ZadYree aahh
01:08 ZadYree I see
01:08 ZadYree that look really cool
01:08 tempire it's a lot of information, but it's dead simple.  once you've taken several days to absorb it, you'll be well on your way to mvc mastery with the best of the technical unicorns
01:08 ZadYree thank you so much tempire
01:09 ZadYree yeah I think I get it
01:09 tardisx_ tempire: when will my horn grow?
01:09 tempire tardisx_: when you meet prettier unicorns
01:10 tardisx_ my unicorn wife would disapprove
01:10 tempire maybe it's time to re-read the growing guide ;)
01:13 tardisx_ :-P
01:16 magnus joined #mojo
01:21 jawnsy joined #mojo
01:21 jawnsy hey
01:22 jawnsy any Mojolicious developers around discuss the version numbering scheme Mojolicious wants to use going forward?
01:22 jawnsy I just want to know so we don't have to do weird things like epochs going forward
01:22 jawnsy namely, if we can agree on some number of decimals you want in version numbers
01:23 jawnsy Debian versions work differently than Perl versions, so, e.g. 1.1 < 1.11 (for the current release), which is fine
01:23 jawnsy but if there is a version like 1.2 released, it will be considered < 1.11, which is where stuff gets funny
01:24 jawnsy so in Debian we re-number the package as 1.20 in that case, so it compares > 1.11 for that
01:26 jawnsy so it would be nice to know up front how many decimal places you'd like to use
01:30 crab 666!
01:30 purl I don't like big numbers like that.
01:31 tardisx_ "The framework with more significant digits"
01:36 xris left #mojo
01:41 ZadYree ok, I started the project, but it seems the route won't work, it still prints me "Your Mojo is working!"
01:41 julien I'm really having a hard time understanding the separation between controller and application, and why my parsed configuration file disappears from app->defaults and is nowhere to be found
01:41 julien time to take some rest from the computer and go back to reading stuffs
01:44 julien left #mojo
01:47 ZadYree ah, nuthing
01:52 sigue joined #mojo
02:12 crab Use of uninitialized value $socket in hash element at /usr/local/share/perl/5.10.1/Mojo/IOLoop.pm line 875.
02:12 crab Can't call method "blocking" on an undefined value at /usr/local/share/perl/5.10.1/Mojo/IOLoop.pm line 878.
02:12 crab has anyone seen "./app daemon --reload --listen https://*:3001" die that way?
02:12 crab it seems to happen every once in a while for me.
02:16 * xantus has a significant digit
02:16 * xantus and he wants to share it with you
02:17 crab is it your middle finger?
02:18 xantus :)
02:18 xantus whats up crab
02:23 crab xantus: pretty good, trying to debug some complicated javascript.
02:23 crab how about you? didn't you start a new job recently? how's that going?
02:27 xantus yeah, I'm good
02:27 xantus I'm in seattle now
02:27 xantus took a job doing Java, Android, Perl, Ext JS, etc
02:28 sigue left #mojo
02:28 tempire java!
02:29 xantus Just built a nice little interface with mojo.  Live logging proxy server with an Ext JS browser app
02:29 xantus It works a dev tool, logging traffic for a push server I wrote in Java
02:32 xantus tempire: yeah, its not bad, if done right :-/
02:32 daviddelikat left #mojo
02:33 xantus maybe my logging module would be useful to the community...
02:34 xantus It can handle a 50gb log file and read any X lines you'd like from it in less than a second
02:34 tempire sounds like a winner
02:35 xantus it keeps a positional hint marker file so it can start reading with a single seek
02:35 daviddelikat joined #mojo
02:44 crab sounds neat
03:19 ryanc left #mojo
03:40 ryanc joined #mojo
04:03 tholen42 joined #mojo
04:05 tl left #mojo
05:33 daviddelikat left #mojo
06:13 MojoGuest268 joined #mojo
06:13 MojoGuest268 From: http://news.ycombinator.com/item?id=1277067 (252 hits)
06:14 MojoGuest268 left #mojo
06:19 giwi joined #mojo
06:19 ysyrota joined #mojo
06:26 giwi left #mojo
06:32 giwi joined #mojo
06:35 memememomo_ is now known as memememomo
06:40 memememomo is now known as memememomo_
06:45 koban joined #mojo
06:48 kaare joined #mojo
06:54 koban left #mojo
07:00 jwang joined #mojo
07:06 jwang left #mojo
07:09 jwang joined #mojo
07:15 su-bzero is now known as su-bzero[off]
07:22 tardisx_ left #mojo
07:29 fhelmber_ joined #mojo
07:36 AmeliePoulain joined #mojo
07:53 fhelmber_ left #mojo
07:53 yakudzo left #mojo
07:55 Christian joined #mojo
07:55 Christian morning
07:57 yakudzo joined #mojo
08:20 breaker313 joined #mojo
08:44 marcus left #mojo
08:46 perlrocks Twitter: "@kraih mongodb integration in mojolicious would help with the #mojolicious #heroku ;)" --perlninja http://twitter.com/perlninj​a/status/39969352317014016
08:47 arthas joined #mojo
08:48 koban joined #mojo
09:11 sri jawnsy: just renumber 1.2 to 1.20 in debian
09:11 sri good morning fellow evil super computers btw.
09:24 bc5042 left #mojo
09:36 ok22 joined #mojo
09:48 yko morning
09:50 yko text_field(foo => value => "bar") should be equivalent to text_field(foo => "bar") !
09:50 sri oh interesting, the LWP distribution will be split up into 14 smaller ones
09:50 yko yeah
09:52 sri yko: why would you need that?
09:53 yko if you'd sometimes write sites in mojolicious... probably you'd tired of typing => value => "blah" every time
09:53 yko i believe 75% of all text_fields takes only two parameters: name and value
09:53 sri oh damn, i thought text_field(foo => "bar") was how we do it now -.-
09:53 yko me too
09:53 sri fix it!
09:54 yko not now, but ill write issue for myself and fix in nearest 2 days
09:54 * sri cracks the whip
09:54 yko really damn busy atm (actually - with writing text_field foo =>  value => 'abr' :)
09:55 yko you can not reach me whith your whip while aligator pit's door is closed
09:55 yko and as only youll open it, ill nip the whip off. with arm probably
09:55 * yko is a friendly alligator
09:56 lonerr left #mojo
09:58 sri purl: yko?
09:58 purl yko is op or a friendly alligator or living under the #mojo channel trap door or a grue
09:58 * yko grues
09:58 yko (whatever grue is supposed to do...)
10:00 bc5042 joined #mojo
10:01 sri gonna label the issue as "wishlist"
10:03 yko ok, it's just a public promise to myself
10:03 yko sometimes ideas coming when you are in work process and you can not just drop all and og write patch
10:04 yko from other hand if not write idea immediately it will be forgotten
10:04 yko you may remember fate of few promised test cases... :)
10:04 * yko hides in the dark corner of the pit and grues
10:05 sri having todo issues is not a bad idea
10:05 yko indeed. it's to easy to forget. and if responsible person go away for a while others who are interested can handle it
10:06 yko *too
10:06 sri mybe someone else will even do it for you
10:07 yko damn, i really love short way to test helpers output!
10:07 yko perl -Mojo -e 'print a->text_field(foo => value => "bar")'
10:07 yko it's easy way to understand how things works without building whole app
10:10 perlrocks Twitter: "#mojolicious testing hack of the day: "perl -Mojo -e 'print a->text_field("foo", value => "bar")'" #perl" --kraih http://twitter.com/kraih/status/39990289062035456
10:10 sri yko++
10:14 perlrocks Twitter: "You can actually test all #mojolicious helpers like that. :) "perl -Mojo -e 'print a->dumper({lalala => 23})'" #perl" --kraih http://twitter.com/kraih/status/39991303450140672
10:47 crab now my house is full of my daughter's giggly classmates
10:49 su-bzero[off] is now known as su-bzero
11:01 spleenjack joined #mojo
11:07 perlrocks Twitter: "Gonna try keeping a todo list for #mojolicious on the github issue tracker to make contributing a little easier. http://t.co/zKp1MmH #perl" --kraih http://twitter.com/kraih/status/40004666381176832
11:09 Trelane Can I get mojo to cache SSL handshakes between requests?
11:10 Trelane i.e. I do multiple gets to the same domain over https:// in quick succession...
11:10 sri you mean keepalive?
11:11 sri it should do that automatically
11:11 Trelane hmm.
11:11 * Trelane experiments more
11:11 sri MOJO_CLIENT_DEBUG=1 should tell you details
11:16 gabb left #mojo
11:16 gabb joined #mojo
11:16 Trelane thanks
11:17 Trelane Oh, is there any way to turn of certificate verification?
11:17 breaker313 left #mojo
11:17 perlrocks Twitter: "Feel free to post more wishlist items to the #mojolicious issue tracker and to vote on existing ones. ;) http://t.co/zKp1MmH #perl" --kraih http://twitter.com/kraih/status/40007337280405504
11:17 breaker313 joined #mojo
11:18 sri Trelane: think we are by default as relaxed as possible
11:18 crab no, not keepalive. ssl session caching and fast restart, i think trelane means.
11:18 Trelane crab: indeed
11:19 sri not the slightest idea
11:19 sri shouldn't keepalive be even more effective for the described use case?
11:21 Trelane Hmm.  Mojo::Client seems to be barfing on a self-signed SSL certificate
11:21 sri considering we use those in all tests i would be surprised
11:22 Trelane hmm.
11:26 Trelane exact steps to get Mojo::Client to barf (including setting up a snake oil certificate) https://gist.github.com/2038245f25aa19c70dae
11:27 sri oh, that unknown error comes from openssl
11:27 marcus joined #mojo
11:28 sri or IO::Socket::SSL
11:28 purl hmmm... IO::Socket::SSL is http://www.cpan.org/modules/by-module/IO/ or http://www.cpan.org/modules/by-module/IO/ASPA/ or http://www.cpan.org/authors/id/A/AS/ASPA/ or looking for Net::SSLeay version 1.26 or higher, which I'm a little uncertain about, since 1.25 is the most recent Net::SSLeay I've been able to find
11:32 marcus MURDER
11:33 sri REDRUM
11:33 marcus TOO SMALL TO FAIL
11:33 Trelane Computers continue to hate me.
11:35 sri if there's a way we could be even more liberal by default i'm all ears btw
11:35 ok22 left #mojo
11:35 Christian how can i do a redirect for example with form datas?
11:36 sri you mean like a post?
11:36 Christian yes
11:37 sri all followup requests are get
11:37 sri always
11:37 sri you can only append a query string to the url or store data in a cookie/session
11:38 Christian ok or do all via JSON :)
11:38 Christian thanks
11:41 Trelane sri: I have been wielding the power of google and have yet to find anything useful.  I'll let you know if I do
11:44 sri Trelane: maybe try raw IO::Socket::SSL
11:45 sri and then compare a working test case to our Mojo::IOLoop code
11:45 sri (in case it is not just a broken cert)
11:46 jawnsy sri: thanks! :-)
11:48 Trelane Hmm.  This works:  perl -e 'use IO::Socket::SSL; my $client = IO::Socket::SSL->new( "example.com:https" ); print $client "GET / HTTP/1.0\r\n\r\n"; print <$client>'
12:06 aiglenoir left #mojo
12:06 aiglenoir joined #mojo
12:11 aiglenoir left #mojo
12:11 aiglenoir joined #mojo
12:43 koban left #mojo
12:44 fhelmberger_ joined #mojo
12:47 aiglenoir left #mojo
12:48 aiglenoir joined #mojo
12:48 sri Trelane: that looks about equal to what Mojo::IOLoop does
12:48 sri Trelane: do you have an example in the wild?
12:51 MojoGuest777 joined #mojo
12:51 MojoGuest777 From: http://www.google.co.jp/search?aq=​f&amp;sourceid=chrome&amp;ie=UTF-8​&amp;q=websocket+demo&amp;qscrl=1 (1 hits)
12:51 MojoGuest777 test
12:51 MojoGuest777 left #mojo
12:51 moritz good localtime
12:54 GitHub143 joined #mojo
12:54 GitHub143 mojo: master Sebastian Riedel * eb49a6c (1 files in 1 dirs): do not trust default verify mode - http://bit.ly/fJvZ9o
12:54 GitHub143 left #mojo
12:54 sri Trelane: maybe that helps
12:54 sri my only guess
12:57 * sri waves
13:00 fmerges joined #mojo
13:06 perlrocks Twitter: "Whose using Mojolicious for #Perl web app development? Thoughts? #programming" --szul http://twitter.com/szul/status/40034636276961281
13:13 * yko raises from the darkness
13:14 yko maybe TagHelpers should quote values in tag heleprs?
13:14 yko I have feeling this stuff was discussed, maybe there's reason wy TagHelpers should not?
13:14 yko perl -Mojo -e 'print a->hidden_field(foo => "\"")' is a test case
13:14 * sri is unsure
13:14 yko just discussing
13:14 daviddelikat joined #mojo
13:15 sri maybe they should
13:15 yko well, i can create issue and force few people to go and vote
13:15 yko (and maybe write a patch, hehe)
13:16 sri i think we already escape values from $c->param
13:16 yko that can be a problem
13:16 marcus left #mojo
13:16 sri not really, you remove that and more escaping to the lower level
13:16 yko anyway, ill create issue for later investiogation, if you don't mind
13:16 sri *move
13:17 sri actually i think it should be tried
13:25 * yko hides in the darkness
13:31 daviddelikat1 joined #mojo
13:35 daviddelikat left #mojo
13:39 koban joined #mojo
13:47 sherr left #mojo
13:50 sigue joined #mojo
13:54 fhelmber_ joined #mojo
13:56 * sri cracks the whip
14:00 yakudzo left #mojo
14:03 aiglenoir left #mojo
14:03 aiglenoir joined #mojo
14:05 aiglenoir left #mojo
14:08 aiglenoir joined #mojo
14:09 aiglenoir left #mojo
14:13 aiglenoir joined #mojo
14:13 GitHub31 joined #mojo
14:13 GitHub31 mojo: master Sebastian Riedel * 0001b47 (3 files in 3 dirs): improved tag helper attribute escaping - http://bit.ly/hIvzXu
14:13 GitHub31 left #mojo
14:14 sri yko: i'm sowwy!
14:14 ZadYree Q: When the mojo daemon is launched, if I commited my project, how to 'update' is without switching it off/on ?
14:14 ZadYree update it, sorry
14:14 aiglenoir left #mojo
14:15 sri ZadYree: which daemon?
14:15 purl which daemon is it which allows you to get your kernel at boot from another server?
14:15 sri ZadYree: and for what purpose?
14:15 ZadYree the one Mojolicious::Lite uses
14:15 sri we have two built in
14:15 ZadYree you know, perl myapp daemon
14:16 sri one for development and one for production use
14:16 sri ZadYree: what purpose?
14:16 purl it has been said that purpose is (assuming every channel -must- have a purpose) This channel is for Perl programmers to discuss Perl, and occasionally help new people,  Our poupose is -not- to serve as a substitute for documentation.
14:16 ZadYree indeed
14:16 ZadYree it's not a perl problem, but a mojo program issue
14:17 sri umm
14:17 ZadYree when the daemon (listenning by default on port 3000) needs to update my project
14:17 ZadYree I don't know if there is a way to update my datas without turning it off
14:17 sri ok, i somehow doubt you want zero downtime deployment, so i just assume you didn't read the tutorial
14:18 sri http://mojolicio.us/perldoc​?Mojolicious/Lite#Reloading
14:18 aiglenoir joined #mojo
14:18 ZadYree aha thanks!
14:18 ZadYree and sorry for this noobism :D
14:18 ZadYree though
14:19 ZadYree gotta turn it off to reload it "Socket already used, ..."
14:19 aiglenoir left #mojo
14:19 ZadYree nvm, gotta succeed alone, thanks anyway guyz =)
14:23 aiglenoir joined #mojo
14:27 tardisx left #mojo
14:34 perlrocks Twitter: "Mojolicious-Plugin-ConsoleLogger 0.02 by TEMPIRE - http://frepan.org/~tempire/Mojoli​cious-Plugin-ConsoleLogger-0.02/" --cpan_new http://twitter.com/cpan_ne​w/status/40056726145351680
14:38 giwi left #mojo
14:38 giwi joined #mojo
15:01 giwi left #mojo
15:04 hoelzro joined #mojo
15:05 hoelzro left #mojo
15:09 kaare left #mojo
15:11 AmeliePoulain left #mojo
15:28 alnewkirk left #mojo
15:28 alnewkirk joined #mojo
15:35 koban left #mojo
15:38 dekimsey1 joined #mojo
15:42 dekimsey left #mojo
15:46 dekimsey joined #mojo
15:50 spleenjack left #mojo
15:51 dekimsey1 left #mojo
15:53 ysyrota left #mojo
15:55 spleenjack joined #mojo
16:02 snearch joined #mojo
16:05 daviddelikat joined #mojo
16:06 Alias__ joined #mojo
16:07 daviddelikat1 left #mojo
16:14 mattastrophe joined #mojo
16:16 Christian nive evening to you all
16:16 Christian s/nive/nice/
16:18 Christian left #mojo
16:46 gabb lol @ gadaffi
17:15 breaker313 left #mojo
17:24 fmerges left #mojo
17:26 tholen joined #mojo
17:44 xris joined #mojo
18:11 sri looks like i could bring back ipv6
18:15 sri maybe i should require an env var to enable it
18:15 sri MOJO_IPV6=1 mojo get http://[::1]:3000
18:23 ispy_ left #mojo
18:23 ispy_ joined #mojo
18:31 bellaire joined #mojo
18:38 GitHub59 joined #mojo
18:38 GitHub59 mojo: master Sebastian Riedel * d6f5c01 (42 files in 9 dirs): added experimental IPv6 support - http://bit.ly/fs55l1
18:38 GitHub59 left #mojo
18:38 sri lets see how much breaks these days
18:38 tempire_ joined #mojo
18:39 tempire_ seems like you'd be able to detect it from the ip format
18:39 sri ?
18:40 tempire_ as opposed to using an env var, just detect whether it has colons in the ip
18:40 tempire_ then you know it's ipv6
18:41 sri you make http requests by ip?
18:41 tempire_ doh.  I saw the http:// and assumed you were talking about --listen
18:41 tempire_ nevermind.
18:42 bellaire dns is for the weak
18:42 sri the actual problem is when people don't know they are using ipv6
18:43 perlrocks Twitter: "Added experimental #ipv6 support to #mojolicious again, please help testing! :) http://t.co/msOTvOh #perl" --kraih http://twitter.com/kraih/status/40119531955290112
18:56 stephen joined #mojo
18:58 MojoGuest887 joined #mojo
18:58 MojoGuest887 From: http://www.google.com/search?sourceid=ch​rome&amp;ie=UTF-8&amp;q=websocket+demos (1 hits)
18:58 MojoGuest887 left #mojo
19:01 kaare joined #mojo
19:04 perlrocks Twitter: "#IPv6 repost Added experimental #ipv6 support to #mojolicious again, please help testing! :) http://t.co/msOTvOh... http://bit.ly/gKamZi" --IP_v6 http://twitter.com/IP_v6/status/40124904367984640
19:13 spleenjack left #mojo
19:17 diegok left #mojo
19:17 diegok joined #mojo
19:35 perlrocks Twitter: "#IPv6 repost RT @kraih: Added experimental #ipv6 support to #mojolicious again, please help testing! :) http://t... http://bit.ly/eY8FOm" --IP_v6 http://twitter.com/IP_v6/status/40132618162806785
19:47 * sri wonders why nothing has exploded yet
19:49 arthas left #mojo
19:55 * xantus explodes
20:00 s0va left #mojo
20:00 s0va joined #mojo
20:01 * sri sweeps the pieces into the alligator pit
20:01 y0j_ is now known as y0j
20:03 sherr joined #mojo
20:09 tholen42 left #mojo
20:09 tholen42 joined #mojo
20:21 fhelmber_ left #mojo
20:24 s0va left #mojo
20:24 s0va joined #mojo
20:44 snearch left #mojo
20:55 hoelzro joined #mojo
21:36 tardisx joined #mojo
21:36 perlrocks Twitter: "Seeing people use #mojolicious to learn #perl makes me very happy and wish i was better at writing beginner friendly documentation." --kraih http://twitter.com/kraih/status/40162967131660288
21:45 garu sri: where was that?
21:45 sri garu: what?
21:46 garu "people use mojolicious to learn perl"
21:46 sri you should keep an eye on this channel and the mailing list :)
21:46 garu I'm asking because I really think it's easy for newcomers, which is why I taught mojolicious instead of catalyst during the undergrad summer course :)
21:46 sri we have a few people here starting or relearning perl
21:47 garu and they loved it
21:47 sri \o/
21:47 garu (specially the 404 pages, that yielded out a lot of giggles)
21:48 garu it was also nice when I talked about web crawlers, pasted a simple example in WWW::Mechanize, then a complex one in Mojo::Client
21:48 sri we still need a rainbow vomiting unicorn for the production 500 page though -.-
21:48 garu and it turned out the Mojo one was not only way smaller, but also way more readable
21:49 tardisx left #mojo
21:49 sri garu: that kind of feedback is extremely motivating, thanks :)
21:50 cstamas left #mojo
21:50 cstamas joined #mojo
21:51 garu sri++ # Mojo::Client + Mojo::DOM
21:51 garu they really loved it
21:58 bellaire left #mojo
22:01 tholen left #mojo
22:24 chansen left #mojo
22:25 chansen joined #mojo
22:53 kaare left #mojo
23:31 tardisx joined #mojo
23:57 hoelzro left #mojo

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary