Camelia, the Perl 6 bug

IRC log for #mojo, 2010-11-27

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

All times shown according to UTC.

Time Nick Message
00:09 spleenjack left #mojo
04:04 tholen42 joined #mojo
04:06 tl left #mojo
04:27 Alias joined #mojo
04:31 su-bzero joined #mojo
04:31 su-bzero_ left #mojo
06:55 tempire left #mojo
06:56 tempire joined #mojo
06:57 tempire left #mojo
06:58 tempire joined #mojo
07:26 MojoGuest562 joined #mojo
07:26 MojoGuest562 From: http://www.google.com/search?aq=0&a​mp;oq=html5+ir&sourceid=chrome&​amp;ie=UTF-8&q=html5+irc+client (1 hits)
07:27 MojoGuest562 left #mojo
07:27 MojoGuest58 joined #mojo
07:27 MojoGuest58 From: http://www.google.com/search?aq=0&a​mp;oq=html5+ir&sourceid=chrome&​amp;ie=UTF-8&q=html5+irc+client (2 hits)
07:27 MojoGuest58 left #mojo
07:29 MojoGuest72 joined #mojo
07:29 MojoGuest72 From: http://www.google.com/search?aq=0&a​mp;oq=html5+ir&sourceid=chrome&​amp;ie=UTF-8&q=html5+irc+client (3 hits)
07:29 MojoGuest72 left #mojo
07:46 mmcleric joined #mojo
07:48 mmcleric- left #mojo
07:51 tholen42 left #mojo
08:04 tholen42 joined #mojo
08:14 kaare joined #mojo
08:22 arpadszasz joined #mojo
08:27 perlrocks Twitter: "By the way, implemented Mojolicious:: Lite + Net:: Twitter:: Lite in about 300 lines, including HTML." (ja) --nekoruri http://twitter.com/nekorur​i/status/8436792986439680
09:07 arpadszasz left #mojo
09:23 garu sri: the new mojolicious is hanging during a test here :/
09:24 garu t/mojolicious/websocket_lite_app.t to be precise, hangs right after "ok 4 - right result"
09:29 sri garu: cpan release?
09:29 sri platform?
09:30 sri it doesn't hang here, so it's pretty much impossible to debug :/
09:31 marcus moin
09:31 sri moo
09:33 perlrocks Twitter: "Mojolicious moved!" (ja) --hoyo1111 http://twitter.com/hoyo111​1/status/8453255524786176
09:39 marcus oi, you moved?
09:39 marcus ;)
09:39 sri garu: ran the test 50 times now, all pass flawless
09:39 marcus <3 (ja)
09:39 garu sri: let me give you more info
09:39 sri IT'S ALIVE!
09:40 marcus I think maybe I will try zsh
09:43 marcus aka procrastinating.
09:43 garu sri: yes, cpan version (0.999941)
09:44 sri garu: does it hang all the time or randomly?
09:44 garu This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi
09:44 garu all the time, only on that test
09:44 sri interesting
09:44 sri please try github master
09:44 garu k, just a sec
09:45 sri it has to be something platform specific
09:48 crab marcus: i love zsh
09:48 marcus crab: I like the way the tab complete works
09:49 crab **/*(.) alone is worth switching to zsh for
09:51 garu sri: http://pastebin.com/5czsnsC8
09:52 sri garu: github master?
09:52 garu yup
09:52 sri hmm, makes no sense to me :S
09:52 garu (it's the same behavior I get with cpan release btw)
09:54 sri "# WebSocket /socket (using an already prepared socket)" seems to be the test
09:54 marcus With an ssh-agent running, type 'scp otherhost:fo<tab>' and zsh will ssh to the other system and autocomplete on the files available on that host.
09:54 marcus that is pretty sexy
09:54 sri garu: oooh, debian?
09:54 garu sri: kubuntu 10.10
09:55 sri ipv6 enabled?
09:55 garu hmmm dunno
09:55 sri possibly without ipv4 fallback?
09:55 sri that used to be a common debian problem at some point
09:57 GitHub141 joined #mojo
09:57 GitHub141 mojo: master Sebastian Riedel * 02ee14b (3 files in 3 dirs): fixed a small test glitch on some Linux distributions - http://bit.ly/gkQk3E
09:57 GitHub141 left #mojo
09:57 sri garu: that might have fixed it
09:57 * garu checks
09:58 garu hehehe
09:58 sri it would mean your kubuntu is a little borked
09:58 garu it now hangs on test 1
09:59 sri Oo
09:59 garu oh wait
10:00 garu hmm
10:00 garu make test hangs on 1/29
10:00 garu but when I prove it, it stops on that test again
10:01 sri weird
10:04 GitHub140 joined #mojo
10:04 GitHub140 mojo: master Sebastian Riedel * 5b51b84 (1 files in 1 dirs): another try - http://bit.ly/dEsqPd
10:04 GitHub140 left #mojo
10:04 sri garu: last try
10:05 garu no dice :(
10:06 sri very weird
10:06 garu I even did a make realclean on this one to be sure
10:07 garu I'll see if I can add some trace messages in that test
10:07 sri can you add a few warns and see where exactly it blocks?
10:07 sri maybe also set MOJO_IOLOOP_DEBUG=1?
10:07 garu absolutely, doing it right now
10:07 garu oh, cool
10:08 garu didn't know about that one :)
10:12 garu ok, pasting
10:17 garu sri: http://pastebin.com/QyKCWA4h
10:17 garu hopefully this will shed more light to the matter :)
10:18 sri hmm
10:20 sri oh damn
10:20 sri that test depends on working dns
10:21 garu (dns seems to be working here, just fyi)
10:21 garu I mean, I can resolve websites :)
10:22 sri then the dns lookup wouldn't timeout ;p
10:22 garu well, connection *is* sucky :P
10:22 sri maybe your wlan router is a bit quirky regarding non existing domains
10:23 garu could be it, I'm at a hostel in japan, with a very ill-tempered wifi hotspot
10:24 GitHub83 joined #mojo
10:24 GitHub83 mojo: master Sebastian Riedel * 0bf6762 (2 files in 2 dirs): another try - http://bit.ly/etiaOF
10:24 GitHub83 left #mojo
10:24 sri ok, that should fix it
10:25 garu All tests successful.
10:25 garu sri++
10:25 sri :D
10:25 sri thanks for testing
10:26 garu thaks for being so patient :)
10:26 * garu make installs from github
10:27 sri use the oneliner luke
10:27 sri curl -L cpanmin.us | perl - http://latest.mojolicio.us
10:27 sri will install github master
11:05 und3f[A] is now known as und3f
11:26 GitHub26 joined #mojo
11:26 GitHub26 mojo: master Sebastian Riedel * 5f44807 (1 files in 1 dirs): cleanup - http://bit.ly/efeZiX
11:26 GitHub26 left #mojo
12:09 yko joined #mojo
12:16 garu sri: cool! I had no idea about latest.mojolicio.us :)
12:20 perlrocks Twitter: "You can also yo @ Cside_ mojolicious." (ja) --hisaichi5518 http://twitter.com/hisaichi5​518/status/8495313996226560
12:28 crab sri: what actually happens when i run plackup ./my_mojo_app.pl? how can i write a plack thingy to wrap my mojo app in some plack middleware?
12:30 sri crab: do you know how plackup works?
12:31 sri well, if you do then "my $app = app->start;" is all the information you need
12:32 crab i was going to say no, but i guess that's wrong, because my $app = app->start does tell me what i need :-)
12:32 crab thanks
12:48 MojoGuest7 joined #mojo
12:48 MojoGuest7 From: http://news.ycombinator.com/item?id=1277067 (66 hits)
12:48 MojoGuest7 left #mojo
12:48 MojoGuest70 joined #mojo
12:48 MojoGuest70 From: http://twitter.com/justinv​incent/status/12550383961 (4 hits)
12:48 MojoGuest70 left #mojo
12:51 ysyrota joined #mojo
12:52 mmcleric left #mojo
13:22 mmcleric joined #mojo
13:53 sri crab: make sure to add a recipe to the wiki once you get it working
13:58 jdixon joined #mojo
13:58 jdixon howdy
13:59 * sri waves
13:59 jdixon how can I extract HTTP headers in Lite?
13:59 sri $self->req->headers
14:00 jdixon $self->req->headers->{'X-Specific-Header'} ?
14:00 sri it's an object, see the pod
14:00 jdixon ok
14:02 jdixon thanks
14:08 perlrocks Twitter: "Na Mojolicious The name is a common understanding." (ja) --kentaro http://twitter.com/kentaro/status/8522510106628096
14:30 gabiruh left #mojo
14:31 crab sri: where?
14:31 sri crab: https://github.com/kraih/mojo/wiki
14:31 sri you really don't know our wiki? :S
14:31 crab also all i did was to say my $app = Mojolicious::Commands->start; and builder { ...; $app };
14:31 crab no, i meant where on the wiki
14:31 sri ah :)
14:31 sri just make a new page
14:32 sri like the poe recipe
14:32 sri Mojolicious and Plack Middleware or so
14:35 janus joined #mojo
14:46 yko left #mojo
14:53 gabiruh joined #mojo
15:13 toebu joined #mojo
15:35 toebu good evening
15:38 * sri waves
15:38 toebu I am in the process of writing my first mojolicious app ... and am fighting with a routing problem ... I wold like my app to staticly deliver public/index.hml when someone accesses / ...
15:39 sri lite or normal mojolicious?
15:39 toebu is there some way to rewrite the request so that it gets picked up by $self->static ?
15:39 toebu normal
15:40 sri $r->get('/' => sub { shift->render_static('index.html') }); or similar
15:40 toebu oh ... lite withing normal ?
15:40 sri ye :)
15:40 sri it's the new hybrid syntax
15:41 toebu just trying it
15:42 toebu hmm it is a bit more complex ... my index.html is actually  public/source/index.html
15:42 sri $r->get('/' => sub { shift->render_static('sources/index.html') });
15:42 toebu if I do a render_static('source/index.html') the other paths will not work
15:42 sri no big deal
15:43 toebu the other static bits refered to from index.html are relative to index.html
15:43 sri thats a html problem
15:43 toebu can I send a redirect
15:44 toebu nod
15:44 sri of course you can
15:44 toebu grin
15:44 sri $r->get('/' => sub { shift->redirect_to('/sources/index.html') });
15:45 sri whatever http allows you can do ;)
15:45 toebu splendid
15:45 sri for some things you might have to work with $self->res->* but everything is possible
15:45 toebu it works ... the thing I am doing is www.remocular.org
15:46 toebu the app is already done but I am curently porting it over to mojolicious
15:47 toebu while the greate master is here :-) let me as another question ...
15:47 sri hope it's fun, let me know if you hit any roadblocks
15:48 toebu until now I have been using a system where I keep sessions on the server ...
15:48 toebu I see that out of the box mojo has sessions in signed cookies
15:48 sri right
15:49 toebu my app is actually a ajaxish beast which does potentially concurrent ajax calls
15:49 toebu or overlapping for that matter
15:49 toebu so race condidions with session data are quite possible
15:50 sri sounds like you might be storing too much data in the session
15:50 sri usually i only store a username and possibly a flash message for redirects
15:50 sri everything else goes to the real model layer
15:50 toebu and the rest in a database
15:50 sri ye
15:52 toebu the thing is that my tool is only using slightly more data ... maybe 200 bytes per session or so and I would rather not add another dependency hence my own session implementation which does locking and all
15:52 sri use your own then
15:53 toebu :-)
15:53 sri we just provide a sensible default :)
15:53 sri it's the same for most building blocks, sensible default but rather easy to replace
15:54 toebu yes , very nice design
15:54 toebu so the 'right' thing for me would be to modle an interface after Mojolicious::Session ?
15:55 toebu and then asign an instance to $self->session in my application module ?
15:55 sri you could do that yes
15:55 toebu or ?
15:55 sri or keep it separate entirely and call it something else
15:56 toebu yes ... I am trying to tie into mojo as closely as possible where I can figure out how it works :-)
16:00 toebu sebastian thanks very much for the help and for writing mojo ... back to coding ...
16:06 toebu left #mojo
16:07 toebu joined #mojo
16:15 MojoGuest68 joined #mojo
16:15 MojoGuest68 From: http://www.google.com/url?sa=D&amp​;q=http://dev.xantus.org/&amp;usg=​AFQjCNGH55p8BdfXGwghZYML7MheNxPx1Q (1 hits)
16:15 MojoGuest68 is now known as yko
16:15 yko chrome 7 works?
16:15 yko ok...
16:18 und3f is now known as und3f[A]
16:19 MojoGuest917 joined #mojo
16:19 MojoGuest917 yea, weird
16:19 MojoGuest917 left #mojo
16:20 sri xantus: chrome 7 doesn't trigger the glitch
16:20 sri just safari
16:20 sri neither does webkit nightly
16:22 sri http://www.imdb.com/video/imdb/vi2069535001 # trailer looks really good
16:23 sri maybe finally a good alien invasion movie again
16:24 jamesw at least it isn't skyline
16:24 sri yea, skyline was awful
16:26 sri the whole brain harvesting story wasn't too bad, but they turned it into garbage
16:40 yko left #mojo
16:40 viking-3 joined #mojo
16:41 dhg joined #mojo
16:43 viking-3 hi! i have a question about routes, i want a mojolicious app respond to a specific location, ie. /test, i've set up nginx to proxy pass location /test to the mojolicious standalone server, but i can't seem to be able to make the routes work., ie. /test/something, i have a controller like App::Test::Something but the one used is the default route that wraps on the standard Example controller
16:44 viking-3 the route matches /something in this case
16:45 ysyrota left #mojo
16:45 viking-3 like this: $r->route('/something')->to('something#index');
16:47 viking-3 what am i missing?
16:50 sri viking-3: take a look at the raw http message
16:52 viking-3 uhm... in the logs i always see GET /
16:52 sri not logs
16:52 viking-3 no matter what i add after /test
16:52 sri raw message
16:52 viking-3 ok
16:52 sri then you will likely see that it is a nginx config issue
16:54 viking-3 i expected location / and location /test to behave in the same way with mojolicious6
16:55 sri well, you are very hard to understand, so i'm just guessing what you mean
16:55 sri but my point stands, you need to first make sure nginx sends the right request
16:58 crab done
16:58 crab (wiki page about plack middleware)
16:58 sri crab++
16:58 crab not that there's much to it
16:59 sri crab: which middleware did you want to use?
17:00 crab sri: Deflater. in this case, it was more curiosity than anything, because i can do the deflate thing in my frontend apache too.
17:01 sri yea, that stuff is usually better done in nginx/apache
17:03 viking-3 sri: what you mean with raw http message? where?
17:03 sri viking-3: whatever you use to observe raw http, ngrep or so
17:04 sri or wireshark
17:06 sri print $self->req->to_string might also work, but you are generally better off learning ngrep/wireshark
17:09 crab i wonder if i can get my apache to serve static files without hitting plack/mojo at all
17:10 sri crab: i prefer to let the reverse proxy cache static files
17:12 crab i don't have a reverse proxy.
17:12 crab but if i have to worry about serving static files, maybe i should. which means i don't really need to worry about serving static files.
17:12 crab voila! problem solved without a line of code written!
17:25 MojoGuest22 joined #mojo
17:25 MojoGuest22 From: http://www.google.com/url?sa=D&amp​;q=http://dev.xantus.org/&amp;usg=​AFQjCNGH55p8BdfXGwghZYML7MheNxPx1Q (2 hits)
17:26 MojoGuest393 joined #mojo
17:26 MojoGuest393 From: http://www.google.com/url?sa=D&amp​;q=http://dev.xantus.org/&amp;usg=​AFQjCNGH55p8BdfXGwghZYML7MheNxPx1Q (3 hits)
17:31 MojoGuest22 left #mojo
18:54 dhg left #mojo
19:01 su-bzero left #mojo
19:16 MojoGuest393 is now known as yko
19:47 yko left #mojo
19:48 MojoGuest72 joined #mojo
19:48 MojoGuest72 is now known as yko
19:58 MojoGuest948 joined #mojo
19:58 MojoGuest948 From: http://news.ycombinator.com/item?id=1277067 (67 hits)
19:59 MojoGuest948 left #mojo
20:06 yko left #mojo
20:07 rhaen left #mojo
20:08 rhaen joined #mojo
20:08 rhaen hello world!
20:20 kvorg left #mojo
20:20 * sri waves
20:28 rhaen hi hi :)
20:36 rhaen I "refactored" the ORLite example in the wiki to use tag helpers
20:36 rhaen as we have them - we should show how to use them :)
20:41 perlite_ joined #mojo
20:44 marcus left #mojo
20:44 perlite left #mojo
20:45 perlite_ is now known as perlite
20:45 sri indeed
21:29 MojoGuest842 joined #mojo
21:29 MojoGuest842 is now known as yko
21:34 yko left #mojo
21:48 Kulag left #mojo
21:48 Kulag joined #mojo
21:57 und3f[A] is now known as und3f
23:14 kaare left #mojo
23:27 viking-3 left #mojo
23:31 kvorg joined #mojo
23:33 sri think i have the hot deployment part of hypnotoad finished now :D
23:33 sri it basically "just works" finally
23:34 MojoGuest315 joined #mojo
23:34 MojoGuest315 From: http://www.google.com/url?sa=t&amp;source=we​b&amp;cd=4&amp;ved=0CCUQFjAD&amp;url=http%3A​%2F%2Fdev.xantus.org%2F&amp;rct=j&amp;q=webs​ocket%20demo&amp;ei=UZXxTPrNIMSt8AbKreWDDA&a​mp;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (1 hits)
23:35 MojoGuest315 left #mojo
23:37 sri decided to go with a configurable hard timeout for all connections, no special cases for websockets
23:40 robinsmidsrod left #mojo
23:42 robinsmidsrod joined #mojo
23:44 robinsmidsrod left #mojo
23:46 robinsmidsrod joined #mojo

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