Camelia, the Perl 6 bug

IRC log for #mojo, 2013-02-05

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

All times shown according to UTC.

Time Nick Message
00:03 KindTwo joined #mojo
00:05 GabrielVieira joined #mojo
00:11 steveo_mich joined #mojo
00:15 Molaf__ joined #mojo
00:26 venomo joined #mojo
00:31 egopro joined #mojo
00:45 d4rkie joined #mojo
00:49 jzawodn joined #mojo
01:07 egopro joined #mojo
01:08 egopro_ joined #mojo
01:12 egopro joined #mojo
01:16 ka2u joined #mojo
01:17 dvinciguerra joined #mojo
01:20 jberger GabrielVieira, thanks, glad you like it
01:20 jberger and btw the error messages are things that cannot be fixed
01:20 jberger they come from DEEEEP inside DBIx::Class::DeploymentHandler
01:21 jberger they are aware, but fixing it is aparently non-trival
01:21 jberger other that that, I hope you enjoy it
01:21 hlin joined #mojo
02:01 d4rkie joined #mojo
02:23 sri sooo much syntax sugar to add to the mongodb driver :)
02:24 * sri ponders ->remove_one($oid) and ->find_one($oid)
02:34 good_news_everyone joined #mojo
02:34 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/tjb9mQ
02:34 good_news_everyone mojo/master a4628f0 Sebastian Riedel: updated jQuery to version 1.9.1
02:34 good_news_everyone left #mojo
02:54 xaka joined #mojo
03:02 steveo_mich joined #mojo
03:04 dhg joined #mojo
03:14 * sri also ponders ->update() and ->update_one
03:14 sri is multi upsert a thing?
03:15 sri otherwise i could get away with ->save, ->update and ->update_one
03:15 sri and no flags at all would be necessary \o/
03:16 * sri dislikes ->update({foo => 'bar'}, {foo => 'baz'}, {just_one => 1})
03:17 sri (or just_one was remove...)
03:17 sri example stands though :)
03:17 sri i'd rather like to have ->update_one({foo => 'bar'}, {foo => 'baz'})
03:27 Miked joined #mojo
03:34 GabrielVieira joined #mojo
03:36 egopro joined #mojo
03:36 egopro joined #mojo
03:38 GabrielVieira2 joined #mojo
03:46 GabrielVieira joined #mojo
03:46 gryphon joined #mojo
03:53 GabrielVieira2 joined #mojo
04:37 steveo_mich joined #mojo
05:08 ka2u joined #mojo
05:14 rem_lex|pivo joined #mojo
05:38 GabrielVieira joined #mojo
05:41 spleenjack joined #mojo
05:53 davido joined #mojo
06:05 egopro joined #mojo
06:08 steveo_mich joined #mojo
06:16 egopro joined #mojo
06:35 yakudza joined #mojo
06:44 Vandal joined #mojo
06:45 dod joined #mojo
07:07 Mike-PerlRecruiter_ joined #mojo
07:43 arpadszasz joined #mojo
07:49 dod joined #mojo
07:53 Molaf joined #mojo
07:56 KindOne joined #mojo
07:58 dod joined #mojo
08:01 Miked joined #mojo
08:07 ComLock joined #mojo
08:13 steveo_mich joined #mojo
08:15 suy joined #mojo
08:17 daxim joined #mojo
08:18 daxim joined #mojo
09:07 fhelmber_ joined #mojo
09:12 steveo_mich joined #mojo
09:24 egopro joined #mojo
09:31 egopro joined #mojo
10:06 nelio joined #mojo
10:10 augensalat joined #mojo
10:11 sri joined #mojo
10:11 ZadYree joined #mojo
10:12 plu joined #mojo
10:12 mike_ joined #mojo
10:15 ObseLeTe joined #mojo
10:19 ObseLeTe joined #mojo
10:22 egopro joined #mojo
10:29 dpetrov_ joined #mojo
10:48 mugenken joined #mojo
11:05 steveo_mich joined #mojo
11:05 SmokeMachine joined #mojo
11:23 ver joined #mojo
11:33 egopro joined #mojo
11:42 kitt_vl joined #mojo
11:52 arpadszasz joined #mojo
12:04 ObseLeTe joined #mojo
12:06 chansen_ joined #mojo
12:21 mire_ joined #mojo
12:28 rem_lex|pivo joined #mojo
12:49 dhg joined #mojo
12:51 arpadszasz joined #mojo
12:52 mire_ joined #mojo
12:58 d4rkie joined #mojo
13:02 steveo_mich joined #mojo
13:10 Miked joined #mojo
13:21 arthas joined #mojo
13:35 moltar joined #mojo
13:49 Britzel_ joined #mojo
13:50 arthas joined #mojo
14:07 gryphon joined #mojo
14:11 inokenty joined #mojo
14:17 spleenjack left #mojo
14:19 creaktive sri: thanks for the tips for implementing the streaming proxy, but I gave up as it was getting too complex :(
14:20 creaktive sri: I've found a lot simpler and shorter solution for my problem (do not recompress stuff)
14:20 creaktive monkey_patch(q(Mojo::Content::Single), is_compressed => sub { 0 });
14:20 creaktive lol
14:21 bluescreen joined #mojo
14:22 dod joined #mojo
14:24 ryozi joined #mojo
14:24 TitanOfOld joined #mojo
14:24 sri creaktive: that will break in the future
14:27 creaktive sri: I guess it will
14:27 creaktive sri: will it be an option to explicitly disable compression?
14:27 sri no
14:29 creaktive is there any other way of disabling the compression? like something put into  $ua->on(start => sub { ... })
14:29 sri yes
14:29 creaktive actually, I do disable the compression in the UA exactly that way
14:29 creaktive $tx->req->headers->header(q(Accept-Encoding) => q(identity));
14:30 creaktive however, it gets a bit complicated when I need Mojo::UserAgent to pass the Accept-Encoding: gzip headers, but then treat content like a binary blob
14:31 sri you can also just remove the Content-Encoding header in a body event
14:32 nelio joined #mojo
14:33 creaktive sri: is there a body event in Mojo::UserAgent?
14:33 creaktive sri: I never saw it being dispatched
14:33 sri Mojo::Content
14:33 creaktive oh, let me see
14:34 sri grrrr... someone trying to bully me into implementing a feature for them on github again... i'll need a break from mojolicious
14:35 sri https://github.com/kraih/mojo/i​ssues/449#issuecomment-13125476 # this stuff is not cool folks... very demotivating
14:36 creaktive sri: looks like a yed another drama queen :)
14:37 creaktive "bue"
14:39 marty They are just whining, sri.  For every one of those types there are lots more that are quietly appreciating your work.   Unfortunately, the whiners are always the loudest.  :(
14:40 sri and he's even hiding behind a new github account
14:40 marty After all sri, we have every right to dictate how you spend your free time!!!!
14:40 * marty cracks the whip
14:41 avenj just disregard. the internet is full of idiots
14:41 marty I should reply to the github guy with a list of todo's for his weekends.  :)
14:50 bjoernfan sri: Stay strong, dude, don't mind him. Listen to marty. :)
14:56 ComLock joined #mojo
15:00 creaktive sri: it worked :D
15:00 creaktive $proxy_res->content->on(body => sub { # mangle headers here
15:00 creaktive sri: thank you!
15:01 creaktive sri: BTW, when do I need to unsubscribe() stuff prior to assigning?
15:03 dhg sri i'm trying to learn and use a lot of perl stuff for use the Mojolicious. Stay ;)
15:11 dhg left #mojo
15:15 dhg joined #mojo
15:20 arpadszasz joined #mojo
15:22 ka2u joined #mojo
15:59 labrown joined #mojo
16:03 navi joined #mojo
16:27 mire_ joined #mojo
16:31 sri hmm, i guess features that are hard to test will not make it into the mongodb driver for now
16:33 marty I don't see anything wrong with that since the driver is going to be maturing for quite a while.
16:33 sri read preference is really hard
16:35 sri you'd need two pools of connections, primary and secondary, and then route read/write operations to them based on preference
16:35 marty oh ya,  I can see where that would be very difficult to test
16:36 marty not having it in the driver is not a roadblock to casual use, imo.
16:37 sri it gets even more complicated http://docs.mongodb.org/manual/ap​plications/replication/#tag-sets
16:38 marty oh my, I did not even know that stuff existed.  Neat stuff, would be fun to play with, but probably a lot of work to get good tests, if even possible.
16:39 sri not even the official perl driver has it
16:39 marty cuz it's hawd
16:39 marty I wonder if the python or ruby drivers have it
16:40 sri i think they do
16:42 marty I'd definitely call tag sets and enterprise feature.
16:42 marty s/and/an/
16:44 sri indubitably
16:45 sri http://groups.google.com/group/m​ojolicious/msg/8f0543c4cb59f8e8
16:45 sri that should be a good rule to prevent most discussions about what features to support
16:50 marty Seems like a good rule of thumb to use for features.
16:50 marty Seems like there is a lot of interest in your driver, sri.  \o/
16:50 sri \o/
16:51 mattastrophe joined #mojo
16:52 sri MongoHQ sandboxes are pretty good btw
16:52 sri 512mb and you can even test against the latest unstable release with fulltext search
16:53 sri might just be sharding and replica set features that can't be tested with it
16:54 sri (or just replica set features... i've not seen sharding specific features yet)
16:55 marty That's not bad at all actually, You can so a lot with 512mb.   fulltext search will be a very welcome feature to mongo
16:55 sri yea, 512mb is more than enough for many cool example apps :)
16:57 sri hmmm, $cursor->to_array or $cursor->all?
16:58 sri might be fun to wrap the result in a Mojo::Collection too
16:58 marty $cursor->all just cuz I'm used to that.
16:58 marty but $cursor->to_array is more descriptive. hmmmm
16:59 sri $cursor->all->grep(sub { shift->{foo} })->each(sub { say shift->{bar} })
16:59 marty oh my.
17:00 marty afk ... meeting. :(
17:00 sri heh, i guess that's rather useless though, since you would check if foo exists in the query ;p
17:01 sri well, python, node.js and ruby drivers call it to_array
17:01 sri or toArray
17:01 sri or to_a
17:04 diegok well, ruby has to_a everywhere...
17:04 diegok I think ->all is more perlish. But I like to use to_a when in rubyland :)
17:07 xaka joined #mojo
17:08 ComLock joined #mojo
17:13 dod joined #mojo
17:29 jberger_ joined #mojo
17:30 dod joined #mojo
17:31 jberger_ sri: the op in the recent "bug" report has come around that the site is the problem, the question is now can he do anything about malformed HTML coming in?
17:31 jberger_ I gave a quick example: https://github.com/kraih/mojo/i​ssues/449#issuecomment-13141033
17:31 jberger_ but that seems rather sub-optimal
17:31 jberger_ is there some way to pre-process incoming data?
17:31 jberger_ rather than diving into the object?
17:41 sri jberger_: i don't think helping him is a good idea
17:41 sri will only encourage others to be rude as well
17:42 sri "hide behind a new github account, act like a feature i want added is a bug, be rude, and get help"
17:44 jberger_ hmmmm, I had taken the "rude" to be language barrier, but perhaps I was being naive
17:44 tempire_ joined #mojo
17:44 sri naah, it's a common pattern, "you make this work or i have no use for this framework and will use mechanize instead!"
17:45 jberger_ ok well I will keep my eyes opened in the future
17:46 jberger_ for my own knowledge, is there a good way to pre-process the HTML response gotten from UserAgent?
17:46 sri define pre-process
17:47 jberger_ say that I know that malformed HTML is going to be coming in, but a simple regex before parsing would fix it
17:48 jberger_ of course the best answer is "tell the webmaster to fix his/her site"
17:48 sri then use a regex, i might be missing the problem
17:48 jberger_ but barring that?
17:48 jberger_ see my comment to the "bug"
17:48 jberger_ would that be the approved mechanism?
17:49 jberger_ https://github.com/kraih/mojo/i​ssues/449#issuecomment-13141033
17:49 jberger_ I dont care if you comment there, you can even pm me if you dont want it to show in the irclog
17:49 sri you don't have to use res->dom, that's just a shortcut
17:49 jberger_ I'm just curious for myself
17:50 sri but you can always hook into the finish event to do some post processing
17:50 jberger_ oh, just ask for the content as a string, process it, the dom-ify manually
17:50 jberger_ whose finish event? ua?
17:50 sri Mojo::Message
17:51 sri gets emitted when the whole message has been received
17:51 * jberger_ looks
17:51 sri or on Mojo::Transaction
17:51 sri both work
17:51 sri transaction is better if you want to catch exceptional cases better
17:52 sri s/better//
17:53 jberger_ thanks
17:57 laidback_01 joined #mojo
18:20 mire_ joined #mojo
18:39 mire_ joined #mojo
18:53 sr joined #mojo
19:05 yakudza joined #mojo
19:05 KindOne joined #mojo
19:09 Mike-PerlRecruiter_ joined #mojo
19:33 ObseLeTe joined #mojo
19:44 KindOne joined #mojo
19:47 mire_ joined #mojo
19:56 yakudza joined #mojo
19:57 creaktive joined #mojo
19:57 creaktive left #mojo
20:09 perlite_ joined #mojo
20:28 priodev joined #mojo
20:35 lukep joined #mojo
20:45 sri hmm, exception handling still needs a lot of work
20:45 sri but at least i have basic blocking and non-blocking CRUD operations tested now
20:47 creaktive joined #mojo
20:47 sri http://pastie.org/6074294 # i don't want to imagine how this would look without steps :)
20:49 dhg joined #mojo
20:54 sri for tests against a live database i'm using one env variable... you just set TEST_ONLINE=mongodb://lalala:lalala@mongohq.com/my_database and it does its thing
20:55 sri it's all still pretty fragile, but i guess i'm ready for a release now :)
20:58 rem_lex|pivo joined #mojo
20:58 batman joined #mojo
20:58 dotan joined #mojo
20:58 espent joined #mojo
21:15 jberger sri++
21:15 jberger release the hounds!
21:21 marty sri++
21:22 * marty thinks if feels like xmas
21:22 marty ruff ruff
21:29 xaka joined #mojo
21:51 biz joined #mojo
21:52 mattastrophe joined #mojo
21:56 jwang joined #mojo
22:00 BeDa joined #mojo
22:00 basic6 joined #mojo
22:30 steveo_mich joined #mojo
23:11 ka2u joined #mojo
23:12 hesperaux joined #mojo
23:19 mattastrophe joined #mojo
23:43 sri think tomorrow is release day \o/
23:43 sri and then the real work starts ;p
23:45 marty wooo hoooo!
23:45 marty You've been busy
23:47 marty ya, I'm sure you'll get all kinds of reports back quickly.   I know I'll be frakin bangin on it
23:47 * sri phears

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