Camelia, the Perl 6 bug

IRC log for #mojo, 2010-08-31

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

All times shown according to UTC.

Time Nick Message
00:00 sri ye, i would go for a perlish solution if there was one
00:00 sri but since there is none pretty is good enough for me :)
00:08 fod joined #mojo
00:20 diegok if I put $self->flash( xx => 'lalala' ), I'll have flash->{xx} on the next request (after redirect_to) .ep on <% flash->{xx} %> ?
00:34 diegok I'm always getting flash = {}...
00:35 diegok but I can see the value on session->{old_flash}{xx}
00:46 sri diegok: <%= flash 'xx' %>
00:46 * tempire loves pretty things
00:47 sri hash access is set only
00:48 diegok so, I can check to have a value with ----> % if ( flash 'xx' ) {
00:49 sri left #mojo
00:49 sri joined #mojo
00:50 diegok thank you ;)
00:52 sri flash is special, because old values come from a different hash
00:52 lee7 left #mojo
00:52 lee7 joined #mojo
00:56 perlrocks left #mojo
00:57 perlrocks joined #mojo
00:58 perlrocks left #mojo
00:58 perlrocks joined #mojo
01:39 plu left #mojo
01:39 plu joined #mojo
01:54 awnstudio left #mojo
01:58 sri http://www.swarmation.com/ # damn, this is brilliant
02:27 MojoGuest16 joined #mojo
02:27 MojoGuest16 From: http://www.google.com/url?sa=t&amp;source=web&amp;​cd=1&amp;ved=0CBkQFjAA&amp;url=http%3A%2F%2Fdev.xa​ntus.org%2F&amp;rct=j&amp;q=websockets%20demo&amp;​ei=gGh8TLvbB426sAO0xP2CBw&amp;usg=AFQjCNGw6nZv0wO4​2uzUnHhWcD0vcKNULg&amp;sig2=neXYCb-H7Uon_wDpNrnEmg (1 hits)
02:29 MojoGuest16 left #mojo
02:35 janus left #mojo
02:35 janus joined #mojo
02:46 nightmare joined #mojo
03:03 yakudzo joined #mojo
04:01 fod left #mojo
04:03 tholen42 joined #mojo
04:05 tholen left #mojo
04:15 awnstudio joined #mojo
04:20 MojoGuest607 joined #mojo
04:20 MojoGuest607 From: http://www.google.com/search?rlz=1C1​CHNP_enUS327US327&amp;sourceid=chrom​e&amp;ie=UTF-8&amp;q=websockets+irc (1 hits)
04:20 MojoGuest607 Does anyone know how the Mojo WebSocket Demo - ExtJS IRC Client works?
04:22 Alias_ Nope
04:25 MojoGuest607 I just figured it out
04:25 MojoGuest607 If anyone wants to know go here: http://github.com/xantus/mojo-websocket-examples
04:25 MojoGuest607 left #mojo
04:48 nightmare left #mojo
05:03 yko joined #mojo
05:13 koban joined #mojo
05:15 koban left #mojo
05:15 koban joined #mojo
05:22 mvuets joined #mojo
05:28 koban left #mojo
05:35 yko left #mojo
05:46 esskar__ joined #mojo
05:49 esskar_ left #mojo
05:49 esskar__ is now known as esskar_
05:49 mvuets left #mojo
06:09 koban joined #mojo
06:20 ysyrota joined #mojo
06:21 koban left #mojo
06:23 koban joined #mojo
06:27 koban left #mojo
06:44 koban joined #mojo
07:33 ltriant left #mojo
08:31 marcus sri/vti: Did you make any mojo marketing material for the mojo stand that we could print for javazone next week?
08:31 awnstudio left #mojo
08:32 marcus (big java conference in Oslo, we've been offered a stand)
08:32 awnstudio joined #mojo
08:40 _mpu joined #mojo
08:51 awnstudio left #mojo
08:51 [1]awnstudio joined #mojo
08:51 [1]awnstudio is now known as awnstudio
08:58 esskar joined #mojo
08:59 esskar memowe: i got inspired by your cms plugin.
09:00 esskar i wrote something similar (not keeping the pages in (own application) memory) but use a cache
09:00 esskar and some other stuff
09:00 esskar maybe we can merge sooner or later
09:02 marcus esskar: is your version on github?
09:02 esskar not yet
09:02 esskar no tests yet and i didn't wanted get slapped by vti
09:12 esskar marcus: http://github.com/esskar/luzy
09:22 marcus esskar: sweet
09:23 esskar i need language support and caching
09:25 jest joined #mojo
09:26 esskar other thoughts: i would like also to use http's "last-modified" and "if-modified-since" features. idea, on plugin load, check modified times: $init_time = min(max(time(script), time(libs), time(templates)), now())
09:27 esskar and then, work with data time to send the "last-modified" and handle "if-modified-since"
09:27 esskar sounds reasonable?
09:27 esskar templates get cached anyway
09:27 marcus yeah, probably
09:28 esskar so no need to wory, but cms content can be modified
09:28 marcus I'd want to stuff a varnish in front anyways
09:28 omega ESI ftw
09:29 esskar whats a varnish? some seconds you mean?
09:30 marcus esskar: varnish-cache.org/
09:30 esskar oh, didnt know
09:39 dotan joined #mojo
09:40 koban left #mojo
10:08 koban joined #mojo
10:23 awnstudio left #mojo
10:35 Akron joined #mojo
11:03 dynax60 joined #mojo
11:03 dynax60 hello
11:05 dynax60 Could anyone help me with strange problem? I have a high CPU loading when starting daemon_prefork on Linux (CentOS 5.5).
11:05 dynax60 Strace on one of the child tell me:
11:05 dynax60 flock(6, LOCK_EX|LOCK_NB) = -1 EAGAIN (Resource temporarily unavailable)
11:09 dynax60 http://gist.github.com/558876
11:09 dynax60 what may be wrong? :(
12:26 ilbot2 joined #mojo
12:26 Topic for #mojo is now ♥ Join the revolution! ♥ | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
12:43 ash_ left #mojo
13:11 _mpu left #mojo
13:17 dvinciguerra joined #mojo
13:28 diegok can I pass GET params to link_to helper?, how?
14:07 sri dynax60: mojo version?
14:08 sri diegok: no, but you can pass a url object
14:09 diegok ok. I think it would be nice to use on templates ;-)
14:10 tom joined #mojo
14:12 tom question: if I have a callback in $client->get($url,$cb); And I need to do other get requests inside the callback, is it best do create a new client instance or reuse the existing $client ?
14:12 sri tom: do you want to process those requests blocking?
14:13 tom the once inside the $client callback yes
14:13 sri just reuse the client, it will clone a new one automatically
14:14 tom so it doesn mather that the existing client is async? if it clones a new one it become sync/blocking.
14:14 sri oh
14:14 sri that does matter
14:15 sri then you need a new one
14:15 tom oh ok  good, I'll just create a new one then.
14:15 tom sri: thanks for your help
14:18 xantus_ joined #mojo
14:20 Akron joined #mojo
14:23 sri dynax60: ah 26, you are usign an anciet version of mojolicious
14:24 sri dynax60: most likely already fixed
14:31 xantus_ hey
14:34 koban left #mojo
14:37 * sri waves
14:41 xantus_ I'm interested in messing with udp, and multicast
14:57 fish_ xantus_: happy messing
15:01 xantus_ ;)
15:09 sri xantus: what are you planning now? :)
15:09 xantus_ I want to add udp support to mojo
15:09 sri figured as much, but after that?
15:11 xantus_ oh, a plugin to auto open the port to mojo using UPnP
15:11 sri hmm
15:11 xantus_ and some itunes stuff
15:11 sri sounds fun
15:11 xantus_ I have code from years ago that I was doing for POE
15:22 ash_ joined #mojo
15:24 xantus_ basically, I can discover other itunes apps running on the network
15:25 xantus_ and emulate the itunes remote protocol to control it
15:25 xantus_ yeah, would be fun
15:26 jest left #mojo
15:27 und3f[A] is now known as und3f
15:53 ysyrota left #mojo
15:54 xantus_ sri: how do you feel about making redirects easier
15:54 xantus_ for example: get '/' => '/index.html';
15:56 sri that case is reserved for route names
15:56 xantus_ no biggie, get '/' => sub { shift->redirect_to('/index.html'); }; is not too hard either
15:56 sri was about to say it :)
15:58 xantus_ oh, is there a mech for internal redirect?
15:58 sri we don't do internal redirect
15:58 xantus_ ok
15:58 sri bad design imo
15:59 sri or better said, i think it encourages bad design
16:00 xantus_ $c->render_static is what I really needed anyway
16:01 ash_ left #mojo
16:02 ash_ joined #mojo
16:05 xantus_ oh, I started working on a plugin and protocol for proxy via websocket last week
16:05 xantus_ the main use would be for couchdb
16:05 xantus_ but its totally possible to allow requests to any other http server
16:07 ash__ joined #mojo
16:12 ash_ left #mojo
16:12 ash__ is now known as ash_
16:25 Akron left #mojo
16:36 janus left #mojo
16:40 GabrielVieira joined #mojo
16:42 ash_ can you configure a mojo lite app to server static files?
16:43 janus joined #mojo
16:47 sri ash_: no need to configure, it automatically serves static files from the public directory
16:48 ash_ do you have to set it? i keep getting errors (this is a lite app with everything in 1 file currently)
16:49 sri you of course need a public directory with static files
16:50 sri or do you want to serve static files from the DATA section?
16:50 sri thats possible too if they have the right name
16:51 sri like @@ static.txt
16:51 ash_ so, if i had /file.pl then /public/images/logo.gif is that how i need to setup my directories?
16:51 sri yes
16:51 ash_ i have the text based stuff in the DATA section, i just was wondering more for images
16:51 ash_ ah, i need to re-arrange my directories then
16:51 ash_ kk, thanks
16:51 sri @@ static2.png (base64)
16:51 sri :)
16:51 sri we also support inlined base64 files
16:53 ash_ do you know an easy way to base64 a file?
16:53 sri Mojo::ByteStream makes it simple once you have the file in memory
16:53 sri hmm, wonder if we should add a command :)
16:54 sri "mojo base64 foo.png" could be useful
16:55 ash_ "mojo base64 foo.png >> myfile.pl" and get @@ foo.png + base64
16:55 sri hmm, openssl does base64 too
17:02 Foxcool left #mojo
17:22 nuclon joined #mojo
17:23 nuclon is there a way to have nested controllers, like 'admin', 'admin/users' => App::Admin, App::Admin::Users?
17:24 sri admin-users
17:25 sri route('/admin/users')->to('admin-users#list') or so
17:29 marcus moo
17:29 sri mew
17:29 marcus 2010/08/31 17:02:29 [error] 48410#0: *3 upstream prematurely closed connection while reading response header from upstream, client: 10.1.6.42, server: labs.nordaaker.com, request: "GET / HTTP/1.1", upstream: "http://unix:/tmp/labs.sock:/",
17:30 marcus is the upstream supposed to look like that?
17:31 MojoGuest583 joined #mojo
17:31 MojoGuest583 From: http://www.google.com/search?q=websockets+demo&​amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.​mozilla:en-US:unofficial&amp;client=firefox-a (1 hits)
17:33 MojoGuest583 left #mojo
17:35 spleenjack joined #mojo
17:42 nuclon sri: thanks, but I'd like to map /admin/:section/:action/:id => 'admin-{section}#action', is it possible?
17:44 sri hmm
17:45 nuclon I always like this "hmm" :)
17:47 doubi joined #mojo
17:47 doubi left #mojo
17:55 marcus I prefer 'hmpf'
17:55 marcus which is why I always annoy sri :p
17:56 su-bzero_ left #mojo
17:56 sri hmpf
17:56 und3f is now known as und3f[A]
17:57 marcus \o/
17:58 marcus sri: Tue Aug 31 17:56:52 2010 error Mojo::Server::Daemon:237 [4393]: Event "read" failed for connection "IO::Socket::UNIX=GLOB(0x80343b9d8)": Bad arg length for Socket::unpack_sockaddr_un, length is 16, should be 106 at /usr/local/lib/perl5/5.10.1/mach/Socket.pm line 393.
17:58 marcus guess that explains my premature closing
17:58 sri what are you doing to my poor server
17:59 marcus trying to follow your cookbook
17:59 marcus this is with bootylicious
17:59 marcus and comet
18:00 sri which reverse proxy?
18:00 marcus well, I've got two
18:01 marcus first the request hits apache22, which mod_proxies it to ngnix
18:01 su-bzero joined #mojo
18:01 marcus and nginx is configured like http://search.cpan.org/~kraih/Mojolicious-0.99​9929/lib/Mojolicious/Guides/Cookbook.pod#Nginx with domain sockets
18:02 marcus (the apache is temporary, while I migrate services to a new server)
18:02 sri the recipe might be a little broken, hot deployment is not possible atm
18:02 marcus am not doing hot deployment
18:03 sri cpan or github version?
18:03 marcus cpan
18:03 sri it could also be affected by the early close bug we fixed recently
18:04 marcus I can try github version
18:04 sri sharifulin was having a similar problem with cpan i think
18:05 marcus this is on freebsd btw
18:06 sri "openssl base64 -in foo.png" btw
18:07 marcus sri: persists with trunk
18:07 sri marcus: you are the first then
18:07 marcus \o/
18:09 marcus btw, problem occurs even if I hit ngnix direcrtlyt
18:09 marcus directly
18:09 marcus guess I'll try switching to tcp
18:09 sri actually might be a perl bug
18:10 sri old perl version?
18:10 sri http://www.nntp.perl.org/group/perl.​perl5.porters/2009/07/msg148269.html
18:10 sri 5.10 on freebsd
18:11 sri not many people use unix domain sockets, so a core bug every now and then is likely
18:12 sri tcp will get more attractive with hypnotoad
18:14 sri weird, now i'm mediating between people mst banned and timtoady
18:15 sri he really made quite a few enemies
18:17 marcus mst?
18:17 marcus or timtoady?
18:17 sri there is a lynch mob after msts head
18:18 marcus who's heading it?
18:18 sri doesn't matter
18:19 marcus as long as it's not evan carrol
18:20 nuclon okay, I got it, it's impossible at the moment :)
18:20 marcus sri: http://meta.stackoverflow.com/us​ers/135854?tab=reputationhistory
18:21 nuclon I mean - to dispatch nested names by mask
18:25 sri nuclon: not automatically
18:25 sri interesting, webos 2.0 ships with node.js
18:30 marcus sri: found out something else fun while switching to tcp
18:31 marcus --listen http://10.0.0.1:8081/ silently fails
18:31 marcus (rather than http://10.0.0.1:8081 )
18:31 marcus anyways, proxy works with port 8081, and fails with sockets
18:32 sri possible, --listen is parsed via regex
18:37 tempire Dude.  How does one even get suspended on stackoverflow?
18:37 tempire mojo base64 foo.png++
18:37 sri marcus: like i said above, seems to be a perl bug
19:00 MojoGuest145 joined #mojo
19:00 MojoGuest145 From: http://www.google.com/url?sa=t&amp;source=web&amp;​cd=1&amp;ved=0CBsQFjAA&amp;url=http%3A%2F%2Fdev.xa​ntus.org%2F&amp;rct=j&amp;q=websockets%20demo&amp;​ei=SVF9TMaLOoP_8Ab2jvm1Bw&amp;usg=AFQjCNGw6nZv0wO4​2uzUnHhWcD0vcKNULg&amp;sig2=k5NVDKwO8UeQAAUezms7Bw (1 hits)
19:01 MojoGuest145 testing sockets
19:01 MojoGuest145 left #mojo
19:02 MojoGuest726 joined #mojo
19:02 MojoGuest726 From: http://dev.xantus.org/ (2 hits)
19:03 MojoGuest726 bb
19:05 marcus sri: btw, This is perl, v5.10.1 (*) built for amd64-freebsd
19:06 MojoGuest726 left #mojo
19:07 marcus sri: running freebsd 8.1
19:07 marcus so I guess that bug never got fixed :-/
19:08 sri possibly
19:09 sri actually i've never seen a perl program use unix domain sockets before
19:09 sri FCGI.pm does all its io in C
19:10 sri well, that report was from 2009 or so
19:11 sri just a few weeks before 5.10.1 got released
19:11 sri possibly didn't make it
19:13 marcus too bad
19:13 marcus ohwell
19:13 marcus ports work too
19:14 marcus sri: how do I tell the daemon it's real hostname?
19:15 sri whats a real hostname?
19:15 marcus <link rel="alternate" type="application/rss+xml" title="labs.nordaaker.com" href="http://labs-upstream/index.rss" />
19:15 marcus for view-source:http://labs.nordaaker.com/
19:16 sri there is no such thing as a real hostname, for generated links it will use whatever the Host header says
19:16 marcus right, but I'm reverse proxying...
19:17 sri did you configure X-Forwarded-For?
19:17 sri nginx doesn't do it by default
19:17 DaTa marcus: ProxyPreserveHost On
19:17 DaTa for apache :)
19:18 sri recipe patches welcome :)
19:31 esskar__ joined #mojo
19:33 sri *crickets*
19:35 marcus proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
19:35 esskar_ left #mojo
19:35 esskar__ is now known as esskar_
19:41 marcus hmm, no
19:42 sri yea, where do i have my head
19:42 sri Host is an end to end header...
19:43 sri no idea why it would be missing
19:43 sri the reverse proxy code of course doesn't affect it
19:47 und3f[A] is now known as und3f
19:53 sri http://github.com/blog/712-pull-requests-2-0 # i expect more pull requests! :)
19:54 marcus sri: what about MOJO_REVERSE_PROXY _
19:54 sri nothing affects the host
19:54 su-bzero_ joined #mojo
19:56 marcus humm
19:57 sri http://wiki.nginx.org/NginxHtt​pProxyModule#proxy_set_header Host $http_host;
19:57 sri huh
19:57 sri weird paste
19:57 marcus so I need proxy_set_header Host $http_host;
19:57 sri proxy_set_header Host $http_host;
19:57 sri i guess
19:58 marcus yepp, that works.
19:59 su-bzero left #mojo
19:59 marcus guess that should go into Cookbook.pod. Want a pull request?
19:59 sri already added :)
20:00 sri damn... i wanted to try the new pull system :/
20:03 perlrocks left #mojo
20:03 perlrocks joined #mojo
20:03 sri hmm, is the twitter stream api broken?
20:03 perlrocks left #mojo
20:04 marcus sri: they just turned off basic auth
20:04 marcus so if you don't support oauth...
20:04 sri we do
20:04 marcus then you should be fine
20:05 su-bzero_ left #mojo
20:06 perlrocks joined #mojo
20:06 perlrocks left #mojo
20:06 GitHub72 joined #mojo
20:06 GitHub72 mojo: master Sebastian Riedel * bcba410 (1 files in 1 dirs): updated cookbook recipe - http://bit.ly/bquocU
20:06 GitHub72 left #mojo
20:06 sri hmm
20:06 sri 401 unauthorized
20:06 sri since yesterday
20:07 perlrocks joined #mojo
20:07 awnstudio joined #mojo
20:07 sri !tweet viva la rovolucion!
20:07 perlrocks sri: http://twitter.com/perlrocks/status/22645244814
20:08 marcus guess you use basic auth to read tweets?
20:08 sri looks like they turned off oauth for the stream api -.-
20:08 perlrocks left #mojo
20:08 sri nope
20:08 sri oauth for everything
20:08 marcus weirdness
20:10 marcus the new github pull system looks sweet btw
20:10 su-bzero joined #mojo
20:10 perlrocks joined #mojo
20:10 perlrocks left #mojo
20:16 perlrocks joined #mojo
20:17 sri seems just normal twitter breakage
20:17 perlrocks left #mojo
20:17 perlrocks joined #mojo
20:18 sri basic works sometimes, oauth never for the stream
20:19 * marcus is watching sukiyaki western django
20:19 sri !tweet ♥
20:19 perlrocks sri: http://twitter.com/perlrocks/status/22645940687
20:19 sri hmm
20:19 sri !tweet ♥ #mojolicious
20:19 perlrocks sri: http://twitter.com/perlrocks/status/22645955904
20:19 perlrocks Twitter: "♥ #mojolicious --sri" --perlrocks http://twitter.com/perlrocks/status/22645955904
20:19 sri \o/
20:20 marcus set it to use basic?
20:20 perlrocks left #mojo
20:20 marcus wow, this movie is super-violent
20:20 perlrocks joined #mojo
20:21 sri ye, basic for stream, oauth for posting
20:22 sri !tweet ♥ #mojolicious #perl
20:22 perlrocks sri: http://twitter.com/perlrocks/status/22646105273
20:22 perlrocks Twitter: "♥ #mojolicious #perl --sri" --perlrocks http://twitter.com/perlrocks/status/22646105273
20:22 spleenjack left #mojo
20:27 ash_ left #mojo
20:31 sri left #mojo
20:31 perlrocks left #mojo
20:42 awnstudio left #mojo
20:55 xantus_ lol, you can actually see the downward spiral of evan carroll's rep
21:15 nuclon left #mojo
21:21 dvinciguerra left #mojo
21:30 esskar_ marcus: made some changes to luzy; have a look and feel free to comment
21:32 marcus esskar_: still needs tests.
21:32 marcus :D
21:34 esskar_ i know, i know. specially now with the meta data
21:50 MojoGuest492 joined #mojo
21:50 MojoGuest492 left #mojo
21:51 MojoGuest491 joined #mojo
21:51 MojoGuest491 is now known as sri
21:52 sri looks like most of my servers are gone :S
21:53 sri oh right, the datacenter is moving xD
21:55 sri good we have the websocket irc client, i'm screwed without bouncer :)
21:56 tempire parent->delete( child ) or child->delete?
21:56 esskar_ 2nd
22:00 sri left #mojo
22:01 ltriant joined #mojo
22:04 xantus_ heheh
22:04 xantus_ left #mojo
22:05 awnstudio joined #mojo
22:13 tempire sri is gone.
22:13 tempire I'm going to rebase to master.
22:14 tempire And frisky dingo is better than futurama
22:14 tempire !!!
22:56 und3f is now known as und3f[A]
23:02 MojoGuest266 joined #mojo
23:02 MojoGuest266 is now known as sri
23:03 sri *kicks tempire in the groin*
23:03 sri i'm around even when i'm gone!
23:23 ltriant left #mojo
23:30 ltriant joined #mojo
23:31 ltriant left #mojo
23:31 ltriant joined #mojo
23:56 sri left #mojo

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