Camelia, the Perl 6 bug

IRC log for #mojo, 2010-08-05

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

All times shown according to UTC.

Time Nick Message
00:51 MojoGuest90 joined #mojo
01:01 diegok joined #mojo
02:24 memowe joined #mojo
03:19 MojoGuest122 joined #mojo
03:21 MojoGuest515 joined #mojo
03:21 MojoGuest326 joined #mojo
03:22 ask joined #mojo
03:57 janus joined #mojo
04:50 koban joined #mojo
05:21 alex joined #mojo
05:29 Foxcool joined #mojo
05:38 ask joined #mojo
06:15 mvuets joined #mojo
06:17 koban joined #mojo
06:21 GabrielVieira2 joined #mojo
06:38 tempire joined #mojo
06:42 ysyrota joined #mojo
06:58 MojoGuest497 joined #mojo
06:58 MojoGuest497 hello, all!
06:59 marcus moin
06:59 MojoGuest497 how to set timeout on method get?
07:01 marcus MojoGuest497: I think you have to set connection_timeout on the Mojo::IOLoop object
07:01 marcus $client->ioloop->connection_timeout()
07:02 sri $client->keep_alive_timeout is equal to that right now
07:04 sri morning btw :)
07:05 marcus morning.
07:06 diegok joined #mojo
07:12 sri any updated from memowe?
07:13 sri s/d/s/
07:13 marcus no :-/
07:13 sri havn't heard from him since...forever
07:14 marcus he's not even in my lastlog for this channel :-Z
07:18 arthas joined #mojo
07:19 MojoGuest497 web-sockets are broken?
07:19 MojoGuest497 only Safari browser works well..
07:35 sri wait, last i checked only safari was broken Oo
07:48 diegok joined #mojo
08:00 tl joined #mojo
08:09 xantus__ mmm, reverse proxy plugin goodness
08:16 MojoGuest340 joined #mojo
08:21 Den joined #mojo
08:23 dotan joined #mojo
08:24 diegok joined #mojo
08:29 xantus__ lol
08:30 xantus__ http://www.youtube.com/watch?v=vLiwqmJY314
08:32 sri lol
08:37 ask joined #mojo
08:41 xantus__ I can't match / with /(*foo)
08:44 xantus__ so I have to add a / route :/
08:44 xantus__ any help?
08:49 sri use a custom regex
08:49 sri (*foo) is qr/(.+)/
08:50 sri '/(*foo)', foo => qr/.*/
08:52 sri not sure if thats counter intuitive
08:52 Den I have a strange problem with Mojo timeouts(?). The code snippet:
08:52 Den get '/' => sub {
08:52 Den ...
08:52 Den $self->pause;
08:53 Den my $output = '';
08:53 Den my $count = @urls;
08:53 Den my $client = $self->client->async;
08:53 Den $client->keep_alive_timeout(300);
08:53 Den for my $url (@urls) {
08:53 Den $self->render( out => $output );
08:53 Den return $self->finish;
08:53 was kicked by sri: Den
08:53 Den joined #mojo
08:53 Den Sorry for flood.
08:53 sri use pastie or so
08:53 Den So, why Mojo don't wait for end of proccessing?
08:54 Den Chrom returns: Page not accessible (net::ERR_EMPTY_RESPONSE)
08:54 sri pastie the code and we might be able to help
08:55 Den OK.
08:55 Den http://gist.github.com/509453
08:57 sri way too much code for me to read so early in the morning, could you turn it into a minimal example?
08:57 Den So, the problem is that after 20 seconds Mojo have drop the connection :(
08:57 Den OK
08:57 sri oh wait
08:58 sri are you using the built in server
08:58 sri ?
08:58 Den http://gist.github.com/509453
08:58 sri --keepalive 300 might help you then
08:58 sri thats a better example
08:59 Den I'll try now. :)
08:59 sri default is something like 15 seconds
09:00 Den this works!
09:00 sri :)
09:00 Den thanks alot!
09:06 xantus__ so I can pass a regex to route
09:08 xantus__ yeah, I don't understand how to use it
09:08 xantus__ its late, I'll read code/docs tomorrow
09:08 dynax60 get '/search/:cid' => [ cid => qr/\d+$/ ] => \&search => 'search';
09:08 dynax60 for example :)
09:09 vti i demand a credit on oauth!!! puny humans are going to die!!!
09:10 * xantus__ bows to vti
09:12 vti :)
09:13 xantus__ dynax60: that looks like a qualifier to me
09:13 xantus__ aka condition
09:13 xantus__ ok, sleepy time
09:14 xantus__ I'll post my lame reverse proxy tomorrow
09:15 marcus lamers inc
09:20 sri ALL GLORY TO THE HYPNO TOA...VTI!!!
09:20 dotan joined #mojo
09:20 arthas joined #mojo
09:22 sri !tweet this tweet was sponsored by vti! #mojolicious
09:22 perlrocks sri: http://twitter.com/perlrocks/status/20374937542
09:22 perlrocks Twitter: "this tweet was sponsored by vti! # Mojolicious - sri" (de) --perlrocks http://twitter.com/perlrocks/status/20374937542
09:27 sri !tweet this tweet was brought to you by @vtivti! #mojolicious
09:27 perlrocks sri: http://twitter.com/perlrocks/status/20375155237
09:27 perlrocks Twitter: "tweet what this brought to you by @ vtivti! # Mojolicious - sri" (de) --perlrocks http://twitter.com/perlrocks/status/20375155237
09:27 sri thats better
09:28 sri i demand more tweets!
09:28 vti :D
09:28 baton8 joined #mojo
09:30 marcus !tweet o/' Baby, don't fear the revolution o/'
09:30 perlrocks marcus: http://twitter.com/perlrocks/status/20375274978
09:30 sri \o/
09:32 ask joined #mojo
09:34 koban joined #mojo
09:38 sri the whole poll vs epoll discussion is really interesting
09:38 sri http://www.jacquesmattheij.c​om/Poll+vs+Epoll+once+again
09:39 sri bottom line, epoll is pretty much always the right choice in the real world
09:41 sri for app servers it doesn't matter much though
09:53 MojoGuest334 joined #mojo
09:53 MojoGuest490 joined #mojo
09:57 dotan joined #mojo
09:58 diegok joined #mojo
10:11 MojoGuest756 joined #mojo
10:26 Cameron left #mojo
10:41 diegok joined #mojo
10:42 arthas joined #mojo
10:57 MojoGuest45 joined #mojo
11:20 ask joined #mojo
11:27 arthas joined #mojo
11:43 * sri yawns
11:48 MojoGuest990 joined #mojo
11:54 diegok joined #mojo
11:58 marcus yay
12:05 yko joined #mojo
12:05 esskar joined #mojo
12:10 dotan joined #mojo
12:31 dotan joined #mojo
12:39 chansen joined #mojo
13:08 ask joined #mojo
13:37 keith joined #mojo
13:42 tl joined #mojo
13:59 dotan joined #mojo
13:59 diegok joined #mojo
14:27 MojoGuest896 joined #mojo
14:28 MojoGuest803 joined #mojo
14:32 MojoGuest399 joined #mojo
14:32 * sri just tried installing a few javascript bindings from cpan and not a single one worked :S
14:34 koban left #mojo
14:38 garfield joined #mojo
14:49 crab what bindings?
14:51 sri like all ;p
14:55 crab i don't know what javascript bindings are. is it like something to interface with extjs/jquery, or what?
14:55 sri oh
14:55 sri perl bindings for javascript engines like spidermonkey and v8
14:56 ask joined #mojo
14:57 sri someone really needs to write a sleek minimal spidermonkey binding and package it together with the spidermonkey sources
15:02 perlrocks Twitter: "When I was reading mojolicious updated code, I recently abandoned." (ja) --hisaichi5518 http://twitter.com/hisaichi5518/status/20394124697
15:02 garfield [ Twitter / ひさいち: mojolicious更新されたらコード読んでたけど ... ]
15:02 garfield http://xrl.us/bhu9ry
15:03 crab i recently abandoned. heh.
15:03 sri Oo
15:06 ashleydev joined #mojo
15:06 sri better than no translation at least :)
15:16 dotan joined #mojo
16:02 MojoGuest304 joined #mojo
16:21 ash_ joined #mojo
16:23 ash_ does mojo have any sort of tool for spawning a process in the background?
16:23 sri nope
16:23 ash_ alrighty, just checking
16:24 ash_ sri: btw, http://try.rakudo.org/shell is in mojo, mojo is really nice (i used to do rails and php programming)
16:24 garfield [ Try Rakudo and Learn Perl 6 -- all in your browser ]
16:24 sri oh cool
16:25 ash_ its not finished yet
16:25 crab that is one psychedelic butterfly.
16:25 ash_ i am trying to make it better (eg. right) but any comments are welcome
16:25 ash_ i stole it from perl6.org i don't think they mind
16:26 sri http://kraih.com/usingperl6-sri.jpg # feel free to use amelia instead of camelia :)
16:27 perlrocks Twitter: "http://try.rakudo.org/shell is powered by #mojolicious, who would have thought. :) #perl" --kraih http://twitter.com/kraih/status/20399940365
16:27 garfield [ Twitter / Sebastian Riedel: http://try.rakudo.org/shel ... ]
16:27 ash_ i might, but for now, ima try to get the rest of it working
16:31 perlrocks Twitter: "RT: @kraih: http://try.rakudo.org/shell is powered by #mojolicious, who would have thought. :) #perl" --sharifulin http://twitter.com/sharifulin/status/20400262273
16:31 garfield [ Try Rakudo and Learn Perl 6 -- all in your browser ]
16:31 garfield [ Twitter / Анатолий Шарифулин: RT: @kraih: http://try.rak ... ]
16:32 was kicked by sri: garfield
16:32 sri damn annoying cat...
16:32 ash_ so far its only 1 file http://github.com/moritz/try.rakudo.​org/blob/master/frontend/cgi/try.pl
16:33 ash_ anywho, i need to figure out how to get the repr to persist properly instead of cheating
16:33 perlrocks Twitter: "RT @kraih: http://try.rakudo.org/shell is powered by #mojolicious, who would have thought. :) #perl" --paulhenrich http://twitter.com/paulhenrich/status/20400384934
16:34 perlrocks Twitter: "RT @kraih: http://try.rakudo.org/shell is powered by #mojolicious, who would have thought. :) #perl" --dotandimet http://twitter.com/dotandimet/status/20400445941
16:34 sri ash_: interesting, i've been playing with sandboxed perl5 before, but makign it secure was a nightmare
16:35 ash_ that chunk of code at line 33-55 is for making perl6 secure, but i don't have any restrictions on memory yet
16:36 sri ah
16:36 sri is it possible to open sockets?
16:36 ash_ it times out after 15 seconds
16:36 ash_ not from that perl6, it can't open any files
16:36 ash_ it can only read from stdin
16:36 ash_ and write to stdout
16:36 sri fork?
16:36 ash_ nope
16:37 ash_ or change directories
16:37 sri in perl5 thats a huge problem, since people can just load random binary code and make their own fork
16:38 ash_ i am sure there are some security problems with it, but for now, its a good start
16:38 sri of course
16:39 sri should be quite useful for uncovering flaws
16:40 ash_ do you have any suggestions for keeping a persistent object alive between calls? that hopefully dies properly when the session times out...
16:41 sri i would go with a separate server i guess
16:41 ash_ right now i re evaluate the p6 on each request, so its stateless, but its doing funny things if your commands don't line up right (eg, random output)
16:42 sri you could theoretically run a second mojolicious server in prefork mode, restricting clients to one request
16:43 sri try mojo daemon --requests 1
16:43 sri :)
16:43 sri will die after one request
16:44 ash_ is that 1 request or 1 session?
16:44 sri one request
16:45 sri wait, i guess that doesn't even matter for you
16:45 ask joined #mojo
16:45 sri since you have an external process anyway
16:45 sri prefork server without --request will allow one keep alive session per child
16:45 sri thats what you want
16:47 sri you could use the built in http client to connect frontend and backend
16:48 sri websockets might be right for the connection :)
16:49 sri yea, thats how i would do it i guess
16:49 sri prefork backend server connected through websockets to the frontend server
16:49 ash_ well, see someone else started the try.rakudo.org site and then kinda stopped working on it, i was originally only going to make the html front end, they did that, they had a long polling system setup, and a really weird system of sending requests and retrieving responses
16:50 ash_ now i am trying to make a back end, and i didn't understand theirs so i am going for simple, but i think i went to simple
16:52 ash_ don't websockets only work in like 2 browsers?
16:52 ash_ i could use flash though, but i'd rather not if i don't have to... but that would work in just about every browser then
16:53 sri nono, websockets to connect two servers :)
16:53 sri we have a websocket client too
16:54 ash_ ah, i was thinking of an html socket
16:55 ash_ could i use like POE to make a daemon that manages the repr sessions and a websocket to connect to the daemon?
16:56 sri dunno, fi poe supports websockets
16:56 sri *if
16:56 sri you could also use raw sockets
16:56 marcus sri: did you try ash berlin's bindings?
16:56 marcus they're on github, afaik
16:56 sri marcus: where?
16:57 marcus http://github.com/ruediger/flusspferd
16:57 marcus hmm, guess those aren't perl bindings as such
16:58 marcus he also has http://github.com/ashb/javascript tho
16:58 marcus JavaScript module updated for tracemonkey
16:59 marcus and http://github.com/ashb/template
16:59 sri that looks better
17:03 sri hmm, almost all tests pass except for 2
17:04 sri and the makefile is lacks prereqs
17:04 sri *-is
17:05 marcus yay?
17:07 stephan48 joined #mojo
17:07 marcus what failed?
17:08 marcus and what is missing?
17:08 marcus I can probably badger both ash and claes
17:08 marcus building tracemonkey using brew now
17:11 sri same here
17:11 sri somewhere in the middle, expected 3 tests ran 1 or so
17:12 sri and Test::Exception was missing from prereqs
17:12 sri (at least)
17:13 ask joined #mojo
17:14 marcus everything fails here
17:14 marcus with dlopen(/Users/marcus/Source/javascript-tracemonk​ey/blib/arch/auto/JavaScript/JavaScript.bundle, 2): Symbol not found: _OBJECT_IS_XML
17:14 GitHub147 joined #mojo
17:14 GitHub147 mojo: master Sebastian Riedel * 4fa9d91 (8 files in 5 dirs): cleanup - http://bit.ly/9ThgQu
17:14 GitHub147 left #mojo
17:15 sri removed 100 continue support from client since it's pointless
17:16 marcus pondering adding mojo in $work_project
17:16 marcus to replace WWW::Curl
17:17 sri careful with the client, it still has to prove itself
17:17 marcus because it periodically stops working until we restart the fcgi daemon.
17:17 marcus well, curl has proven itself not to work
17:17 sri until last week it had memory/fd leaks :(
17:17 marcus ouch
17:18 marcus guess it still does in cpan version then?
17:18 sri ye
17:18 marcus planning a new release some time?
17:18 marcus or are you hoping to finish guides and release 1.0?
17:18 sri soon™
17:19 sri guides are almost finished, last two are both 90% now xD
17:19 sri the final 90% will be the hardest though *cough*
17:20 sri $client is distracting me a bit atm :/
17:20 sri (as in customer)
17:20 marcus mine too
17:21 marcus atm, I'd like to kill at least one of them
17:21 marcus they owe us a lot of money, and they're making a stink
17:21 sri lets trade so it can't be traced back :)
17:21 marcus good plan :)
17:21 crab i was just going to say i'd like to have some clients to kill, but maybe not if they're making a stink about paying you :-)
17:22 marcus they owe us more than 60k euro atm :-/
17:22 sri ouch
17:23 crab i went to consumer court today to try to get my UPS batteries replaced under warranty.
17:23 marcus did it work?
17:24 crab it'll take time. so far i've just submitted my petition for filing in front of the court on tuesday. i hope they will accept it then and summon the $battery_co for a hearing.
17:24 crab i guess it'll take at least a month or two.
17:36 stephan48 joined #mojo
17:45 GitHub83 joined #mojo
17:45 GitHub83 mojo: master Sebastian Riedel * ae01767 (1 files in 1 dirs): added server tests - http://bit.ly/9HF8Oa
17:45 GitHub83 left #mojo
17:47 sri sadly the server can't opt out of pipelining and 100 continue
17:56 marcus sri: dark nebula ep 2 is out!
17:56 sri OMG
17:56 sri there goes the productivity
18:01 xantus_ hey
18:01 xantus_ I'm doing mojo redis
18:16 xantus_ aw, I made a perl tweet
18:16 perlrocks Twitter: "RT @kraih: http://try.rakudo.org/shell is powered by #mojolicious, who would have thought. :) #perl" --marcusramberg http://twitter.com/marcusr​amberg/status/20406962686
18:17 marcus xantus_: they use his logo in the rakudo star distribution. For the book.
18:17 marcus not the right one, but still ;)
18:17 xantus_ lol
18:17 perlrocks Twitter: "RT @marcusramberg: RT @kraih: http://try.rakudo.org/shell is powered by #mojolicious, who would have thought. :) #perl" --xantus http://twitter.com/xantus/status/20407038154
18:18 spleenjack joined #mojo
18:18 xantus_ thats crazy fast
18:18 xantus_ I just clicked the button
18:19 ask joined #mojo
18:20 sri psssst...i need to concentrate on dark nebula!
18:21 sri marcus: they will be adding the book cover i made
18:22 sri (http://kraih.com/usingperl6-sri.jpg)
18:23 sri now i'll stop linking it ;p
18:23 xantus_ pretty
18:24 sri :)
18:24 marcus with sri's favorite font :)
18:26 sri my new favorite typeface
18:26 marcus isn't it myriad pro?
18:26 sri nope
18:27 sri Avenir Next
18:27 sri the latest Frutiger
18:27 marcus the i is very similar
18:27 marcus and the n
18:28 sri it was designed to replace helvetica xD
18:33 ask joined #mojo
18:42 marcus it's not boring enough to replace helvetica ;)
18:50 xantus_ sri: does nperez not like you or something?
18:51 xantus_ a reply to my tweet on FB: "Not that we should be encouraging sri, but I do agree his logos are much cleaner and much more friendly on the eyes."
18:51 sri don't know who that is
18:51 xantus_ ok..
18:52 sri it's really strange, most people that hate me never even talked to me
18:52 marcus catalysta mafia :)
18:52 marcus probably inherited his opinions from mst
18:52 sri possibly
18:52 xantus_ ahh
18:54 marcus hrm, I've started to dislike Moose. Too much complexity. And it encourages archiect astronauts.
18:54 marcus It was fine in the beginning, but they keep adding options to it.. And the stack traces remain unreadable
18:54 sri better people learn that lesson now than later in perl6
18:55 sri just because you can doesn't mean you should :)
18:55 marcus I think perl6 will need some time to establish best practices
18:55 marcus not everything that can be done should be done
18:56 marcus (as you say)
19:00 sri damn, dark nebula is absolutely amazing
19:00 marcus yeah
19:04 marcus love that you can kill things in the new one.
19:04 xantus_ is that a show
19:04 marcus no
19:04 marcus iphone game
19:05 marcus the iphone game
19:05 xantus_ ah
19:09 vti what is iphone?
19:11 marcus is this jeopardY?
19:14 plenum joined #mojo
19:15 perlrocks Twitter: "RT @kraih: http://try.rakudo.org/shell is powered by #mojolicious, who would have thought. :) #perl" --rainboxx http://twitter.com/rainboxx/status/20410330912
19:23 stephan48 joined #mojo
19:25 marcus I suck. Only getting bronze stars :/
19:26 stephan48 joined #mojo
19:29 MojoGuest900 joined #mojo
19:29 marcus finished level 6. nasty.
19:30 MojoGuest900 bonjour
19:30 marcus rendezvous
19:40 perlrocks Twitter: "RT @kraih: http://try.rakudo.org/shell is powered by #mojolicious, who would have thought. :) #perl" --arpadszasz http://twitter.com/arpadszasz/status/20411769332
19:46 ashleydev joined #mojo
19:47 sri marcus: level 1 :/
19:49 ash_ does mojo's websocket support ports other than 80? (i dont see why not, just checking)
19:53 sri ash_: of course
19:58 sri level 4 :)
19:58 perlrocks Twitter: "I fear I may have set back #mojolicious development for some time by telling @kraih about Dark Nebula Episode 2 http://bit.ly/aRuaQm" --marcusramberg http://twitter.com/marcusr​amberg/status/20412731999
19:58 marcus damn, that bot is fast.
19:58 marcus am on level 10
19:58 DaTa it uses the streaming api iirc
19:59 sri !tweet @marcusramberg yes you have! :)
19:59 perlrocks sri: http://twitter.com/perlrocks/status/20412795151
19:59 sri yea, streaming api is insanely fast
20:00 perlrocks Twitter: "RT @kraih: http://try.rakudo.org/shell is powered by #mojolicious, who would have thought. :) #perl" --AFreshOne http://twitter.com/AFreshOne/status/20412872766
20:04 ask joined #mojo
20:08 Akron joined #mojo
20:16 MojoGuest316 joined #mojo
20:17 marcus sigh. It got hard on level 10 :)
20:22 xantus_ wait, wtf, pubsub in redis is for a connected client
20:22 xantus_ so you connect for each client
20:24 xantus_ heh
20:29 stephan48 joined #mojo
20:33 marcus :-)
21:00 xantus_ I'm not sure how to get a full post /w file upload to clone to a client req from a server req
21:06 perlite joined #mojo
21:11 xantus_ lol, everything seems fine if I use the server req in the client req tx
21:11 xantus_ until I try a file upload
21:18 cognominal joined #mojo
21:26 esskar joined #mojo
21:42 xantus_ the proxy is quick :)
21:49 MojoGuest179 joined #mojo
21:51 jawnsy joined #mojo
21:54 MojoGuest632 joined #mojo
21:55 Akron left #mojo
21:57 MojoGuest358 joined #mojo
21:57 xantus_ hi
21:57 xantus_ these people never talk
21:57 xantus_ I should just take it down
21:58 xantus_ its ugly, but here it is
21:58 xantus_ https://gist.github.com/5a5b4e0c12ee55a30263
21:59 xantus_ http://learnyousomeerlang.com/
21:59 MojoGuest50 joined #mojo
21:59 xantus_ hi
22:00 marcus xantus_: Nice proxy!
22:00 marcus was busy watching latest true blood :)
22:00 MojoGuest50 left #mojo
22:01 xantus_ feel free to comment on any parts I can do better
22:01 marcus sri: seems you have more fans on facebook.
22:02 marcus David Precious ?
22:02 xantus_ probably doesn't know him
22:04 marcus Apparently I'm his friend on facebook.
22:04 marcus Can't quite place him tho.
22:04 marcus xantus_: do you know his nick?
22:05 xantus_ he's a perl dev
22:05 marcus yeah, figured as much :)
22:06 xantus_ http://search.cpan.org/~bigpresh/
22:06 marcus I like his profile image.
22:06 xantus_ ahh, dancer fan
22:06 marcus ah right. No wonder then :-)
22:06 marcus two main groups of sri's fan base. Dancer people and catalyst devs :-D
22:07 marcus I guess the third and rapidly declining group is class-dbi users
22:07 xantus_ haw haw twitter is down
22:09 xantus_ I broke twitter, sorry guys
22:09 marcus xantus_: you get to keep both parts, I guess.
22:10 xantus_ I sneezed :P
22:10 ltriant joined #mojo
22:11 marcus you shouldn't do that :)
22:11 marcus it breaks twitter
22:12 marcus Anyways, is there really any point to your code being async?
22:13 marcus you only have one request, and you have to wait for the response anways.
22:13 xantus_ hm
22:13 xantus_ a single request out can hold up the whole proxy
22:14 xantus_ its ok if you have one person using it
22:14 marcus I think even a sync client gives up resources to the ioloop, but sri can probably confirm/deny my wild claims tomorrow
22:14 marcus I need to catch a few hours of sleep now, it's 12:14 and I get up at 6
22:14 marcus nite dude :)
22:15 xantus_ nn
22:30 diegok joined #mojo
22:32 diegok_ joined #mojo
22:33 ltriant joined #mojo
22:43 xantus_ any castlevania fans here?
22:43 xantus_ http://www.youtube.com/watch?v=Wl2SEdvCEiE
22:44 y0j joined #mojo
22:47 diegok joined #mojo
22:54 MojoGuest246 joined #mojo
22:54 MojoGuest246 /j #demo22
22:54 sri heh
22:55 sri marcus: link?
22:55 sri xantus: proxy looks cute
22:55 sri i'll make some changes tomorrow that will allow more aggressive performance tuning
22:57 sri marcus: it has to be async, normal client will use a separate mainloop
22:58 MojoGuest179 hello???
22:58 * sri waves
22:59 sri Zzz
22:59 MojoGuest179 how can e get this source code?
22:59 MojoGuest179 we
23:00 MojoGuest179 is there someone?
23:02 xantus_ wait, there's a sri on freenode
23:02 xantus_ MojoGuest179: I'm here
23:03 MojoGuest179 how is developped the server part?
23:04 MojoGuest179 of this application?
23:04 xantus_ all the code for that demo is on github
23:04 MojoGuest179 ok
23:04 xantus_ http://github.com/xantus/mojo-websocket-examples
23:04 MojoGuest179 ok thx
23:04 xantus_ it proxies directly to an irc server
23:04 xantus_ so the javascript actually speaks the irc protocol
23:05 xantus_ over the websocket
23:05 MojoGuest179 umm
23:06 xantus_ this is running that demo: http://github.com/xantus/mojo-websocket-exampl​es/blob/master/script/websocket-irc-example-2
23:06 MojoGuest179 and the running demo is in perl
23:07 MojoGuest179 no php version?
23:09 xantus_ php can't do this
23:09 MojoGuest179 or java?
23:09 xantus_ java can
23:10 xantus_ anyway, there are no other versions
23:10 xantus_ we ♥ perl
23:10 MojoGuest179 ok thank
23:10 MojoGuest298 joined #mojo
23:11 sri hehe, i friended them both :D
23:11 MojoGuest298 test ♥
23:11 xantus_ test ♥
23:11 xantus_ heh, utf8
23:11 sri test ♥
23:12 xantus_ It gets messed up from the server to the client
23:12 sri send_message expects chars
23:13 sri you prolly proxy bytes
23:13 xantus_ yep
23:13 sri now really Zzz
23:13 sri nn :)
23:13 xantus_ nn
23:15 MojoGuest179 <xantus_> any idea for others websocket?
23:15 MojoGuest179 i would like to integrated on my web application
23:15 xantus_ I could just tx->_send_bytes
23:15 xantus_ I'm not sure what you mean
23:16 MojoGuest179 i mean a websocket for chat
23:17 MojoGuest179 i have a web application
23:17 MojoGuest179 and would like to integrate a chat web application
23:18 MojoGuest179 like gmail chat
23:18 xantus_ sure
23:19 xantus_ you can copy this chat code to your web app
23:19 xantus_ and set the websocket url to the perl server
23:19 xantus_ it can run seperate
23:19 xantus_ it doesn't need to be on port 80 with your apache/php
23:20 xantus_ I may be able to help you as time permits
23:21 MojoGuest179 my application is in java/tomcat
23:21 xantus_ yep, no problem
23:22 MojoGuest179 and using extjs as a presentation layer
23:23 MojoGuest179 you mean i have to install a perl server?
23:23 xantus_ its super easy
23:24 xantus_ as easy as wget http://github.com/xantus/mojo-we​bsocket-examples/zipball/master -O foo.zip && unzip foo.zip
23:24 xantus_ cd to the dir and ./script/websocket-irc-example-2
23:25 xantus_ oh, that goesn't get externals
23:25 xantus_ damn you github
23:27 MojoGuest179 this file contains the sourde code?
23:27 xantus_ http://xant.us/files/mojo-​websocket-examples.tar.gz
23:28 xantus_ its still uploading
23:28 xantus_ wait 1 minute
23:28 MojoGuest179 ok
23:28 xantus_ OMG SO SLOW HERE
23:29 xantus_ I should be at home with my 50mb connection
23:29 Alias_ joined #mojo
23:29 MojoGuest179 ok
23:29 xantus_ :)
23:30 xantus_ ok, its done, you can download it
23:30 MojoGuest179 ok i did it
23:30 MojoGuest179 :)
23:32 MojoGuest179 so what this file contains?
23:32 ask_ joined #mojo
23:34 ask_ joined #mojo
23:36 MojoGuest179 <xantus_> you there?
23:36 xantus_ yes
23:37 xantus_ that contains all the files you need to run it
23:37 MojoGuest179 ok i see
23:40 MojoGuest179 ok thanks i will try to run it
23:41 MojoGuest179 will ask you if i have some problem
23:56 MojoGuest762 joined #mojo

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