Camelia, the Perl 6 bug

IRC log for #mojo, 2011-04-25

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

All times shown according to UTC.

Time Nick Message
00:02 mateu just drugs
00:02 mateu drugs without drama
00:02 * mateu returns to the casa from a day of burning limbs and yardwork
01:33 Drossel left #mojo
01:34 Kulag joined #mojo
01:51 Kulag left #mojo
01:52 Kulag joined #mojo
02:09 Drossel joined #mojo
02:11 Kulag left #mojo
02:17 Drossel left #mojo
02:22 Kulag joined #mojo
03:07 abra left #mojo
03:19 abra joined #mojo
03:56 Foxcool joined #mojo
04:12 trcjr left #mojo
04:37 trcjr joined #mojo
04:57 Foxcool left #mojo
04:57 trone left #mojo
05:03 trone joined #mojo
05:07 Foxcool joined #mojo
05:39 koban` joined #mojo
05:47 Foxcool left #mojo
05:59 Foxcool joined #mojo
06:11 Foxcool left #mojo
06:24 Foxcool joined #mojo
06:34 AmeliePoulain joined #mojo
06:42 Foxcool left #mojo
06:58 Foxcool joined #mojo
07:13 Foxcool left #mojo
07:24 Sugar joined #mojo
07:24 Foxcool joined #mojo
07:27 Sugar left #mojo
07:27 Sugar joined #mojo
07:40 koban` left #mojo
07:40 koban` joined #mojo
07:52 koban` left #mojo
07:54 Foxcool left #mojo
07:57 koban` joined #mojo
08:20 PerlNinja joined #mojo
08:20 zakame joined #mojo
08:23 koban` left #mojo
08:24 koban` joined #mojo
08:34 perlrocks Twitter: "Mojolicious-Plugin-Disqus 1.22 by MADCAT - http://frepan.org/~madcat/Moj​olicious-Plugin-Disqus-1.22/" --cpan_new http://twitter.com/cpan_ne​w/status/62434254839218177
09:02 perlrocks Twitter: "Mojolicious-Plugin-Authentication 1.12 by MADCAT - http://frepan.org/~madcat/Mojolic​ious-Plugin-Authentication-1.12/" --cpan_new http://twitter.com/cpan_ne​w/status/62441309557886976
09:31 sh4 joined #mojo
09:51 spleenjack joined #mojo
10:02 eugen_ joined #mojo
10:03 eugen_ is now known as eugen
10:06 eugen guys, I ran into a problem using Mojolicious::Lite. Can anybody explain the behavior of the grep here: https://gist.github.com/940321
10:26 moritz eugen: // is the last regex that matched successfully
10:27 moritz eugen: which could be *anything* (like, a regex from the dispatcher)
10:27 moritz eugen: you don't want that. Ever.
10:27 moritz eugen: what do you actually want to achieve?
10:30 eugen my aim was to filter the empty patterns. This is the string from the original code:
10:30 eugen @patterns = uniq grep { "" !~ $_ } map { qr/$i{all}{$_}{$search_criteria}/ } keys %{ $i{all} };
10:30 moritz eugen: grep length, map { .... }
10:30 eugen it doesn't work inside the mojolicious controller, however it works fine outside the controller :-)
10:31 moritz don't interpret random strings as regexes unless that's really what you want
10:31 moritz in this case it's not what you want
10:39 eugen moritz: Oh I see now: If 'pattern' is an empty string, the last successfully matched regex is used (perlreref)
10:39 eugen moritz: thanks for clarification
10:39 moritz that's really a misfeature in perl
10:50 perlrocks Twitter: "Mojolicious-Plugin-Authentication 1.13 by MADCAT - http://frepan.org/~madcat/Mojolic​ious-Plugin-Authentication-1.13/" --cpan_new http://twitter.com/cpan_ne​w/status/62468537364652032
10:50 janus moin
10:51 janus just had a thought about useragent caching...
10:51 janus as i've dealt with http archives in the past few weeks
10:52 janus that sounds like an interesting way to serialize a whole transaction
10:52 janus using what mojo can do anyways...
10:52 janus as in, serializing transactions in json according to the HAR spec
10:55 janus thoughts? crawling back under my rock in the meanwhile
11:08 moritz janus: try asking a more specific question
11:11 koban` left #mojo
11:12 koban joined #mojo
11:13 janus how should caching in Mojo::UserAgent look like? :)
11:13 fmerges joined #mojo
11:16 koban left #mojo
11:16 PerlNinja not :D
11:17 janus heh
11:18 PerlNinja dunno, I'd rather have an app handle that part and just use useragent for the fetching and user-agenty stuff
11:18 PerlNinja user-agenty stuff being the transportation of stuff from A to B - and if B happens to be a cache module, that's cool :D
11:19 PerlNinja otherwise UserAgent is going to turn into a swiss army frankensaw ... at least, in my currently hungry opinion
11:23 janus imho it is already given direct dom/json access :)
11:23 janus usually i try not to fire requests all the time when developing something that uses useragent
11:24 janus well, can be a plugin as well... i only don't want to write the same code again and again
11:26 PerlNinja :D
11:26 koban joined #mojo
11:26 PerlNinja moar plugins :D
11:56 koban left #mojo
11:56 koban joined #mojo
12:12 abra left #mojo
12:17 diegok janus: are you thinking on some kind of mech::cached like for Mojo::UserAgent ?
12:25 koban left #mojo
12:25 koban joined #mojo
12:30 janus more like LWP::UserAgent::WithCache
12:30 elb0w pretty funny http://duiker101.tk/hackertyper/
12:38 abra joined #mojo
13:11 arpadszasz joined #mojo
13:14 arpadszasz left #mojo
13:14 arpadszasz joined #mojo
13:22 kaare_ joined #mojo
13:28 sh4 left #mojo
13:28 sh9 joined #mojo
13:33 amoore joined #mojo
13:40 eugen_ joined #mojo
13:41 eugen left #mojo
13:45 koban left #mojo
13:46 eugen_ left #mojo
14:10 josh left #mojo
14:11 sri caching has no chance to become a core feature
14:13 marty left #mojo
14:14 marty joined #mojo
14:14 josh joined #mojo
14:15 marty left #mojo
14:20 marty joined #mojo
14:27 AmeliePoulain left #mojo
14:38 yko left #mojo
14:40 sh9 left #mojo
14:44 gshank_ is now known as gshank
14:57 PerlNinja fweee.... catch 22's = headache
15:05 arpadszasz left #mojo
15:23 j-v-e left #mojo
15:27 sigue left #mojo
15:34 sigue joined #mojo
15:35 sigue left #mojo
15:35 sigue joined #mojo
15:37 sri janus: btw. dom and json parser are a result of the test focus of Mojo::UserAgent
15:37 sri you just need to be able to reliable extract information for testing
15:38 sri they are not random features added just because we can
15:40 sigue left #mojo
15:40 sri pretty much everybody benefits from them
15:40 sri for caching that would surely not be the case
15:40 sigue joined #mojo
15:45 sigue left #mojo
15:49 PerlNinja sri: but it's okay to subclass UserAgent to add the caching behaviour and release that as a plugin, right? :)
15:50 sri sure, i guess
15:50 PerlNinja also that session thing i was yakkin on about yesterday won't work, i just realised this morning that sessions->load is called before any before_dispatch handlers are ran, and those are the places you set up user id and so on for sessions to figure out what to load
15:50 PerlNinja chicken, meet egg
15:50 PerlNinja so taking a different tack, still works, but relies on something being loaded last
15:53 fmerges left #mojo
15:58 sri https://github.com/blog/843-the-merge-button # wow
16:00 sri this is why github is better than the rest
16:01 sigue joined #mojo
16:02 PerlNinja :P
16:02 PerlNinja you already proved that point earlier :D
16:02 PerlNinja now hush and let me bask in this merge button awesomeness
16:03 elb0w whats a pull request, if you fork a github project, fix a bug you send a pull request to the main rep and tell them to pull from your repo to patch it?
16:04 elb0w is that the idea?
16:04 sri yes
16:04 elb0w ok cool
16:04 sri and now they can just click a button to apply the patch
16:05 elb0w nice
16:05 sigue left #mojo
16:07 elb0w wow really?>
16:07 sigue joined #mojo
16:07 elb0w 225k ruby projects
16:07 elb0w should I just go learn ruby?
16:07 elb0w my god
16:07 sri all ruby projects go there
16:08 elb0w gotta do something to get hype up on perl
16:08 PerlNinja mojolicious is actually doing a decent job on that
16:09 PerlNinja i think :)
16:09 sri we are still the most watched cpan module on github :)
16:09 sri need more watchers and forks though!
16:09 elb0w oh yeah im not watching mojo
16:10 elb0w :o
16:10 elb0w whats link
16:10 PerlNinja elb0w! how could you :(
16:10 sri :O
16:10 sri https://github.com/kraih/mojo
16:10 elb0w yeah
16:10 elb0w watching now
16:10 elb0w :o
16:11 sri https://github.com/languages # when it comes to actual code javascript wins
16:12 elb0w Should of done a mojolicious security update release on ycombinator
16:14 elb0w sri, you can get a lot of financial interest if you make fix engine
16:14 elb0w plug it into mojo somehow
16:15 elb0w FIX is the protocol all the trading systems communicate with the exchanges
16:15 sigue left #mojo
16:15 sigue joined #mojo
16:15 elb0w Dont know if mojo would be the right thing for that though
16:18 PerlNinja build it on top of mojo maybe :P
16:18 PerlNinja got a protocol spec somewhere?
16:19 elb0w ya
16:19 elb0w http://fixprotocol.org/
16:19 sri wasn't FIX a rather trivial ascii protocol?
16:19 elb0w has everything
16:19 elb0w its key value pairs
16:19 elb0w its simple
16:19 elb0w Theres nothing in perl
16:19 elb0w the only opensource is quickfixengine.org
16:19 elb0w someone started something in perl awhile back but I think they stopped
16:19 sri tcp and ascii key value protocol?
16:20 elb0w yes
16:20 sri should be very easy with mojolicious
16:20 elb0w Perl is still big on wall st cause of legacy systems
16:20 elb0w would get some looks im sure
16:20 sri http://en.wikipedia.org/wiki/F​inancial_Information_eXchange
16:20 elb0w yeah http://fixprotocol.org
16:20 sigue left #mojo
16:20 elb0w if you make an acct u can dl the pdf
16:20 elb0w that has the entire spec
16:21 elb0w theres different versions. Most use 4.2
16:21 elb0w I wrote one in C++
16:21 elb0w just feels like overkill
16:21 sigue joined #mojo
16:22 elb0w sri, if its something you are interested in I could spread it around the street. I have a lot of dev contacts at firms here in the city
16:23 elb0w otherwise ill probably write it when I go back to school in a couple months
16:23 sri not my area of expertise i'm afraid
16:23 PerlNinja oh jesus
16:23 PerlNinja that format is like
16:23 PerlNinja gack
16:23 elb0w PerlNinja, it was created by bankers
16:23 elb0w not devs
16:23 sri i've seen much worse protocols
16:24 PerlNinja The TAG is a string representation of an integer that indicates the meaning of the field. ....
16:24 sh4 joined #mojo
16:24 PerlNinja >_<
16:24 PerlNinja elb0w: I know but ... daaamn
16:25 PerlNinja then again okay, little endian/big endian could cause problems if you just stream binary but even then
16:25 elb0w PerlNinja, http://elbowrage.com/FIX42
16:25 PerlNinja sri: mmhmm... just looking at that protocol though is like, realising half the banking world is kept together with things like that
16:25 elb0w if you wanted to lookup the protocol easily
16:25 elb0w I wrote that in bash
16:25 elb0w you can just do ./FIX42 43
16:25 elb0w or any field
16:25 elb0w itll break it down for you
16:25 elb0w or by field name
16:26 PerlNinja yeh I know but it's one of them things that's like
16:26 PerlNinja it's like XML
16:26 PerlNinja but worse
16:26 PerlNinja reminds me of silly old Pascal tricks
16:28 sigue left #mojo
16:31 sri http://www.oscon.com/oscon2011​/public/schedule/detail/19806 # lol, riak gets sql-ish queries
16:31 PerlNinja *snorkl*
16:31 PerlNinja there's exactly 2 FIX parsers on cpan
16:31 moritz what do they call it? NoNoSQL?
16:32 PerlNinja 1 whose whole purpose is split(/\0x01/, $string) .. and one whose documentation is still the boilerplate
16:33 sigue joined #mojo
16:33 sigue left #mojo
16:35 sigue joined #mojo
16:36 PerlNinja moritz: NoSQL-ish?
16:39 sigue left #mojo
16:45 Sugar left #mojo
16:45 sigue joined #mojo
16:50 sigue left #mojo
16:55 sigue joined #mojo
16:56 sigue left #mojo
16:58 sigue joined #mojo
17:02 sigue left #mojo
17:02 sigue joined #mojo
17:10 GitHub197 joined #mojo
17:10 GitHub197 mojo: master Sebastian Riedel * 9f2ed26 (1 files in 1 dirs): fixed FIN bit handling - http://bit.ly/hh7TOz
17:10 GitHub197 left #mojo
17:11 sigue left #mojo
17:12 sigue joined #mojo
17:32 sigue left #mojo
17:39 sigue_ joined #mojo
17:41 sigue joined #mojo
17:41 sigue left #mojo
17:44 sigue_ left #mojo
17:50 sigue_ joined #mojo
17:50 sigue joined #mojo
17:50 sigue left #mojo
17:55 sigue_ left #mojo
17:55 sigue joined #mojo
18:00 sigue left #mojo
18:00 sigue joined #mojo
18:07 spleenjack left #mojo
18:11 perlrocks Twitter: "Rather Mojolicious / Mojolicious:: Lite I wonder if a trend is more" (ja) --ikm http://twitter.com/ikm/status/62579399979053057
18:11 arpadszasz joined #mojo
18:11 ispy_ joined #mojo
18:15 perlrocks Twitter: "Mojolicious-Plugin-Cache 0.0015 by SIDD - http://frepan.org/~sidd/Mojo​licious-Plugin-Cache-0.0015/" --cpan_new http://twitter.com/cpan_ne​w/status/62580585905917952
18:17 sigue left #mojo
18:17 sigue joined #mojo
18:18 sh4 left #mojo
18:22 sigue left #mojo
18:23 sigue joined #mojo
18:28 sigue left #mojo
18:28 sigue joined #mojo
18:33 sigue left #mojo
18:37 sigue joined #mojo
18:37 arpadszasz left #mojo
18:43 sigue left #mojo
18:46 metaperl joined #mojo
18:50 sigue_ joined #mojo
18:56 metaperl I have a few questions. I have a very simple app to develop - just a simple web page with a few form fields to fill in. (1) is there a guide on how to use form validation? (2) does mojo come with a web server I can use?  (These questions come afer scanning http://search.cpan.org/~kraih/Mojolic​ious-1.21/lib/Mojolicious/Guides.pod)
18:57 vel joined #mojo
18:58 sri metaperl: 1) no 2) should be asnwered at the start of the lite tutorial
19:00 sigue_ left #mojo
19:04 sugar joined #mojo
19:04 sigue joined #mojo
19:06 sigue left #mojo
19:06 PerlNinja jebus christ sigue's got a bad connection
19:06 sri or actually, 2 should be answered by the feature list
19:08 PerlNinja 1 is simple: use whatever you want to use for form validation, although I'm not entirely sure how nicely HTML::FormFu plays with Mojolicious
19:08 PerlNinja so.. maybe something else :D (since FF is about where everyone ends up heading)
19:08 sri why shouldn't formfu work with mojolicious?
19:09 sri i've only written the predecessor or formfu, but i'm quite sure it is still based on the CGI param api
19:10 PerlNinja doesn't formfu insist on doing a lot of it's own rendering tho?
19:10 sri i don't see how that's relevant
19:11 sri not like just because you use mojolicious you have to use tag helpers too
19:12 sigue joined #mojo
19:12 yko joined #mojo
19:13 PerlNinja true true
19:13 PerlNinja in that case: 1: HTML::FormFu
19:13 PerlNinja :D
19:17 PerlNinja sri: I got that session thing working as a plugin, but it does delete stuff out of $c->session, but should work out :)
19:17 PerlNinja only requirement is that it's loaded last so it's after_dispatch hook runs last .. (right?)
19:18 sri i have a feeling you're overengineering it
19:18 PerlNinja that was yesterday, today... less engineered
19:18 metaperl Ok, yes I see http://search.cpan.org/~kraih/Mojoliciou​s-1.21/lib/Mojolicious/Lite.pm#Commands shows how to startup pre-packaged web servers. So that is great. I didnt feel like breaking out apache for a one-page web app
19:18 sri after hooks run in reverse order
19:18 PerlNinja oh.. okay then it needs to be registered first
19:19 metaperl I personally like Data::FormValidator, so when I get to form validation, I just need to learn how to do internal redirects, etc with Mojolicious::Lite ... but I'm sure the docs cover all that
19:19 PerlNinja as far as over engineering, yesterday, sure .. today, meh - all it does is install a before_dispatch hook to nab stuff from database and transport to $c->session, and an after_dispatch that does that in reverse and basically removes everything but the session key from $c->session
19:19 sri that way you get the first before hook and the last after hook
19:20 sri metaperl: we don't do internal redirects
19:20 PerlNinja most of the engineering is merely in providing the bits for various databases and other storage mechanisms
19:22 sigue left #mojo
19:23 sigue joined #mojo
19:34 sigue left #mojo
19:34 sigue joined #mojo
19:41 sigue left #mojo
19:41 sigue joined #mojo
19:46 sigue left #mojo
19:46 sigue joined #mojo
20:08 marty left #mojo
20:09 marty joined #mojo
20:12 sigue left #mojo
20:13 sigue joined #mojo
20:15 perlite left #mojo
20:17 perlite joined #mojo
20:18 sigue left #mojo
20:18 sigue joined #mojo
20:22 metaperl left #mojo
20:23 sigue left #mojo
20:23 sigue joined #mojo
20:34 abra left #mojo
20:35 sigue left #mojo
20:43 vel left #mojo
20:55 metaperl joined #mojo
21:00 sigue joined #mojo
21:03 kaare_ left #mojo
21:03 j-v-e joined #mojo
21:32 sigue left #mojo
21:32 sigue joined #mojo
21:32 sugar left #mojo
21:36 GitHub137 joined #mojo
21:36 GitHub137 mojo: master Sebastian Riedel * 77382e6 (3 files in 3 dirs): reduced WebSocket message size limit - http://bit.ly/fcLImb
21:36 GitHub137 left #mojo
21:37 metaperl1 joined #mojo
21:37 metaperl1 left #mojo
22:02 amoore left #mojo
22:07 alnewkirk left #mojo
22:15 metaperl left #mojo
22:21 marcus Rather than an internal redirect, would you do a helper, sri?
22:21 sigue left #mojo
22:21 sigue joined #mojo
22:21 sri marcus: helper, bridge, 302...
22:23 marcus Sri: yeah, i meant for shared behaviors like setting some headers.
22:23 sri sounds like a job for helpers
22:24 marcus Can you have per controller helpers?
22:24 sri you can have _ methods
22:24 marcus Sorry, just returning from vacation.
22:24 sri they are hidden too
22:25 marcus mmm
22:25 sri since $self contains everything they should be quite pleasant to use
22:27 sri $self->_header_stuff; sub _header_stuff { my $self = shift; ... }
22:27 sri simple as that
22:28 sri actually a nice recipe for the documentation
22:29 sri oh, yet another new mongodb book
22:43 PerlNinja *mumble* new mongodb drivers would be interesting, books... not so much .. *hint* *cough* :P
22:46 sigue left #mojo
22:46 sigue joined #mojo
22:48 jamesw left #mojo
22:59 sigue left #mojo
23:00 PerlNinja left #mojo
23:03 jamesw joined #mojo
23:05 jamesw left #mojo
23:05 sigue joined #mojo
23:32 pranq joined #mojo
23:43 keith joined #mojo
23:44 alnewkirk joined #mojo

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