Camelia, the Perl 6 bug

IRC log for #mojo, 2010-11-12

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

All times shown according to UTC.

Time Nick Message
00:01 perlrocks Twitter: "Interesting and annoying how the most commonly reported bugs in #mojolicious are caused by broken installations of IO::Socket::SSL. #perl" --kraih http://twitter.com/kraih/status/2873565493854208
00:33 und3f sri, how to get Mojo::Client connection id? Or how to setup idle timeout for Mojo::Client?
00:45 und3f is now known as und3f[A]
00:51 daviddelikat joined #mojo
01:53 Akron left #mojo
02:05 GitHub194 joined #mojo
02:05 GitHub194 mojo: master Sebastian Riedel * a9439d4 (4 files in 3 dirs): added clean way to interrupt long polling connections client side - http://bit.ly/bUdJbQ
02:05 GitHub194 left #mojo
02:07 sri und3f[A]: $tx->connection
02:17 GitHub50 joined #mojo
02:17 GitHub50 mojo: master Sebastian Riedel * e035f84 (2 files in 2 dirs): cleanup - http://bit.ly/bRIfhe
02:17 GitHub50 left #mojo
02:41 GitHub158 joined #mojo
02:41 GitHub158 mojo: master Sebastian Riedel * 5681a11 (1 files in 1 dirs): cleanup - http://bit.ly/a6HMrJ
02:41 GitHub158 left #mojo
03:03 daviddelikat1 joined #mojo
03:04 daviddelikat left #mojo
04:04 tholen42 joined #mojo
04:06 tholen left #mojo
04:43 Kulag left #mojo
04:44 Kulag joined #mojo
04:50 perlrocks Twitter: "t / mojolicious / websocket_tls_proxy_lite_app.t .. 6 / Just do not get stopped at 16." (ja) --Naney http://twitter.com/Naney/status/2946250789879808
05:01 perlrocks Twitter: "Now quietly removed. RT @ Naney: t / mojolicious / websocket_tls_proxy_lite_app.t .. 6 / Just do not get stopped at 16." (ja) --Naney http://twitter.com/Naney/status/2949110382465024
05:14 Kulag left #mojo
05:17 Kulag joined #mojo
05:58 perlrocks Twitter: "perldoc Mojolicious:: Lite as a read." (ja) --Naney http://twitter.com/Naney/status/2963303437434880
06:00 daviddelikat1 left #mojo
06:40 koban joined #mojo
06:40 ltriant left #mojo
06:42 yakudzo Hello ppl
06:42 yakudzo If I use Plack to deploy mojo application do I need to proxy it throught some sort of web server ?
06:44 yakudzo or it is complite solution? and running plack myapp is everything that I need to deploy server to production?
07:09 kaare joined #mojo
07:12 omega yakudzo: it depends on what server you chose to have plack start
07:12 omega the default server for plack is no better than the built in for mojo
07:13 omega but depending on your needs, starman for instance might be production enough for you
07:15 yakudzo thanks
07:18 yakudzo omega, so for it will look like starman -> plack -> mymojoapp ?
07:19 omega yeah
07:26 marcus monsters monsters
07:26 marcus I like monsters
07:26 marcus we
07:26 marcus 'll have fun and plaaay
07:27 kvorg joined #mojo
07:36 incubusaurus joined #mojo
07:42 MojoGuest188 joined #mojo
07:42 MojoGuest188 left #mojo
08:07 yakudzo When I try to use Mojoliciouse Plugin SimpleSession it shows me following error with latest version of mojo http://paste.scsys.co.uk/55891
08:07 yakudzo did something changed in cookies ?
08:33 arthas joined #mojo
08:34 incubusaurus left #mojo
08:39 breaker313 joined #mojo
08:51 spleenjack joined #mojo
08:54 kvorg left #mojo
09:14 breaker313 left #mojo
09:14 kvorg joined #mojo
09:17 incubusaurus joined #mojo
09:18 incubusaurus left #mojo
09:43 kaare afaict the request content is in an 'asset' container when doing a rest post.
09:44 kaare Any easy way to get the decoded values?
09:46 omega I POST json to my WS, and use     my $json = $self->tx->req->json; to get it back out
09:53 Rhaen hello world
09:53 Rhaen left #mojo
09:53 kaare Famous last words
09:53 rhaen joined #mojo
09:54 kaare omega: It works! thanks
09:55 rhaen hello world
09:56 rhaen hm, membase looks very interesting for data storage
09:56 rhaen Does anyone have any experiences with it?
10:44 MojoGuest335 joined #mojo
10:44 MojoGuest335 From: http://www.google.se/search?sourceid=ch​rome&ie=UTF-8&q=web-socket+demo (1 hits)
10:44 MojoGuest335 asdfusdfusdf
10:44 MojoGuest335 sdfsd
10:44 MojoGuest335 fsd
10:44 MojoGuest335 f
10:44 MojoGuest335 sd
10:44 MojoGuest335 fsd
10:45 MojoGuest335 fsdsfsdf
10:45 MojoGuest409 joined #mojo
10:45 MojoGuest409 From: http://www.google.se/search?sourceid=ch​rome&ie=UTF-8&q=web-socket+demo (2 hits)
10:45 MojoGuest409 dgdf
10:45 MojoGuest409 sada
10:45 MojoGuest335 hgjhg
10:45 MojoGuest335 x§z§
10:46 MojoGuest409 sdfsdf
10:46 MojoGuest409 dfgdf
10:46 MojoGuest409 gdf
10:46 MojoGuest409 gdf
10:46 MojoGuest409 gd
10:46 MojoGuest409 fg
10:46 MojoGuest409 df
10:46 MojoGuest409 fs
10:46 MojoGuest409 gsd
10:46 MojoGuest409 f
10:46 MojoGuest409 gfsd
10:46 MojoGuest409 gsd
10:46 MojoGuest409 fg
10:46 MojoGuest409 sd
10:46 MojoGuest409 gsd
10:46 MojoGuest409 f
10:46 MojoGuest409 gdf
10:46 MojoGuest409 gd
10:46 MojoGuest409 f
10:46 MojoGuest409 fgdfg
10:46 MojoGuest409 df
10:46 MojoGuest409 g
10:46 MojoGuest409 dfg
10:46 MojoGuest409 dsf
10:46 MojoGuest409 gsd
10:46 MojoGuest409 gsd
10:46 MojoGuest409 fg
10:46 MojoGuest409 df
10:46 MojoGuest409 g
10:46 MojoGuest409 df
10:46 MojoGuest409 gd
10:46 MojoGuest409 f
10:46 MojoGuest409 gsd
10:49 su-bzero_ Finish HIM!
10:50 kvorg left #mojo
10:59 kvorg joined #mojo
11:01 MojoGuest335 left #mojo
11:02 kvorg left #mojo
11:08 yakudzo Mojolicious::Plugin::SimpleSession not working with latest version of mojo
11:08 yakudzo cookies problem
11:08 yakudzo (:
11:22 kvorg joined #mojo
11:26 kvorg left #mojo
12:19 incubusaurus joined #mojo
12:40 forwardever joined #mojo
12:41 memowe_ joined #mojo
12:43 memowe left #mojo
12:43 forwardever http://blog.urth.org/2010/11/what-versions-of​-core-perl-should-module-authors-support.html​?utm_source=feedburner&utm_medium=feed&am​p;utm_campaign=Feed%3A+PlanetPerl+%28Planet+P​erl%29&utm_content=Google+International
12:44 sri yakudzo: strange
12:46 fhelmberger left #mojo
12:48 yakudzo sri everithing goes fine if change $cookie_hash = $cookie->value->to_string; to $cookie_hash = $cookie->value; in package Mojolicious::Plugin::SimpleSession;
12:48 snearch joined #mojo
12:48 sri $cookie->value->to_string where does to_string come from?
12:51 memememomo_ is now known as memememomo
12:51 sri omega: our built in daemon is way better than the default plack server
12:51 sri comparing them is an insult
12:52 sri -.-
12:52 daviddelikat joined #mojo
12:53 kvorg joined #mojo
12:53 sri rhaen: membase seems very limited
12:53 yakudzo sri, don't know it was working in previous versions... but now does not... thanks to vti telling me solution (:
12:54 sri yakudzo: that to_string usage smells like a bug
12:54 sri there is no way it was part of the official api
12:55 sri actually i don't think the cookie api changed at all
12:55 sri thats what makes it so strange
12:56 sri hmm...->value might have returned a Mojo::ByteStream object by accident
12:56 sri thats the only explanation i can think of
12:56 sri why did nobody report that?
12:59 yakudzo maybe nobody used cookies ?(:
12:59 spleenjack sri: i just found a bug in mojo::parameters, test case - http://pastebin.com/RkMsyVj6
12:59 spleenjack the problem is on line #26: if (defined $_[1]) { $self->append(@_) }
12:59 spleenjack it fixes by replacing the condition with '@_ > 1'
12:59 memememomo is now known as memememomo_
13:00 sri yakudzo: most people seem to use cookies
13:01 breaker313 joined #mojo
13:06 GitHub188 joined #mojo
13:06 GitHub188 mojo: master Sebastian Riedel * 0049d4e (3 files in 3 dirs): fixed a small bug in Mojo::Parameters - http://bit.ly/biT4Lw
13:06 GitHub188 left #mojo
13:06 sri spleenjack: fixed
13:06 spleenjack thanks
13:12 omega sri: perhaps, perhaps :)
13:12 sri guaranteed
13:19 sri the comparison is so ridiculous it makes me wat to start wearing
13:19 sri *want
13:19 sri *swearing
13:19 sri grr
13:20 sri and wonder why people are so clueless when it comes to http servers
13:20 kvorg left #mojo
13:22 forwardever left #mojo
13:23 sri i can only imagine this must be the way chansen felt back in the catalyst days xD
13:36 sri the sad truth is 99% of all perl hackers would just try to use examples/microhttpd.pl if i told them it can serve 24k req/s to apache bench ;p
13:49 DaTa http://data.rbfh.de/p/2010-11-12Lido3RqV shouldn't that work?
13:49 stephan49 mh?
13:54 kvorg joined #mojo
13:56 sri DaTa: where did you see that?
13:56 sri (it should not work)
13:57 sri the problem with raw regex is that it always results in an unreadable mess
13:59 sri and many more little problems like no named captures
13:59 sri not to mention no reversibility
14:00 sri pure regex is something you only support if you don't give a damn about usability ;p
14:01 DaTa sri: well, all i need is a "catch every request" :)
14:01 kvorg left #mojo
14:01 sri then do just that!
14:01 sri :)
14:01 sri any '/(*everything)'
14:02 sri it's at the top of the lite tutorial ;p
14:02 DaTa sri: i've seen that in my code :) i've changed 'get qr!^!' to 'any qr!^!' and it breaked :)
14:02 sri that should have never worked
14:03 sri it prolly gets type castet into a string and recompiled into a regex or so
14:03 sri unintentionally
14:03 DaTa ok, i'm usung *everything :)
14:04 sri the point of a proper routes system is to always have clean routes :)
14:07 ryanc left #mojo
14:07 sri not having a working url_for would annoy the hell out of me
14:14 DaTa ah, why i came into this is: /(*a) translates to ^/(.+) what i want is ^/(.*) ... everything :)
14:15 sri any '/:a' => [a => '.*']
14:16 DaTa ah, that's it, awesome :)
14:16 DaTa sri: thanks
14:17 sri not too uncommon question, might be worth mentioning
14:19 polvo sri, i want to add custom method to Mojo::Parameters, what's the best way to do this?
14:19 alnewkirk left #mojo
14:19 sri polvo: what for?
14:20 sri because in general you're not supposed to
14:20 polvo sri, to return param() with leading and trailing spaces removed
14:21 sri do that externally
14:21 sri make your own param helper or so
14:21 sri don't mess with internals unless you really have to
14:22 polvo sri, that's why i'm asking :)
14:23 polvo sri, and by helper do you mean a plugin?
14:23 sri or just a helper
14:23 sri whatever you want to do
14:26 crab left #mojo
14:27 GitHub48 joined #mojo
14:27 GitHub48 mojo: master Sebastian Riedel * 17220cb (1 files in 1 dirs): improved example - http://bit.ly/dAjWr8
14:27 GitHub48 left #mojo
14:27 fhelmberger joined #mojo
14:30 MojoGuest112 joined #mojo
14:30 MojoGuest112 From: http://www.google.fr/search?hl=fr&​amp;q=websocket+demo&aq=f&​aqi=&aql=&oq=&gs_rfai= (1 hits)
14:30 crab joined #mojo
14:30 MojoGuest112 test
14:30 sri pass
14:31 MojoGuest112 plop
14:31 Akron joined #mojo
14:31 MojoGuest112 left #mojo
14:39 breaker313 left #mojo
14:48 arthas left #mojo
14:58 jfuller left #mojo
15:10 a|newkirk[assoc] joined #mojo
15:14 kaare left #mojo
15:17 und3f[A] is now known as und3f
15:31 a|newkirk[assoc] is now known as alnewkirk
16:11 koban left #mojo
16:23 spleenjack1 joined #mojo
16:27 spleenjack left #mojo
16:49 MojoGuest409 left #mojo
16:58 Akron left #mojo
17:08 memowe joined #mojo
17:13 memowe_ left #mojo
17:20 su-bzero joined #mojo
17:25 su-bzero_ left #mojo
17:39 daviddelikat left #mojo
17:43 fhelmberger left #mojo
17:47 perlrocks left #mojo
18:02 spleenjack1 left #mojo
18:10 ash_ joined #mojo
18:22 ash_ left #mojo
18:22 ash_ joined #mojo
18:28 ash_ left #mojo
18:34 ash_ joined #mojo
18:57 incubusaurus left #mojo
19:02 stephen left #mojo
19:03 stephen joined #mojo
19:11 ash_ left #mojo
19:21 ash_ joined #mojo
19:22 yulia joined #mojo
19:23 yulia left #mojo
19:46 rhaen hello world
19:47 rhaen sri: it seems quite limited, right
19:48 rhaen sri: however the concept behind it seems to be quite flexible
19:48 rhaen sri: one thing I don't like so far - you have no chance to backup your stuff
19:55 ryanc joined #mojo
20:00 yulia joined #mojo
20:01 yulia left #mojo
20:24 MojoGuest864 joined #mojo
20:24 MojoGuest864 left #mojo
20:43 MojoGuest911 joined #mojo
20:43 MojoGuest911 hey hey
20:45 rhaen hej hej :)
20:48 MojoGuest911 ;)
20:51 MojoGuest911 left #mojo
20:52 MojoGuest902 joined #mojo
21:02 perlite_ joined #mojo
21:06 perlite left #mojo
21:06 perlite_ is now known as perlite
21:19 MojoGuest684 joined #mojo
21:19 MojoGuest684 From: http://www.google.com/search?clien​t=safari&rls=en&q=ExtJs+we​bsocket&ie=UTF-8&oe=UTF-8 (1 hits)
21:20 Bob52 joined #mojo
21:20 Bob52 From: http://www.google.com/search?clien​t=safari&rls=en&q=ExtJs+we​bsocket&ie=UTF-8&oe=UTF-8 (4 hits)
21:22 MojoGuest684 left #mojo
21:22 Bob52 left #mojo
21:29 spleenjack joined #mojo
21:34 sri rhaen: riak forever! :)
21:38 rhaen riak?
21:38 rhaen oh no
21:38 rhaen it's not webscale
21:39 sri it is INTERNET SCALE!
21:39 rhaen I don't like the map reduce stuff
21:39 sri don't use it
21:39 rhaen MY membase has a build in farmville. WHat about yours?
21:39 sri it has fulltext indexing!
21:39 rhaen *pfff*
21:40 rhaen riaak, there aren't any perl bindings for it.
21:40 sri of course there are
21:40 sri and t uses http
21:40 sri *it
21:40 rhaen my membase is a proven key value store based on the world technology leading memcache
21:40 sri oh, you're just trolling :)
21:41 rhaen :)
21:41 rhaen no serious - I am trying out membase.
21:41 rhaen I am used to memcache stuff, so why don't give it a chance?
21:41 rhaen however....
21:41 sri membase does like....nothing
21:41 rhaen I am not sure how to build complex structures with it
21:42 sri yea
21:42 rhaen it powers farmville
21:42 rhaen you can store JSON inside the value, so that's fine
21:42 rhaen however, it's limited to 4mb per value
21:43 sri ok, but how do you search for stuff?
21:43 rhaen by accessing the key
21:43 alnewkirk left #mojo
21:43 sri how would i store an inverted index?
21:43 sri word as key and a json value?
21:44 rhaen jep.
21:44 rhaen actually - that's the same way memcache works
21:45 sri ye, massive io overhead for everything non trivial
21:45 rhaen well, it's memory io - who cares?
21:46 rhaen however, there will be a way to run queries
21:46 rhaen using the plugin architecture, but I don't know anything about it, yes
21:46 rhaen yet
21:47 rhaen hmpf.
21:47 sri i like how easily membase scales
21:47 sri pretty much the same as riak
21:48 MojoGuest25 joined #mojo
21:48 MojoGuest25 left #mojo
21:56 snearch left #mojo
21:57 ash_ left #mojo
21:57 rhaen HA!
21:57 rhaen membase on macosx doesn't work as expected.
21:57 rhaen booooo!
21:58 sri eww
21:58 rhaen it fails in starting the moxi server (which is the memcache frontend)
21:58 sri 1:0 for riak
21:59 rhaen hm, would it be fair to file a bug report?
22:00 ash_ joined #mojo
22:00 sri why wouldn't it?
22:03 ash__ joined #mojo
22:04 ash_ left #mojo
22:04 ash__ is now known as ash_
22:05 und3f is now known as und3f[A]
22:23 rhaen hm.
22:23 rhaen they use jira as a bt system
22:23 rhaen *urks* - I don't like it
22:25 rhaen guess I'll remove the compiled sources and stick myself to ORLite
22:26 daviddelikat joined #mojo
22:27 rhaen bedtime - guess I will look into it tomorrow
22:36 kvorg joined #mojo
22:50 meraxes left #mojo
22:59 ash_ left #mojo
23:19 spleenjack left #mojo

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