Camelia, the Perl 6 bug

IRC log for #mojo, 2011-05-24

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

All times shown according to UTC.

Time Nick Message
00:25 metaperl joined #mojo
02:01 preflex left #mojo
02:05 preflex joined #mojo
02:23 Foxcool joined #mojo
02:26 marty joined #mojo
02:30 marty left #mojo
02:46 mikemagowan left #mojo
03:11 GitHub32 joined #mojo
03:11 GitHub32 mojo: master sugama * c0bf792 (2 files in 2 dirs): Slurped lines got utf8-flaged
03:11 GitHub32 mojo: master Sebastian Riedel * efbb49f (2 files in 2 dirs): Merge pull request #150 from jamadam/master ...
03:11 GitHub32 mojo: master commits 0a72e39...efbb49f - http://bit.ly/londkK
03:11 GitHub32 left #mojo
03:23 GitHub158 joined #mojo
03:23 GitHub158 mojo: master Sebastian Riedel * 6da1851 (6 files in 4 dirs): updated changes and fixed file modes - http://bit.ly/kGZ6vN
03:23 GitHub158 left #mojo
03:28 GitHub135 joined #mojo
03:28 GitHub135 mojo: master Sebastian Riedel * 7bca091 (2 files in 2 dirs): improved test case - http://bit.ly/katMV4
03:28 GitHub135 left #mojo
03:32 gshank_ joined #mojo
03:37 gshank left #mojo
04:02 miyagawa left #mojo
04:02 Alias left #mojo
04:12 miyagawa joined #mojo
04:21 miyagawa_ joined #mojo
04:22 miyagawa left #mojo
04:23 miyagawa_ is now known as miyagawa
04:45 perlrocks Twitter: "@kraih @dot_cloud @antirez #Mojolicious and #DotCloud and #Redis! Oh my! http://post.ly/25g5x" --gregbacon http://twitter.com/gregbaco​n/status/72885900190822400
05:34 abra left #mojo
05:44 d4rkie left #mojo
05:45 abra joined #mojo
05:57 kaare joined #mojo
06:03 perlrocks Twitter: "allframeworks / Perl: Why Mojolicious? http://ff.im/E3zFd" (ru) --planetperlru http://twitter.com/planetper​lru/status/72905639357194240
06:14 koban` joined #mojo
06:16 fhelmber_ joined #mojo
06:17 fhelmber_ left #mojo
06:17 fhelmbe__ joined #mojo
06:29 AmeliePoulain joined #mojo
06:32 perlrocks Twitter: "Pochemu # Mojolicious? http://goo.gl/fb/T1seP # perl # presentation # mojo # yapcrussia" (bg) --allframeworks http://twitter.com/allframewo​rks/status/72912884535017472
06:43 marcus pochemoche
06:47 koban` bad country detected - it's ru twit =)
06:47 koban` *detection
06:49 marcus koban`: ponimajo
06:56 d4rkie joined #mojo
07:14 Foxcool left #mojo
07:17 ysyrota joined #mojo
07:20 snearch joined #mojo
07:23 trone_ is now known as trone
07:26 tholen joined #mojo
07:30 Sugar joined #mojo
07:32 Foxcool joined #mojo
07:37 ComLock joined #mojo
07:39 yegor joined #mojo
07:50 ComLock left #mojo
07:55 ComLock joined #mojo
08:06 snearch left #mojo
08:08 ComLock left #mojo
08:09 ComLock joined #mojo
08:24 arthas joined #mojo
08:25 ajgb joined #mojo
08:44 Foxcool left #mojo
08:44 yegor left #mojo
09:11 ComLock left #mojo
09:13 Foxcool joined #mojo
09:20 fhelmber_ joined #mojo
09:25 fhelmbe__ left #mojo
09:33 perlrocks Twitter: "Mojolicious first steps. Hello world on Mojolicious! / Mojolicious / allframeworks.ru - Blog about modern web pa ... http://icio.us/GNLezs" (ru) --dmarsentev http://twitter.com/dmarsent​ev/status/72958412945764352
09:48 cosmincx left #mojo
09:49 perlrocks Twitter: "Mojolicious. Video guide. / Mojolicious / allframeworks.ru - Blog about modern web development and tool ... http://icio.us/svyFrF" (ru) --dmarsentev http://twitter.com/dmarsent​ev/status/72962340185833472
09:50 spleenjack joined #mojo
10:03 cosmincx joined #mojo
10:06 marty joined #mojo
10:08 perlrocks Twitter: "Automator & Terminal in routine mojolicious http://post.ly/25l9j" (ru) --meettya http://twitter.com/meettya​/status/72967168198852608
10:14 Foxcool left #mojo
10:18 cosmincx left #mojo
10:19 cosmincx joined #mojo
10:34 Foxcool joined #mojo
10:34 Foxcool left #mojo
10:35 Foxcool joined #mojo
10:52 tabbi joined #mojo
10:52 tabbi left #mojo
11:11 ysyrota how to replace app->static->prefix("/public") in the current version of mojo?
11:13 yko ysyrota, http://mojolicio.us/perldo​c?Mojolicious/Static#root
11:14 yko something like app->static->root('alt_public') should work
11:15 fmerges joined #mojo
11:17 sh4 joined #mojo
11:20 ysyrota yko: nope. this just specifies root dirtectory
11:27 yko ysyrota, http://pastebin.com/9ZqGXRvn
11:27 yko that works for me
11:31 ysyrota yko: but it won't work if you GET /foo/test.txt
11:31 ysyrota yko: it used to work with prefix
11:33 yko GET /foo/test.txt would search for 'foo/foo/test.txt' in that case
11:34 ysyrota yko: but with old prefix() function, it looked in '/foo/test.txt'
11:34 yko looks like I don't get you right or you don't get M::Static right :)
11:34 yko both can be true though
11:35 yko well, i'm going to take my pipe and cup of coffee and go in park smoke and look at girls playing there
11:35 yko i don't care about your static prefixes :P
11:35 ysyrota yko: Prefix path to remove from incoming paths before dispatching
11:35 yko ooooh
11:36 ysyrota yko: stop smoking and play with girls :)
11:36 yko i prefer to watch
11:38 yko i think i never used prefix() with static
11:39 yko so, in earlier versions GET /public/test.txt was looking for $HOME/public/test.txt ?
11:40 yko that looks wrong.. :\
11:41 yko you can remove your prefix in before_dispatch hook but that way also looks wrong
11:41 yko why you need removing prefixes like 'public' from request path at all?
11:41 yko anyway, i'm leaving. pipe , park and girls are waiting
11:44 Foxcool left #mojo
11:53 marcus what kind of pipe? :)
11:59 ysyrota how Mojo know if file is static?
12:02 Foxcool joined #mojo
12:05 Akron joined #mojo
12:15 sh4 left #mojo
12:16 elb0w left #mojo
12:17 gtsafas joined #mojo
12:17 gtsafas is now known as elb0w
12:37 crab "does it exist in public?"
12:42 crab i still wish there were some supported way to ask "does a route of this name exist?"
12:47 dekimsey joined #mojo
12:51 arthas left #mojo
12:51 arthas joined #mojo
12:52 perlrocks Twitter: "[Atnd] Fukuoka Perl Workshop # 19: h1. Fukuoka Perl Workshop # 19h2. Contents * Tsuru (@ d_tsuru) ** Catalyst CRUD or structure of ... http://bit.ly/jJllWM Mojolicious" (ja) --bopperjp_feed http://twitter.com/bopperjp_f​eed/status/73008394809769984
13:10 perlrocks Twitter: "[Pu] Fukuoka Perl Workshop # 19: h1. Fukuoka Perl Workshop # 19h2. Contents * Tsuru (@ d_tsuru) ** Catalyst CRUD or power of building ... http://bit.ly/jJllWM Mojolicious" (ja) --promotter http://twitter.com/promotte​r/status/73012940424482816
13:15 Foxcool left #mojo
13:31 al joined #mojo
13:34 metaperl left #mojo
13:34 stephan48 hi al
13:34 al hi
13:34 al vive la resistance
13:35 stephan48 against what?
13:35 sri viva la revolucion!
13:35 al > topic
13:35 * al joined the revolution
13:35 stephan48 oh no no revolution...
13:35 Foxcool joined #mojo
13:35 stephan48 that tends to fill the aligator pit..
13:36 al alligators rock
13:38 stephan48 :)
13:39 sri http://www.cpantesters.org/cpan/report​/e58e4724-84b4-11e0-9702-c0658b557386 # what the hell is this fail?
13:40 stephan48 t/mojo/message.t ..............................
13:40 stephan48 Failed 832/968 subtests
13:40 stephan48 oops
13:41 sri i'd like details
13:41 sri it smells like a segfault or so
14:07 d4rkie left #mojo
14:09 metaperl joined #mojo
14:11 AmeliePoulain left #mojo
14:17 sri crab: what for?
14:17 purl for fun.
14:18 sri crab: low level support is there, just build yourself a plugin
14:19 sri https://github.com/kraih/mojo/blob/mast​er/lib/Mojolicious/Routes/Match.pm#L187
14:19 sri that's all the logic you need
14:23 crab sri: ->path_for('named') itself is really all i need.
14:26 perlrocks Twitter: "@kraih is there some kind of howto for setting up #mojolicious on #dotcloud?" --ttyS1 http://twitter.com/ttyS1/status/73032040223744000
14:27 perlrocks Twitter: "@ttyS1 http://t.co/aKmB2KI" --kraih http://twitter.com/kraih/status/73032278749618176
14:27 amoore joined #mojo
14:28 sri how very weird, i don't enjoy starcraft 2 anymore
14:32 stephan48 why howto?
14:32 stephan48 its not that hard...
14:32 stephan48 Bootylite was 5 mins until it was setup
14:34 sri most people like a little hand holding
14:34 sri even if it's trivial
14:35 stephan48 aka let some one other do the thinking? :)
14:37 crab i wonder why they are running nginx *and* uwsgi
14:37 stephan48 any problem with that?
14:38 cosmincx left #mojo
14:38 crab no, but what is it for?
14:38 purl okay, crab.
14:39 stephan48 uwsgi for the plack connection i think and nginx as webserver..
14:45 crab purl: forget but what
14:45 purl crab: I forgot but what
14:45 crab why does anyone put up with purl again?
14:45 koban` left #mojo
14:52 ajgb left #mojo
14:56 dekimsey left #mojo
15:03 ajgb joined #mojo
15:04 perlrocks Twitter: "Mojolicious:: Lite is convenient and it ー" (ja) --konpyu http://twitter.com/konpyu/status/73041744379392000
15:25 * sri kisses purl
15:25 * purl swoons!
15:26 stephan48 poor purl
15:26 purl *snif*
15:27 marty purl: seen purl?
15:27 purl purl was last seen on #sao-paulo.pm 2 years, 247 days, 18 hours, 17 minutes and 11 seconds ago, saying: Kill them all; God will know his own.  [Sep 18 21:09:59 2008]
15:27 stephan48 not self aware :(
15:27 marty :)
15:39 kaare left #mojo
15:40 kaare joined #mojo
15:45 Foxcool left #mojo
15:50 sh4 joined #mojo
15:55 Foxcool joined #mojo
15:59 kaare left #mojo
16:01 kaare joined #mojo
16:06 * crab kicks purl in the rear
16:08 kaare left #mojo
16:10 gshank_ is now known as gshank
16:10 kaare joined #mojo
16:18 ysyrota left #mojo
16:18 ysyrota joined #mojo
16:19 ysyrota left #mojo
16:21 marcus ooh, dotcloud gets mongodb support shiny
16:21 marcus guess I should get started and test it.
16:23 sri neat
16:24 marcus will see if I can deploy my shopify app there.
16:39 ajgb left #mojo
16:44 kaare left #mojo
16:45 kaare joined #mojo
16:51 elb0w What is a good example of a plugin for Mojo? I want to build one, be nice to look at someones code to get started
16:52 sri there are a few plugins included as examples
16:52 elb0w Ok
16:52 elb0w I have a cool plugin im going to write for this startup I like
16:52 sri https://github.com/kraih/mojo/tr​ee/master/lib/Mojolicious/Plugin
16:52 elb0w soon as im done with this free lance job
16:56 kaare left #mojo
16:58 kaare joined #mojo
16:59 crab and what will it do?
17:00 marcus 'slpode
17:03 elb0w top secret :o
17:03 elb0w tempted to make it a seperate module, but be cooler to integrate into mojo
17:04 sri do both?
17:04 elb0w Yeah, ill start with mojo though
17:13 ua joined #mojo
17:13 crab hi ua.
17:13 ua how do cap'n
17:15 Foxcool left #mojo
17:20 fmerges left #mojo
17:24 Akron left #mojo
17:25 kaare left #mojo
17:27 kaare joined #mojo
17:36 Foxcool joined #mojo
17:38 dekimsey joined #mojo
17:40 spleenjack left #mojo
17:40 d4rkie joined #mojo
17:44 crab i wonder if it really makes any sense to make users enter their password twice when setting it.
17:44 crab (then again, i have actual users right now who cannot type their own email address. so maybe it does.)
17:52 kaare left #mojo
17:53 kaare joined #mojo
18:00 Sugar left #mojo
18:05 fhelmber_ left #mojo
18:06 tabbi joined #mojo
18:06 tabbi left #mojo
18:47 kaare left #mojo
19:09 tempire it only makes sense to have users type in their passwords twice if the password is hidden
19:09 tempire I personally hate it
19:09 tempire I like to make a checkbox that hides the password if that's what you want
19:10 stephan48 i would start with hidden password and make a button with mouseover to unhide it
19:10 tempire but otherwise, just displays it for the user to see
19:10 tempire either way
19:10 purl either way is efficient.. =) or just as messy or a package of cheese or a desperate form of hocus-pocus or worse than a monkey's nostril or better than a poke in the eye with a sharp stick or a Canadian dance troupe or not what you want to do on a Saturday morning
19:10 tempire depends on whether your focus is more on security or more on usability
19:10 tempire which is dependent on who/what you're targeting
19:11 tempire like, for example, if I was john conner, I would probably want the password hidden by default
19:12 stephan48 i like it hidden but with option to unhide it for short moment for sanity check what i typed
19:25 crab hmm, i wonder if toggling the input's type with jquery will show the content...
19:26 crab i could have a button that toggles the type and then sets a timer to change it back after a second or so.
19:29 * sri would have killed john connor a long time ago if it wasn't for those damn hidden passwords...
19:38 ashleydev_ left #mojo
19:41 tempire crab: toggling the input type is unreliable.  Some versions of IE don't acknowledge the change...I don't remember which versions do what.
19:43 tempire create a small plugin to abstract how the toggling works, so you can deal with the details separately
19:43 tempire sri: have you seen the sarah conner chronicles?
19:44 tempire I just finished watching them.
19:44 tempire freaking awesome
19:47 sri yea, was quite good
19:48 sri really sucks that they are canceling all good scifi shows after one season...
19:48 tempire indeed
19:48 tempire It wasn't renewed because Fox chose to invest in Dollhouse instead.
19:48 tempire I think they were trying to make up for Firefly.
19:49 tempire But that decision was complete fail.
19:49 crab when you have no tv, like me, such decisions matter much less ;-)
19:49 tempire I'm on a time delay.
19:49 tempire I discover things once they get to netflix.
19:52 sri well, season 2 of dollhouse got really good
19:53 tempire did it?  I watched season 2 ep 1, and got bored.
19:53 sri the end is awesome
19:53 tempire I'll try again
19:53 sri you have to watch the bonus episode from season 1
19:54 sri there was an unaired episode showing the future, very terminator
19:55 tempire that one was good, the epilogue episode 13 of s1
19:55 tempire I'd prefer more of that
19:55 sri that's how everything ends
20:06 perlrocks Twitter: "Vuln: Mojolicious CVE-2010-4802 'Commands.pm' Unspecified Vulnerability: Mojolicious CVE-2010-4802 'Commands.pm'... http://bit.ly/lfNCgB" --infotechmike http://twitter.com/infotechm​ike/status/73117683511590913
20:09 perlrocks Twitter: "Vuln: Mojolicious CVE-2010-4802 'Commands.pm' Unspecified Vulnerability http://www.securityfocus.com/bid/47717" (es) --D3Seguridad http://twitter.com/D3Segurid​ad/status/73118350078775297
20:11 Foxcool left #mojo
20:12 sh4 left #mojo
20:17 crab wtf, unspecified vulnerability
20:19 sri someone is still looking through our changelog
20:20 perlrocks Twitter: "Vuln: Mojolicious CVE-2010-4802 'Commands.pm' Unspecified Vulnerability http://dlvr.it/SsRJR" --pikipiki_net http://twitter.com/pikipiki_​net/status/73121115114979328
20:21 crab wtf do they hope to accomplish?
20:21 sri those versions are a year old ;p
20:21 sri i think debian still supports some
20:33 perlite left #mojo
20:35 perlite joined #mojo
20:40 ashleydev joined #mojo
20:42 toebu I wrote this mojo app which uses the Mojo::UserAgent for fetching fetching pages in proxy mode ... (asynchronously) when running in 'daemon' mode all is well, when running in 'fastcgi' mode, nothing happens after calling the get method of the user agent
20:43 sri fastcgi doesn't support async
20:44 toebu :-) yes this seems logical, but is there a way to disable the behaviour or do I have to write the code differencly
20:44 sri afraid you have to write the code differently (blocking)
20:44 toebu ok
20:45 ashleydev left #mojo
20:45 ashleydev joined #mojo
20:46 sri i've experimented a lot with hybrid solutions, where there was a fallback for non-async environments, but none worked out well
20:46 sri code just got extremely complex and unmaintainable
20:46 dekimsey left #mojo
20:46 toebu how about generating a warning when async is used in fcgi mode ? now it just seems to 'end' its life
20:47 sri i'm open for suggestions
20:48 sri however you need to be aware that there are more complex use cases
20:48 perlrocks Twitter: "#hacking #virus Mojolicious CVE-2010-4802 'Commands.pm' Unspecified Vulnerability http://goo.gl/fb/I4WxT" --secureslinger http://twitter.com/secureslin​ger/status/73128362184421376
20:49 toebu you mean, some where it would be possible to do 'it' in fastcgi mode ?
20:49 sri someone could run their own ioloop and still use the non-blocking api
20:49 sri if you do the start/stop yourself it can all still work
20:51 sri the wonderful world of event loops :)
20:51 crab #hacking #virus
20:51 toebu hmmm
20:52 toebu is there some place where you can determine that the fastcgi request is ending and nothing has been rendered ?
20:53 toebu there it might also be possible to see that there is still work to be done for the IO loop ?
20:54 miyagawa is there an AnyEvent impl for Mojo::IOLoop yet
20:55 sri yea, someone wrote one
20:55 sri no wait, the other way around
20:55 miyagawa heh
20:55 sri there was a module that replaced Mojo::IOLoop with AnyEvent
20:57 sri actually, i think there are multiple now
20:57 crab hm. i can't figure out why my POST request is dispatching two different handlers.
21:02 D4RK-PH0ENiX joined #mojo
21:04 d4rkie left #mojo
21:04 crab http://pastebin.com/1NJBngFi any suggestions?
21:04 crab a POST to /bids/approve dispatches bids#index and confirm#by_token
21:05 sri mixing mojolicious and anyevent is quite trivial though https://github.com/kraih/mojo/​wiki/Mojolicious-and-anyevent
21:05 sri without changing much
21:06 crab but there are other routes under /bids (below, not pasted) which work fine.
21:08 crab heh. i suppose my notation might not be exactly comprehensible.
21:09 perlrocks Twitter: "Vuln: Mojolicious CVE-2010-4802 'Commands.pm' Unspecified Vulnerability http://goo.gl/fb/3AooS" --BackTrack5 http://twitter.com/BackTrac​k5/status/73133532997877760
21:09 perlrocks Twitter: "Vuln: Mojolicious CVE-2010-4803 HMAC-MD5 Checksums Unspecified Vulnerability http://goo.gl/fb/bUNRp" --BackTrack5 http://twitter.com/BackTrac​k5/status/73133534906286080
21:13 sri toebu: with a bit of luck we won't need callbacks for async code in the future though
21:14 sri i'm working on a plugin that will turn normal blocking useragent calls into non-blocking ones using Coro
21:14 sri doesn't work quite right yet though
21:17 sri http://pastie.org/1968273
21:17 sri that's the basic idea
21:18 sri the best thing is you get a blocking looking api that works flawless inside templates, without actually blocking the whole process
21:18 * crab slaps himself for being an idiot
21:19 * sri slaps crab for slapping himself
21:30 toebu sri neat
21:32 toebu regarding proxy ... in my app, I get a page via the UserAgent and then I modify it using the dom->find(..)->each( sub {} ) method ... finally I set $res->body($dom->to_xml)
21:33 toebu the problem is that in the process of modifying the dom, the new xml is now larger than the original content and it seems the length of the $res does not get updated by setting the body ...
21:33 sri don't reuse $res
21:34 sri you're bound to screw up headers that way
21:36 toebu hmmm and fix_headers does not help either ... so I should create a Mojo::Message::Response
21:37 sri always
21:37 sri don't ever reuse message objects
21:38 toebu the pattern is from the proxy plugin, but there the res gets passed along without change
21:38 sri bad plugin then
21:38 toebu grin
21:39 arthas left #mojo
21:41 perlrocks Twitter: "#hacking #security Vuln: Mojolicious CVE-2010-4802 'Commands.pm' Unspecified Vulnerability http://dlvr.it/Sskp4 #slingnews" --secureslinger http://twitter.com/secureslin​ger/status/73141495154221057
21:41 amoore left #mojo
21:43 toebu sri thanks ... now it works
21:54 sri damn, i'm stupid
21:54 sri of course my Coro solution couldn't work...
21:54 tempire why not?
21:54 sri because i need many more useragent instances
21:55 sri can't reuse a single one
22:09 sri too bad
22:09 sri things get rather complicated with Coro too
22:09 sri you need a wrapper to handle a useragent pool
22:12 sri keep alive will cost a lot with a Coro api
22:17 sri http://pastie.org/1968510
22:18 sri the actual but rather underwhelming solution
22:19 sri the real problem is keep alive, to be competitive it would require a new kind of shared connection queue
22:22 tempire I want to start parkouring
22:22 tempire Is there a mojolicious plugin for that/
22:22 metaperl lol
22:28 sri hmm, async with callback scales *a lot* better than the Coro version :/
22:35 sri http://pastie.org/1968591 # final version
22:37 sri oh damn
22:37 sri my bad
22:38 sri i forgot to adjust the responsiveness of the new useragents
22:39 sri now they scale equal to the callback version -.-
22:40 sri interesting, i'm crashing kqueue
22:41 sri http://pastie.org/1968611 # and the fixed version
22:41 sri seems to work great with poll
22:41 sri if anyone feels like turning it into a plugin
22:43 tempire I'm not sure I understand it enough to do so
22:43 tempire have to look into Coro
22:43 sri it's quite easy
22:44 sri the real problem to make it production ready will be new connection queue infrastructure for mojolicious
22:47 metaperl left #mojo
22:48 sri it would have to be ioloop independent
22:48 sri so multiple ioloops could share one queue
22:53 tempire You should what you should do, is write a series of blog tutorials describing the mojolicious internals.
22:54 tempire maybe not even blogs, just documenting the flow of stuff
23:01 sri most of this is actually documented
23:01 sri not sure what internals you are referring to
23:02 tempire I'm perusing through the code, following the path that each request takes
23:03 tempire looking for what exactly the 'connection queue infrastructure' entails
23:03 sri in Mojo::UserAgent that's rather complex
23:03 sri currently it's just a connection id (in ioloop) to host:port map
23:04 tempire I was thinking you meant the connect subs in useragent & ioloop
23:04 sri naah, ioloop shouldn't care about connection state
23:05 sri actually Mojo::IOLoop->test could be moved to the queue thingy
23:06 sri connections would be moved between queue and ioloop by the useragent
23:07 sri ioloop would have to learn Mojo::IOLoop->remove($id) or so
23:10 janus left #mojo
23:10 janus joined #mojo
23:18 metaperl joined #mojo
23:42 j3nnn1 joined #mojo

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