Camelia, the Perl 6 bug

IRC log for #mojo, 2010-07-15

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

All times shown according to UTC.

Time Nick Message
00:35 baton8 joined #mojo
00:42 vel joined #mojo
01:47 ask joined #mojo
02:07 xantus_ sri: I work with tim caswell (creationix)
02:29 su-bzero joined #mojo
02:48 janus joined #mojo
03:17 ashleydev joined #mojo
03:23 GitHub196 joined #mojo
03:23 GitHub196 mojo: master Sebastian Riedel * 0652724 (2 files in 2 dirs): updated fastcgi recipe - http://bit.ly/aXaD2p
03:23 GitHub196 left #mojo
03:54 sri xantus_: :)
04:04 tholen42 joined #mojo
04:08 GitHub145 joined #mojo
04:08 GitHub145 mojo: master Sebastian Riedel * 8b30fc5 (1 files in 1 dirs): cleanup - http://bit.ly/abfnEL
04:08 GitHub145 left #mojo
04:25 garu sri: thanks for the tweetylicious advertisement :P
04:26 garu vti++ # so many cool examples on github!
04:26 garu (yes, I'm reading the backlog :P)
04:27 sri garu: thanks for writing a great example app :)
04:28 GitHub26 joined #mojo
04:28 GitHub26 mojo: master Sebastian Riedel * f71383f (2 files in 2 dirs): cleanup - http://bit.ly/auYJ4m
04:28 GitHub26 left #mojo
04:30 GitHub6 joined #mojo
04:30 GitHub6 mojo: master Sebastian Riedel * 4cb2b07 (1 files in 1 dirs): cleanup - http://bit.ly/aNd9t3
04:30 GitHub6 left #mojo
04:30 garu sri: more to come soon
04:30 garu ...ish :)
04:31 alex joined #mojo
04:31 sri :)
04:43 sri hmm, i might change routes a bit for mojolicious 2.0 :)
04:45 sri the rails3 version of routes is interesting, maybe a bit verbose
04:46 sri /:controller/:action/:id would become (/:controller(/:action(/:id(.:format))))
04:46 sri hmm, seems like a much worse idea after typing it :S
05:01 crab no kidding.
05:02 Foxcool joined #mojo
05:14 sri chansen: you were right, thundering herd problem is noticeable
05:16 sri going back to using an accept mutex
05:51 GitHub95 joined #mojo
05:51 GitHub95 mojo: master Sebastian Riedel * ff47571 (4 files in 4 dirs): readded accept mutex for prefork daemon - http://bit.ly/dB9yWA
05:51 GitHub95 left #mojo
05:51 garu yay
05:51 garu sri: maybe the parenthesis could be used like standard regex grouping
05:52 garu though I'm not entirely sure why someone would actually need this
05:52 sri it looks good on paper...
05:52 sri but not very usable
05:53 garu oh, btw, someone wants to know what font you used on the butterfly logos => http://oylenshpeegul.vox.com/​library/post/numberless.html
05:53 garfield [ Numberless - Vox ]
05:53 garfield http://xrl.us/bhsutx
05:53 sri avenir next
05:54 Su-Shee joined #mojo
05:54 sri not a free typeface
05:57 xantus_ who's blog is that
06:00 xantus vox brings back memories
06:01 xantus I like the logos
06:04 xantus sri: do you have a suggestion on the best way to set json_class once
06:05 sri plugin using the after_build_tx hook
06:05 sri i think vti has one on github already
06:14 sri lua is really a damn sleek language
06:23 GitHub161 joined #mojo
06:23 GitHub161 mojo: master Sebastian Riedel * 1e1f595 (1 files in 1 dirs): fixed typo - http://bit.ly/bNI17o
06:23 GitHub161 left #mojo
06:32 Su-Shee man I love REST. suddenly everything falls into place, looks good, is easy to understand and well organized.
06:35 yko joined #mojo
06:39 sri :)
06:44 Su-Shee maybe IT finally understood what design does for centuries: reduce to gain. :)
06:47 xantus ah, I poked into the message ns and changed it
06:48 ysyrota joined #mojo
06:50 xantus why hasn't anyone created a chrome bookmark syncer to couchdb
06:51 Su-Shee xantus: because people are slow to realize what couchdb really means.
06:51 Su-Shee most see just "meh it's another db and it's not even sql how can that work"
06:55 yko yep :D
06:56 garu sri: I studied at puc-rio where it was developed :)
06:56 yko btw, it really works? :)
06:56 garu (lua)
06:56 sri garu: :)
06:57 garu Su-Shee: hey, hope you have fun with tweetylicious. let me know if you have any bugs/comments/wishlists
06:57 Su-Shee garu: I'm using it mostly as teaching code for inspiration.
06:58 xantus http://xantus.posterous.com/
06:58 xantus heheh
06:58 garfield [ xantus's posterous - Home ]
06:58 garu Su-Shee: awesome - that's exactly what it was built for in the first place :)
07:00 Su-Shee the interesting question for our code will be how thin can I essentially keep our layer of "business logic" and db.
07:00 garu xantus: that vox post is from a guy named Tim Heaney
07:01 garu Su-Shee: why do you need it thin?
07:02 xantus garu: I worked on vox.  I did all the JS, the Compose editor, the organizer, etc
07:02 Su-Shee garu: well I don't really need it thin, but from what I saw yours is as thin as wrapping your sql stuff into a more aptly named sub which I liked very much but I probably need a little more.
07:02 Su-Shee or maybe not, I have to try.
07:02 xantus its nice to see some people still use it
07:04 garu xantus: nice :)
07:04 garu Su-Shee: yeah, well, that's all I needed :)
07:05 Su-Shee garu: it helped me realizing that I have to think about my needs more. (besides "chocolate icecream" and "cold shower" that is..)
07:06 garu heh
07:09 garu Su-Shee: if you need more abstraction, you can easily integrate Mojo to more complex ORMs such as DBIx::Class, KiokuDB, CouchDB (as sri already pointed out), Rose::DB, and even vti's ObjectDB (which needs more docs *cough*)
07:09 garu :P
07:09 Su-Shee I hate ORMs.
07:09 garu then do it the tweetylicious way :P
07:10 Su-Shee we have more or less this thin wrappery thing you do anyway.
07:10 sri couchdb or die!
07:11 garu ORLite is an extremely simple ORM that basically just wraps sql calls into objects, but it's SQLite-only
07:13 Su-Shee I think I don't get our CTO to drop postgres and the average TB our customers shove in there unless I really prove it works with couchdb as well/better/faster/with kittens.
07:13 Su-Shee ah. I thought about this when I woke up: the stash - is it local to a route and what's its lifespan?
07:14 sri one request
07:15 sri start to finish
07:19 garu Su-Shee: you *may* want to have a quick look at Fey, which lets you create your sql strings in a more code-like way (which is usually less error-prone than raw sql strings from dbi)
07:20 garu oh, well, you hate orms :)
07:20 garu sri: a lot of people ask about the stash. Is it documented yet? :P
07:21 sri it is
07:21 * garu would specifically want to see a list of reserved stash keys (if those still exist)
07:21 sri still on my list
07:22 garu I thought it was documented, but I looked around for it in github and couldn't spot it right away :(
07:32 yko How can i know in which mode app running (cgi/daemon/etc i mean)
07:33 yko only run _detect ?
07:34 GitHub92 joined #mojo
07:34 GitHub92 mojo: master Sebastian Riedel * f107843 (3 files in 3 dirs): cleanup - http://bit.ly/cDHN2V
07:34 GitHub92 left #mojo
07:35 sri yko: you can't
07:35 yko ok
07:35 * yko can't
07:35 sri thats the point, you shouldn't ever care :)
07:35 yko i should
07:36 yko or maybe no. ingnore me
07:36 * sri ignores yko
07:43 GitHub24 joined #mojo
07:43 GitHub24 mojo: master Sebastian Riedel * 600a64d (3 files in 3 dirs): cleanup - http://bit.ly/9KmMFe
07:43 GitHub24 left #mojo
07:48 sri http://www.youtube.com/watch?v=-​BsB0HpS768&amp;feature=youtu.be # <3 html5
07:48 garfield [ YouTube - Paul Rouget on Mixing the web! (Mozilla Summit 2010) ]
07:48 garfield http://xrl.us/bhsuuf
08:01 Su-Shee aren't route('/foo/bar/blubb/')->via('get') and route('/foo/bar/blubb')->via('post') two different thing I can assign different actions to?
08:01 sri they are
08:09 dotan joined #mojo
08:13 Su-Shee the nice shortcut version of get '/foo/bar/baz' is a Lite thing?
08:14 dotan Su-Shee: yes
08:14 Su-Shee that explains that. ;)
08:15 sri :)
08:16 dotan But you might want to look at the bit about embedding apps in the routing guide, which explains how to use the nice Lite syntax in something modular
08:17 vti orms rock!
08:17 sri not!
08:18 vti !!
08:18 vti nosql is not sql replacement ;p
08:19 Su-Shee ah. I see. I would mention that maybe a little more early. like "if you like the DSL syntax of Lite, do like in section "Embedding Applications"
08:19 Su-Shee do look.
08:19 sri you are supposed to read it all :o
08:19 vti you are supposed to think like sri!
08:19 dotan sri hides Easter eggs in the bottom of the docs, to make sure we pay attention
08:20 sri "what would zee captain do?"
08:20 vti i don't even know htf is zee captain
08:20 Su-Shee yeah great, that's how I love it. you really have to work for understanding the basics, not just read three pages and just get it because someone wants to make it easy for you to actually get somewhere. ;)
08:20 dotan you call these docs scorching? they're not even scalding!
08:21 sri vti: http://www.romanticallyapo​calyptic.com/home?page=25
08:21 garfield [ Romantically Apocalyptic ]
08:21 garfield http://xrl.us/bhsvdx
08:21 sri vti: yko said the captain always reminds him of me :D
08:22 vti :D
08:31 Su-Shee where do I find which file extensions in a route are automatically recognized and mapped to the templating stuff?
08:33 sri Su-Shee: what do you mean?
08:34 Su-Shee the routes guide mentions formats. "file extensions like txt and html at the end of a route" - which else are automatically detected?
08:34 sri all
08:34 sri routes don't really care
08:35 sri if it maps to a real content-type or not doesn't concern routes
08:35 Su-Shee you're essentially just grabbing .foobar and put it in format => foobar and that gets resolved into bla.foobar.ep?
08:35 sri right
08:36 sri and later we try to find the appropriate content type
08:36 sri no magic, thats all
08:37 sri you just a few more templates to support more formats :)
08:37 sri *add
08:37 sri thats the idea
08:38 sri my main motication was that most of my apps have rss and html templates for pretty much everything
08:39 zloyrusskiy joined #mojo
08:40 zloyrusskiy Hi, i need help with Mojo::DOM
08:41 sri Hi, i can help with Mojo::DOM :)
08:41 zloyrusskiy i'm loading http page http://www.yandex.ru and trying to take some parts from it with dom->at or dom->search, but result is empty
08:41 garfield [ Яндекс ]
08:41 sri cpan version?
08:41 zloyrusskiy how can i troubleshoot this?
08:41 zloyrusskiy 0.999926 (last)
08:41 sri is broken
08:42 zloyrusskiy hmmm... it's very sad
08:42 sri the version on github is much better
08:43 zloyrusskiy how can i install it for windows?
08:44 sri don't look at me... i've not touched a windows box in years
08:44 zloyrusskiy =)
08:44 sri http://github.com/kraih/mojo
08:44 garfield [ kraih's mojo at master - GitHub ]
08:44 zloyrusskiy ok i'll try by myself
08:44 sri the github version of Mojo::DOM is much much better
08:44 xantus strawberry perl on windows right
08:44 xantus ?
08:44 zloyrusskiy yes
08:45 xantus sec, firing up vm
08:46 xantus hm, upgrade blew out my vmnet
08:47 sri zloyrusskiy: if you're web scraping you'll love the new "each" feature :) http://github.com/kraih/mojo/bl​ob/master/lib/Mojo/DOM.pm#L749
08:47 garfield [ lib/Mojo/DOM.pm at master from kraih's mojo - GitHub ]
08:47 garfield http://xrl.us/bhsvf7
08:48 xantus zloyrusskiy: well, open the perl command found in the start menu under strawberry perl
08:48 xantus its a command line
08:48 xantus download a zip from github
08:48 xantus unzip it somewhere
08:49 yko joined #mojo
08:50 sri interesting, the html on http://yandex.ru is broken
08:50 garfield [ Яндекс ]
08:52 xantus lol, look at all that embedded css and js
08:52 sri could be a web scraper trap
08:52 yko mhh what's broken there?
08:53 sri no html tags
08:53 xantus dude, no html tags, no body tags
08:53 xantus wtf, who's the retard
08:53 sri they rewrite the dom via script i think
08:53 yko muhaha. for shure, they must have something for that
08:53 vti and its like google in runet
08:53 yko i had much hadache with scraping yandex result in past
08:54 yko we can ask ali or deepone, as far as i remember they're working on yandex
08:55 yko *in
08:55 sri this is the dark side of html5
08:55 zloyrusskiy xantus: thanks i cloning git project now
08:55 sri zloyrusskiy: you won't be able to scrape yandex though
08:55 xantus ok, after you get it, you can run perl Makefile.PL
08:55 xantus make && make install
08:55 sri zloyrusskiy: they use javascript to rewrite the pages massively
08:56 xantus you could make test first if you want to check it
08:57 zloyrusskiy sri: they use javascript to rewrite some parts of site (AJAX), but main part - is parsable i think
08:57 zloyrusskiy xantus: ok, thanks i'll try
08:58 sri looks more like a big trap, no html tags is very very suspicious
08:59 zloyrusskiy sri: yandex.ru - is a redirect page
08:59 zloyrusskiy sri: it's redirect to www.yandex.ru
08:59 yko :) im pretty shure they created much traps on scrapers way
08:59 sri i'm on www.
09:00 zloyrusskiy sri: google does the same
09:00 yko zloyrusskiy : and also there's geolocation redirect. i'm redirected to yandex.ua :D
09:00 sri one of the scraper traps works for Mojo::DOM :/
09:00 sri i'll investigate and beat them!
09:00 yko hehe :D
09:00 zloyrusskiy yko,sri: this explains a lot
09:01 zloyrusskiy left #mojo
09:03 zloyrusskiy joined #mojo
09:07 sri ops...just my fault :(
09:07 sri parser should be fixed in a few mins
09:09 _mpu joined #mojo
09:10 jest joined #mojo
09:13 GitHub84 joined #mojo
09:13 GitHub84 mojo: master Sebastian Riedel * c794218 (3 files in 3 dirs): fixed Mojo::DOM parser bugs - http://bit.ly/8ZHYUX
09:13 GitHub84 left #mojo
09:13 sri zloyrusskiy: that will work with yandex
09:13 sri just tried myself
09:14 zloyrusskiy sri: thanks
09:15 sri perl -MMojo::Client -e 'print Mojo::Client->new->get("http://www.yandex.ru/")->success->dom->at("title")->text'
09:16 sri i can at least extract the title :)
09:17 sri oh they are evil
09:17 sri unquoted class names and stuff
09:17 sri that makes normal xml parsers go nuts
09:21 vti it's so nice, sri fixing mojo for russian website
09:21 sri more fixing to do :o
09:21 vti sri: do you use colloquy?
09:21 sri aye
09:22 vti ok, installing ipad version ;p
09:22 sri -.-
09:22 yko gg. vti, how do you think, should we tell sri that there's rambler also? :D
09:22 vti yko: :D
09:22 sri i know about rambler, they use my other web framework ;p
09:23 vti the name we can't write on this cha[D[D[D[D[D[D[D[Dnnel
09:27 zloyrusskiy >> vti: it's so nice, sri fixing mojo for russian website
09:27 zloyrusskiy why not?
09:28 GitHub158 joined #mojo
09:28 GitHub158 mojo: master Sebastian Riedel * b2e3229 (1 files in 1 dirs): added test - http://bit.ly/bXhArn
09:28 GitHub158 left #mojo
09:29 sri ok, i think the parser is fine now
09:29 vti zloyrusskiy: russians are evils, your nickname says that ;p
09:29 zloyrusskiy hehe =)
09:29 sri perl -MMojo::Client -e 'Mojo::Client->new->get("http://www.yandex.ru/")->success->dom->search(".all > ol > li")->each(sub { print shift->all_text })'
09:29 sri at least i get some stuff i don't understand with that now :)
09:30 zloyrusskiy bad people are exists in any country
09:30 vti ye, like sri
09:30 sri you invented vodka, you can't be bad people!
09:30 zloyrusskiy lol ))))))))))))))
09:31 zloyrusskiy and we drink whiskey in our country because it's cool =)
09:31 sri Oo
09:31 zloyrusskiy at least my friends
09:31 * yko prefers rum or tequila, depending...
09:32 zloyrusskiy I don't drink alcohol at all
09:32 gawker2 joined #mojo
09:33 sri beer is not alcohol, right?
09:33 vti_mob joined #mojo
09:33 yko lol
09:33 sri around here we call it basic food
09:33 vti_mob Beer is just a bread
09:34 * sri nods
09:34 vti_mob Colloquy is really nice
09:34 sri have it on my iphone too
09:34 yko if russian says he don't drink alcohol usually it means he don't drink alcohol at all... some beer, than some vodka, then some beer, tequila, martiny, beer again....
09:35 vti_mob Ye, just don't drink the same stuff
09:35 su-bzero Whiskey for russians? Hm... We used to drink a thing for washing baths.
09:35 yko so hard to survive in post-soviet countries :D
09:36 vti_mob :D
09:37 sri vti: so you are hooked on apple now? macbook, ipad...
09:37 vti_mob I hope not
09:38 vti_mob And i like when things just work
09:38 vti_mob Ive had enough :)
09:38 sri :)
09:41 vti_mob I would never buy it here though, too damn expensive because of stupid taxes
09:41 yko just use smuggling like everyone do :\
09:42 yko :D
09:42 yko contrabandah... sounds so sweet :p
09:45 vti_mob yko: Tsss
09:46 * yko shuts up.
09:58 vti_mob joined #mojo
10:40 xantus_ joined #mojo
11:43 GitHub31 joined #mojo
11:43 GitHub31 mojo: master Sebastian Riedel * 9a3a810 (9 files in 9 dirs): cleaned up reserved stash values and added a list to cheatsheet - http://bit.ly/bRzLXl
11:43 GitHub31 left #mojo
11:44 sri this shouldn't break existing apps unless you were using undocumented and untested things ;p
11:44 yko ggg
11:44 yko bravo
11:44 sri some values like rendered got a mojo. prefix
11:45 sri since they are not supposed to be used under normal circumstances
11:45 yko should that prevent creating variables in templates?
11:46 sri yes
11:46 yko great
11:47 sri little worried about mojo.session, hope nobody is using $session in templates... that would suck
11:48 sri not like it was ever a feature... *crosses fingers*
11:49 sri 18 reserved stash values is more than enough :)
12:06 GitHub163 joined #mojo
12:06 GitHub163 mojo: master Sebastian Riedel * 83ca025 (4 files in 4 dirs): cleanup - http://bit.ly/cVPxN6
12:06 GitHub163 left #mojo
12:06 sri that simplifies exception templates
12:13 su-bzero If I use $c->stash( rendered => 1 ); it will break my app?
12:13 sri yes
12:15 su-bzero $self->stash( session => ... ) too?
12:15 su-bzero O.
12:18 su-bzero exception and session are documented  ;(
12:18 su-bzero And non-backward compatible ;(
12:19 sri session is documented?
12:19 sri exception is changed back
12:20 su-bzero O. No? Hm... Ok.
12:20 su-bzero Don't use "exception", sorry. ;)
12:20 GitHub73 joined #mojo
12:20 GitHub73 mojo: master Sebastian Riedel * 4403d02 (1 files in 1 dirs): cleanup - http://bit.ly/a1sI0w
12:20 GitHub73 left #mojo
12:20 sri accessing the session through the stash is undocumented and untested as far as i can see
12:21 su-bzero Thank. I got it.
12:21 sri rendered i think too, but i check again
12:22 koban joined #mojo
12:22 sri also looks ok
12:23 sri exception is back to normal and much easier to use
12:32 GitHub159 joined #mojo
12:32 GitHub159 mojo: master Sebastian Riedel * 22927bb (1 files in 1 dirs): cleanup - http://bit.ly/9455vH
12:32 GitHub159 left #mojo
12:49 baton8 joined #mojo
12:56 GitHub118 joined #mojo
12:56 GitHub118 mojo: master Sebastian Riedel * be8f8c3 (1 files in 1 dirs): cleanup - http://bit.ly/dcYqQr
12:56 GitHub118 left #mojo
12:57 siegfri3d joined #mojo
13:09 sri zloyrusskiy: i would go as far as saying mojolicious is better than *the framework we don't talk about in here* for big projects ;p
13:11 zloyrusskiy sri: i meeting with it and i talks about what i know
13:11 zloyrusskiy sri: you correct me - it's good
13:14 Alias_ joined #mojo
13:22 Su-Shee which one of the 809345 others we don't talk about? ;)
13:24 sri the other one i wrote
13:26 Su-Shee is there an example for authorizations in some guide I don't know yet?
13:27 dotan Su-Shee: they're the canonical example of bridges and ladders in routing
13:27 sri ye
13:28 sri just return a non true value in a ladder/bridge and the chain breaks
13:28 zloyrusskiy can you give some links i'm interested in that too?
13:28 sri it's in the guides/lite tutorial
13:29 sri in the lite tutorial theres a full example with session login
13:29 Su-Shee I was going for "not a session" ;)
13:32 sri our sessions are almost restful :)
13:32 sri stored in cookies
13:33 zloyrusskiy sri: in guide there is a few examples, but not description
13:33 sri thats correct
13:34 sri a description will be in the next guide
13:34 sri (if you mean the tutorial)
13:34 zloyrusskiy yes
13:35 sri that leonerd guy sure loves his fastcgi :)
13:36 alex joined #mojo
13:37 Su-Shee so, the example is the only documentation on authentication yet?
13:38 sri i think routing has something too
13:38 sri it's really just the return value
13:38 sri everything else is up to you
13:39 sri we don't have any auth abstraction at all
13:40 sri how do you want to do auth anyway? params, basic, digest, oauth...?
13:41 sri dunno what else i could actually show in the mojolicious documentation
13:41 Su-Shee digest for starters, I like to experiment with fully restful and see how conventient/fast this really works.
13:41 Su-Shee I'll find out somehow.
13:42 sri you'll have to build and parse the headers yourself
13:42 Su-Shee yeah I figured that much.
13:42 sri turn it into a plugin once you are done :D
13:43 sri we have full basic support though
13:43 sri my $userinfo = $self->req->url->userinfo;
13:44 dotan http://github.com/tempire/m​ojolicious-plugin-basicauth
13:44 garfield [ tempire's mojolicious-plugin-basicauth at master - GitHub ]
13:44 garfield http://xrl.us/bhjwfy
13:44 dotan does this still work?
13:44 Su-Shee am I seriously the only one who ever ask for some documentation for that? ;)
13:45 sri you are :)
13:45 sri dotan: most likely, but you don't need to parse it yourself
13:47 sri Su-Shee: patches welcome btw :)
13:56 Su-Shee if I ever get so far that I actually decide on a framework for the office..
13:57 sri the more questions you ask the more doc patches you should send ;p
13:58 Su-Shee didn't you have an actual grant to write docs? ;)
13:58 sri that doesn't cover nearly enough...
14:00 Su-Shee so we get essentially 1:1 grant:docs? ;)
14:00 sri ?
14:01 sri oh, way more
14:01 vti what?!
14:02 vti 1:100? ;p
14:02 sri think after conversion the grant money covers like a week of my time or so
14:03 vti you are expensive :)
14:03 sri and well worth it!
14:03 dotan sri procrastinates from writing docs by writing code, which requires docs to be updated, and so the cycle goes.
14:04 fraserj joined #mojo
14:04 dotan I think eventually the code will be so clear it will be self-documenting.
14:04 sri in perl? :)
14:04 sri UNPOSSIBLE
14:05 Su-Shee I think, I give this web framework business up entirely. our stuff works, then it stays ugly.
14:11 sri http://www.youtube.com/watch?v=-​BsB0HpS768&amp;feature=youtu.be # the demos at the end so rock
14:11 garfield [ YouTube - Paul Rouget on Mixing the web! (Mozilla Summit 2010) ]
14:11 garfield http://xrl.us/bhsuuf
14:13 sri the webgl stuff at 5:00 is just insane
14:20 vti awesome
14:20 vti i need canvas, video etc helper tags!!
14:20 gizzlon joined #mojo
14:20 fraserj left #mojo
14:23 ashleydev joined #mojo
14:45 baton8 joined #mojo
14:46 Foxcool joined #mojo
14:52 GitHub17 joined #mojo
14:52 GitHub17 mojo: master Sebastian Riedel * 1cdaeb3 (3 files in 3 dirs): added relaxed mode to Mojo::Client - http://bit.ly/9PXmyM
14:52 GitHub17 left #mojo
14:53 sri (for scraping hackernews)
14:53 sri :)
14:55 GitHub19 joined #mojo
14:55 GitHub19 mojo: master Sebastian Riedel * c3ece32 (1 files in 1 dirs): fixed typo - http://bit.ly/a5rhwP
14:55 GitHub19 left #mojo
15:32 vti can i parse local files with mojo::dom?
15:32 sri of course
15:32 vti file:///?
15:33 sri you read the file yourself
15:33 vti can i parse, remove some crap and then return clean html?
15:34 sri right now you can only extract
15:34 vti ok
15:35 sri ideally i want something like $dom->at('bar')->replace('<foo>lalala</foo>')
15:36 sri it's not hard to implement
15:37 vti Use of uninitialized value $xml in pattern match (m//) at /Users/vti/dev/mojo/lib/Mojo/DOM.pm line 478
15:38 sri are you on cpan version?
15:38 sri it's broken, throw it away
15:38 vti of course not
15:38 sri well, 478 is something very different here
15:39 vti hm
15:39 vti 496
15:39 vti i am doing something wrong for sure
15:40 vti http://gist.github.com/477125
15:40 garfield [ gist: 477125 - GitHub ]
15:40 sri you prolly screwed up encoding or so
15:41 vti hm... tree has only 'root'
15:41 vti do you support only html5?
15:41 sri ?
15:41 sri you drunk?
15:41 vti :)
15:42 sri Oo
15:43 vti maybe something wrong with my perl5lib
15:43 sri or your file is already decoded and you need to change $dom->encoding(undef)
15:45 vti you mean charset
15:45 sri whatever ;p
15:45 vti ok, it works now oO
15:45 vti but wtf
15:45 sri normally decode would just crash
15:46 vti do you parse <meta charset?
15:46 sri no
15:46 vti :(
15:46 sri how would that help?
15:46 vti so you pay attention to the server's answer?
15:46 sri if you pass us perl chars we are screwed anyway
15:47 sri good servers send the charset with the content type
15:48 ask joined #mojo
15:50 sri well, if you come up with an idiot proof way to parse meta charset in advance, patches welcome ;p
15:50 sri btw. i'm adding replace now
15:52 vti just don't screw up everything
15:52 sri :O
15:53 vti because i use mojo::dom ;p
15:54 vti safari doesn't like 4,9Mb html file =/
16:24 ask joined #mojo
16:26 GitHub141 joined #mojo
16:26 GitHub141 mojo: master Sebastian Riedel * 4eb7859 (2 files in 2 dirs): added replace method to Mojo::DOM - http://bit.ly/dCf0Um
16:26 GitHub141 left #mojo
16:26 sri vti: there ya go
16:32 ask joined #mojo
16:34 dotan sri: so now you can clone HTML::Zoom?
16:34 sri whats that?
16:36 sri lol, thats pretty unusable
16:36 dotan It's on CPAN;
16:36 sri at least in the way described
16:37 sri no thats not my focus
16:37 sri whats funny is that i've just added a replace_content method
16:40 dotan that's not even yak shaving, sri, that's giving yaks bleached highlights in their hair...
16:45 GitHub191 joined #mojo
16:45 GitHub191 mojo: master Sebastian Riedel * 901ac03 (2 files in 2 dirs): added replace_content method to Mojo::DOM - http://bit.ly/bOCBe8
16:45 GitHub191 left #mojo
16:45 sri ok, that should be enough for now
16:47 ashleydev joined #mojo
16:49 GitHub13 joined #mojo
16:49 GitHub13 mojo: master Sebastian Riedel * 05dfff6 (1 files in 1 dirs): added test - http://bit.ly/bbBb8n
16:49 GitHub13 left #mojo
16:49 sri just works, boring
16:54 GitHub197 joined #mojo
16:54 GitHub197 mojo: master Sebastian Riedel * 302c986 (1 files in 1 dirs): added test - http://bit.ly/dnU7rp
16:54 GitHub197 left #mojo
16:54 sri fur teh lulz
17:02 dotan sri: ☺
17:02 sri
17:03 Topic for #mojois now Join the revolution! ☁ | http://mojolicio.us/ | http://irclog.perlgeek.de/mojo/today
17:03 dotan need...bigger...font.
17:04 Topic for #mojois now Join the revolution! ☁ | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
17:07 zloyrusskiy joined #mojo
17:07 zloyrusskiy Hi
17:07 * sri waves
17:08 zloyrusskiy somebody can advise me plugin for "single sing on" authorization for mojolicious?
17:10 zloyrusskiy "Integrated Windows Authentication" it other name
17:10 sri don't think that exists as a plugin yet
17:11 zloyrusskiy i saw some post in internet some time ago
17:11 zloyrusskiy with this plugin, but can't find it
17:14 spleenjack joined #mojo
17:18 dotan zloyrusskiy: Win32::IntAuth?
17:18 dotan http://search.cpan.org/~tomk/Win32​-IntAuth-0.12/lib/Win32/IntAuth.pm
17:19 zloyrusskiy i found Authen::NTLM
17:19 dotan Not a mojolicious plugin, but you could write one to use that
17:19 zloyrusskiy i thinking about that
17:21 zloyrusskiy dotan: thanks i'll try to write such module
17:21 garfield http://xrl.us/bhsw8j
17:24 dotan good luck
17:25 zloyrusskiy Win32::IntAuth requires additional privileges, it's not secure... i'll read about Authen::NTLM more...
17:29 dotan left #mojo
18:24 stephen joined #mojo
18:35 stephen joined #mojo
18:40 vti labyrinth is addictive
18:41 ashleydev joined #mojo
18:42 stephen joined #mojo
18:47 xantus joined #mojo
18:47 xantus ...so --lock went away?
19:12 ask joined #mojo
19:17 xantus uuuh, strange.  startup() isn't being called now
19:20 xantus haha, fail.  I used Mojo lite in my bin/ script
19:47 tempire dotan: the basicauth plugin works
19:47 tempire it's on cpan
19:48 tempire or su-shee, whomever asked the question originally
21:12 ashleydev joined #mojo
21:29 Alias_ joined #mojo
21:57 stephen joined #mojo
21:58 xantus cool.... http://xantus.couchone.com/
22:05 xantus sri: so, I started the mojo socket.io project
22:05 xantus for now its called ignite
22:12 ltriant joined #mojo
22:34 dotan joined #mojo
22:39 xantus :P  Ignite::Lite
23:08 ashleydev joined #mojo
23:35 stephen joined #mojo

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