Camelia, the Perl 6 bug

IRC log for #mojo, 2011-09-30

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

All times shown according to UTC.

Time Nick Message
01:39 f00li5h joined #mojo
02:03 MojoGuest290 joined #mojo
02:03 MojoGuest290 From: http://www.google.com/url?sa=t&rct=j&q=​mojo%20websocket%20demo&source=web&cd=1​&sqi=2&ved=0CBoQFjAA&url=http%3A%2F​%2Fdev.xantus.org%2F&ei=YSOFTta2Loas8gOfu5x​M&usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (1 hits)
02:10 shonorio joined #mojo
02:19 perlrocks Twitter: "heaps of #cpan releases y'day, my pick is either Mojolicious, Net::Twitter or YAML - though lots of others look really useful as well #perl" --PerlDean http://twitter.com/PerlDean​/status/119597300556382208
03:49 grim_fandango joined #mojo
04:24 Alias_ joined #mojo
04:58 Eugene joined #mojo
05:00 mohan_ joined #mojo
05:10 perlrocks Twitter: "Future Perfect is Mojolicious Mojo, and more." (ja) --clicktx http://twitter.com/clicktx​/status/119640279606239232
05:19 Eugene joined #mojo
05:42 f00li5h joined #mojo
06:02 sromanov joined #mojo
06:11 D4RK-PH0ENiX joined #mojo
06:35 koban joined #mojo
06:51 sromanov joined #mojo
07:01 lammel2 joined #mojo
07:02 marcus good morning, fellow revolutionaries!
07:12 tempire well well
07:13 tempire http://search.cpan.org/dist/MongoDB/
07:13 tempire oh I guess that's been there for a while.
07:13 tempire never mind, old blog entry.
07:16 marting joined #mojo
07:17 Alias_ joined #mojo
07:18 Vandal joined #mojo
07:42 marting1 joined #mojo
07:43 marcus :D
07:44 marcus it's there, it's queer,get used to it!
07:55 tempire why do people submit homebrew formulas that do not work?
07:55 tempire WHY
07:59 noganex joined #mojo
08:00 marcus to fuck with you, probably
08:05 cosmincx joined #mojo
08:11 tempire :(
09:05 mcrz joined #mojo
09:05 mcrz Hey all!
09:06 mcrz Anyone knows is there any simple CRUD plugin or whatever for Mojolicious around? Can't find any
09:16 diegok mcrz: hm, crud?, there is no ORM neither...
09:21 Eugene joined #mojo
09:32 mcrz joined #mojo
09:39 srithegrey https://github.com/kraih/mojo/issues/223 # anyone else having problems like this?
09:47 jkitazawa joined #mojo
10:18 MojoGuest972 joined #mojo
10:18 MojoGuest972 From: http://www.google.it/url?sa=t&source=web​&cd=2&ved=0CDMQFjAB&url=http%3A%​2F%2Fdev.xantus.org%2F&rct=j&q=webso​cket%20demo&ei=rZaFTof9ONSYhQek7uTlDA&am​p;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg&amp​;sig2=xQnriGyt-QxDjQJ_fc0K4Q&cad=rja (1 hits)
10:18 MojoGuest972 test
10:18 crab isn't it a bit late to ask after closing the report?
10:19 srithegrey why?
10:20 srithegrey that report is pretty much useless, but maybe someone else has an idea how to replicate the issue
10:23 crab ok
10:27 srithegrey (in case there really is an issue, which we don't know unless it can be replicated)
10:28 srithegrey too bad cpantesters is still down
10:40 srithegrey zakame: those tests are also rather old
10:40 srithegrey i very much doubt it's a 1.98 -> 1.99 thing
10:53 judofyr joined #mojo
10:56 mcrz joined #mojo
11:34 perlrocks Twitter: "A #mojolicious #google #oauth2 example: http://j.mp/riMgVA #perl" --zakame http://twitter.com/zakame/​status/119736819008028672
12:38 shonorio joined #mojo
12:38 stephan48 is there something better than that to get $urlparams sorted by keys? ehttp://pastebin.com/xHm1Jp3u
13:08 omega Mojo::Client was deprecated in 1.13, but when was it removed? can't find in Changes
13:09 srithegrey prolly the second major release later
13:11 srithegrey i bet it got removed together with a lot more deprecated stuff
13:12 stephan48 srithegrey: any idea?
13:12 purl any idea is probably welcomed.
13:13 stephan48 i get the params as string(but also can change that to a hash)
13:13 srithegrey link is broken, so i didn't look
13:14 stephan48 http://pastebin.com/xHm1Jp3u
13:15 srithegrey that looks horrible, whatever you're trying to do, there is most likely a better way
13:15 stephan48 yap
13:15 stephan48 i need to have the input(f.e. content of $params_hash) sorted by keys
13:15 srithegrey now take two steps back, take a deep breath, and explain what you're trying to achieve
13:16 judofyr srithegrey: any reason why use utf8; $self->render(json => {foo => 'æøå'}); would give this: http://d.pr/qbmv
13:16 stephan48 /achieve
13:16 purl step back. explain what you're trying to achieve.
13:17 stephan48 ah not exactly the same text :)
13:17 srithegrey like my @names = sorts $params->param;?
13:17 stephan48 this is for an online api(yubico validation service), so i can make an hmac over the params and add it to the uri later
13:18 srithegrey judofyr: what is *this*?
13:18 purl somebody said *this* was what I'm meant to actually read right? http://github.com/nothingmuch/moose/commit​/c531428ccde1a3253678b68584e6fd6eb2bae293
13:19 srithegrey is whatever you're using to look at the json actually json aware?
13:19 judofyr srithegrey: it's just chrome
13:19 judofyr it's broken even without the funky JSON colorscheme
13:19 judofyr {"foo":"æøå"}
13:19 srithegrey then my bet is on chrome doing something wrong
13:21 srithegrey perl -Mojo -E'use utf8; a("/" => {json => {foo => "♥"}})->start' get /
13:21 srithegrey because in my utf8 terminal it works
13:21 judofyr srithegrey: it works fine with curl
13:21 srithegrey it's chrome
13:21 stephan48 srithegrey: sorts?
13:21 purl sorts are not kind to me # (dys)functional pun
13:22 stephan48 you mean sort?
13:22 srithegrey stephan48: ye
13:23 stephan48 i guess basically i would need a sorted Mojo::Parameters to_string
13:25 srithegrey stephan48: if it's for arbitrary query strings your whole approach is flawed though
13:25 stephan48 mh?
13:25 purl well, mh is a unix commandline-based mail user agent or at http://www.ics.uci.edu/~mh/ or Men's Health magazine or a "women's magazine" for men or Getty's way of saying hm or your way of saying hm
13:25 srithegrey ?foobar ?foo=bar&foo=baz&whatever=23 are both valid query strings too
13:25 stephan48 i get 1 parameter and need to build an uri for a webservice
13:26 stephan48 which needs to include a hash over the constructed query parameters of the uri
13:29 srithegrey judofyr: it's garbage in safari too, i bet they interpret it as latin1 or so
13:32 mohan joined #mojo
13:33 srithegrey and firefox wants to save the "text document" in my downloads folder :S
13:34 srithegrey and i was spot on
13:34 srithegrey safari default encoding is latin1 here
13:35 srithegrey i bet if you change the mime type to "application/json;charset=UTF-8" it could work
13:35 srithegrey it's very wrong, but could work
13:37 srithegrey kinda weird that modern browsers are not json aware
13:38 judofyr as long as AJAX works correctly though
13:38 srithegrey different situation there, since the browser doesn't try to interpret the content
13:42 srithegrey hmm, amazon buying palm, now that could be interesting
13:44 koban left #mojo
13:48 MojoGuest561 joined #mojo
13:48 MojoGuest561 From: http://www.google.com/search?gcx=c&source​id=chrome&ie=UTF-8&q=extjs+ssh+client (1 hits)
13:55 metaperl joined #mojo
14:04 KayT3 joined #mojo
14:13 metaperl|2 joined #mojo
14:15 stephan48 ::https://github.com/kraih/mojo/pull/224 @ srithegrey
14:15 stephan48 https://github.com/kraih/mojo/pull/224
14:18 judofyr stephan48: should it rather take %options?
14:19 srithegrey stephan48: closed for lack of explanation
14:20 srithegrey i wouldn't even know where to start a discussion based on that patch
14:21 stephan48 judofyr: sure would maybe make more sense, also some tests would be usefull :)
14:21 srithegrey stephan48: i don't even understand the patch, as far as i can see it is completely broken
14:22 stephan48 and as stated its completly untested..
14:22 stephan48 jap and completly broken
14:22 srithegrey it turns keys into values and values into keys
14:22 * srithegrey doesn't get it
14:23 srithegrey perhaps you should take a closer look at how the code currently works
14:23 stephan48 mh.... reading the function before doing something would make sense :)
14:23 srithegrey because it already has an internal order
14:23 srithegrey query strings are arrays internally
14:24 stephan48 if i see it correctly my approach would even been possible to sort them based on keys with the current to_string function
14:25 srithegrey you have access to the raw array, everything is possible from the outside already
14:27 srithegrey ->params
14:28 stephan48 yap
14:28 srithegrey the order is also guaranteed
14:28 purl okay, srithegrey.
14:28 srithegrey so you might not even have to sort
14:28 srithegrey since a checksum would always be the same
14:29 stephan48 so it goes out the ways it goes in?
14:29 srithegrey it's an array, order is preserved
14:30 stephan48 let me explain a bit further, the api expects me to sort the keys alphabetically and then make an checksum over it, they do the same to verify it
14:30 stephan48 when i give them in in random order it wont work cause it will give different checksums
14:30 srithegrey eww
14:31 srithegrey then use ->params and sort yourself
14:31 stephan48 http://code.google.com/p/yubikey-val-​server-php/wiki/ValidationProtocolV20 "Generating signatures" "Alphabetically sort the set of key/value pairs by key order. "
14:31 srithegrey or add values alphabetically
14:32 stephan48 so just skip every second entry in the array(the values) to get the keys?
14:33 srithegrey like to_string does it
14:59 shonorio joined #mojo
15:01 cosimo joined #mojo
15:11 andrefs joined #mojo
15:32 andrefs joined #mojo
15:49 andrefs joined #mojo
15:55 Foxcool joined #mojo
16:02 andrefs joined #mojo
16:13 andrefs joined #mojo
16:21 zenbitz joined #mojo
16:44 andrefs joined #mojo
16:56 MojoGuest601 joined #mojo
16:56 MojoGuest601 From: http://news.ycombinator.com/item?id=1277067 (10 hits)
17:03 zenbitz joined #mojo
17:06 grim_fandango joined #mojo
17:25 zenbitz can I connect to several databases with Mojolicious::Plugin::Database?
17:26 zenbitz Do I give them different names and helpers?
17:26 zenbitz i.e, $self->plugin('db1',{... helper => 'db1'})
17:38 zenbitz more simple questions... I am sorry to spam with simple stuff but I got something stupid dropped on me
17:38 zenbitz and I only have days to get something working
17:39 zenbitz how does Mojo::Upload->get_chunk work?
17:39 zenbitz if I get a chunk starting from (0), ... oh, I guess I have to find the chunk_size
17:40 zenbitz $ENV{MOJO_CHUNK_SIZE}!
17:51 kaare joined #mojo
17:55 amoore joined #mojo
18:17 tabbi joined #mojo
18:17 tabbi left #mojo
18:24 ispy_ joined #mojo
18:31 srithegrey wow, person of interest is awesome, totally has this dark knight vibe
18:32 srithegrey it's so good it will prolly not get a second season :S
18:40 Eugene joined #mojo
18:45 zenbitz oy, I am having trouble with EP syntax
18:45 zenbitz %= for (my $i=0; i<@$coords;$i++) {
18:45 zenbitz 6.
18:45 zenbitz %= $i $coords->[$i]
18:45 zenbitz 7.
18:45 zenbitz % }
18:46 zenbitz HHAHAHAHAH
18:46 zenbitz i'm an idiot
18:46 zenbitz going away now
18:46 zenbitz i!=$1
18:46 zenbitz $i
18:51 zenbitz well, 2 other typoes
18:51 srithegrey please do not paste into the channel
18:52 andrefs joined #mojo
18:57 MojoGuest791 joined #mojo
18:57 MojoGuest791 From: http://www.google.com/search?q=html5+irc+clien​t&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=o​rg.mozilla:en-US:official&amp;client=firefox-a (1 hits)
19:01 zenbitz sorry, thought I could sneak 3 lines past
19:01 zenbitz I will pastebin in the future
19:07 srithegrey and no sneaking :)
19:29 trone joined #mojo
19:36 MojoGuest606 joined #mojo
19:36 MojoGuest606 From: http://news.ycombinator.com/item?id=1277067 (11 hits)
20:00 perlrocks Twitter: "Mojolicious hack of the day: AnyEvent - Sebastian Riedel about Perl and the Web http://t.co/lAbMmUaY #perl" --perl_m8y http://twitter.com/perl_m8y​/status/119864150733238273
20:09 shonorio joined #mojo
20:10 andrefs joined #mojo
20:13 preflex_ joined #mojo
20:22 zenbitz can I use Mojolicious::Plugin::Database with Mojolicious::Lite?
20:22 zenbitz not really understanding how plugins/helpers work completley
21:03 MojoGuest163 joined #mojo
21:03 MojoGuest163 From: http://www.google.de/url?sa=t&amp;source=web&a​mp;cd=2&amp;sqi=2&amp;ved=0CCYQFjAB&amp;url=ht​tp%3A%2F%2Fdev.xantus.org%2F&amp;rct=j&amp;q=h​ttp5%20irc%20client&amp;ei=ey6GTo25C8bCtAaUmtH​gAQ&amp;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg​&amp;sig2=UIjFC2iHfp-X6-ABwT1Hqg&amp;cad=rja (1 hits)
21:09 metaperl joined #mojo
21:15 smpb joined #mojo
21:45 Akron joined #mojo
22:19 GitHub46 joined #mojo
22:19 GitHub46 [mojo] kraih pushed 1 new commit to master: http://git.io/dNwUZw
22:19 GitHub46 [mojo/master] improved message parser performance slightly - Sebastian Riedel
22:19 GitHub46 left #mojo
22:24 perlrocks Twitter: "Today is a mystical ,magical, mojolicious day.If you haven't done so take time to savor the day." --GratusOne http://twitter.com/GratusOn​e/status/119900413758676992
22:29 grim_fandango joined #mojo
23:38 srithegrey marcus: turns out i'm awful at benchmarks...
23:38 srithegrey hypnotoad has been faster than starman all along
23:39 srithegrey i only compared rps without looking at the transfer rate
23:40 srithegrey hypnotoad has a 10% higher transfer rate -.-
23:41 srithegrey and 30% higher without keep-alive
23:43 srithegrey and that's with 4 hypnotoad workers vs 5 starman workers
23:46 MojoGuest874 joined #mojo
23:46 MojoGuest874 From: http://news.ycombinator.com/item?id=1277067 (14 hits)
23:48 * srithegrey scratches his head
23:51 preflex_ joined #mojo
23:51 srithegrey rps is lower because hypnotoad sends more headers...
23:51 srithegrey *facepalm*
23:53 srithegrey it's meaningless, but still satisfying :)

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