Camelia, the Perl 6 bug

IRC log for #mojo, 2012-04-23

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

All times shown according to UTC.

Time Nick Message
00:02 crab i don't think it's reasonable that if i'm away for a while (due to illness, but that's besides the point), i can't find out anything about why such major changes are made, from commit messages, email, or irc logs.
00:04 crab but, i think i'll git bisect to find the real cause of the unexpected 404s. it's not the waypoint deprecation, that's probably a coincidence (from reading the commit)
00:05 sri the answers are somewhere in the irc logs
00:08 crab oh, ok. i'll look harder.
00:19 crab aha. the real problem is that it's no longer picking up a DATA template. as i thought, the waypoint stuff was a coincidence.
00:22 sven^ joined #mojo
00:56 Psyche^ joined #mojo
00:58 xaka joined #mojo
00:59 scott joined #mojo
01:21 bird joined #mojo
01:23 GitHub60 joined #mojo
01:23 GitHub60 [mojo] kraih pushed 1 new commit to master: http://git.io/n47ryg
01:23 GitHub60 [mojo/master] test Mojo::DOM entity handling - Sebastian Riedel
01:23 GitHub60 left #mojo
01:24 crab aha. bisection finds the problem
01:24 crab added support for multiple static/template classes and fixed port generation bug (closes #302)
01:25 crab now to read the code.
01:31 GitHub181 joined #mojo
01:31 GitHub181 [mojo] kraih pushed 1 new commit to master: http://git.io/LQCZhQ
01:31 GitHub181 [mojo/master] better entity tests - Sebastian Riedel
01:31 GitHub181 left #mojo
01:34 d4rkie joined #mojo
01:37 crab ok, app->renderer->classes. hmm.
01:38 asarch joined #mojo
01:39 crab now that's going to be decidedly difficult to deal with in my app.
01:41 crab fortunately, cheating is an option. now it works.
01:46 crab now i just need to figure out what to use instead of waypoints.
01:53 jwang joined #mojo
02:15 GitHub72 joined #mojo
02:15 GitHub72 [mojo] kraih pushed 1 new commit to master: http://git.io/AFVsyw
02:15 GitHub72 [mojo/master] fixed another HTML5 unescaping bug - Sebastian Riedel
02:15 GitHub72 left #mojo
02:16 crab CounterClockwiseContourIntegral. wow.
02:17 crab oh, that looks just like i imagined.
02:18 sri 2000 awesome new entities
02:19 crab btw. i read the format detection changes. looks good at first glance.
02:20 crab i haven't used it yet, but i wished for it in something long ago, so i'll try it out soon.
02:20 sri the solution for waypoints is easy, just use two routes
02:21 sri you could prolly build a clever shortcut plugin emulating waypoints in a smart way
02:21 sri which would eliminate the big problem of format detection in waypoints
02:22 crab two routes == a bridge and a ->route('/')->to(...) route inside, plus whatever was under the waypoint in the first place?
02:22 sri no
02:22 sri normal duplicate routes
02:22 sri one shorter, the other more specific
02:23 crab ! i didn't know you could have duplicate routes. will look, thanks.
02:24 sri $r->route('/foo'); $r->route('/foo')->route('/bar'); == $r->waypoint('/foo')->route('/bar');
02:24 crab ok.
02:25 crab "if video games make you violent, does monopoly make you a millionaire"
02:25 crab oops
02:29 sri if video games affected our behavior half of facebook would be farmers
02:31 sri gotta give credit to the whatwg folks for collecting all those fun special cases from all kinds of browsers and turning them into a spec
02:32 crab yeah.
02:32 crab ok, waypoints rewritten and all is well. thanks.
02:32 sri but damn, that's one huge ass hash https://github.com/kraih/mojo/b​lob/master/lib/Mojo/Util.pm#L25
02:33 jwang I'm guessing most monopoly players never even become paper millionaires ;)
02:33 sri everything in mojo is cute little classes with 200-500 lines... and then there's this 2700 line monster
02:36 sri well... at least it's not ugly
02:37 jwang a 2700 line class sounds better than a 2700 line method
02:37 sri 2500 line hash :)
02:38 jwang egads, I try not to remember those :)
05:30 Leandr joined #mojo
05:55 * tempire is a double rainbow
06:25 marcus g00d m0rnig
06:25 marcus crab: Feel better!
06:32 marcus /me phears http://4.bp.blogspot.com/-n5YyCh7Z6WQ/T5QaV7a2​FqI/AAAAAAAAAdw/Veypcp-8nng/s1600/IMG_3934.jpg
06:33 tempire I saw that photo, and wondered if you two had a fight
06:33 tempire *I'm going over to this table and coding BY MYSELF!*
06:57 batman joined #mojo
06:57 Vandal joined #mojo
07:08 taryk joined #mojo
07:23 spleenjack joined #mojo
07:41 cosmincx joined #mojo
07:55 fhelmber_ joined #mojo
08:08 daxim joined #mojo
08:26 vervain joined #mojo
08:40 rafl joined #mojo
08:46 preflex_ joined #mojo
09:06 marcus hah no, I wasn't coding with that guy at all.
09:07 marcus but yeah, I look bitter. Probably I was just bitter about perl6 not having heredocs.
09:44 * sri yawns
09:49 SShewale joined #mojo
09:54 mire joined #mojo
10:41 Leandr joined #mojo
11:11 batman Worker 43929 has no heartbeat, restarting. <-- do you have any examples on how this can occur?
11:12 sri while (1) {}
11:12 purl while (1) {} is faked up?
11:12 batman does it require the child to be busy talking to a database or something?
11:12 sri yes
11:13 batman hm... i don't have any while() loops in my code
11:13 batman i wonder if there's anything else... if the client crash, then it should report that in the logs, right?
11:14 batman logs = STDERR
11:32 spleenjack1 joined #mojo
11:35 GitHub126 joined #mojo
11:35 GitHub126 [mojo] kraih pushed 1 new commit to master: http://git.io/Cl9anQ
11:35 GitHub126 [mojo/master] added FAQ answer for restarted Hypnotoad workers - Sebastian Riedel
11:35 GitHub126 left #mojo
11:37 sri it's not uncommon that people ask about it, maybe we should extend the timeout a little, to 20 seconds maybe
11:41 GitHub157 joined #mojo
11:41 GitHub157 [mojo] kraih pushed 1 new commit to master: http://git.io/Iqatfw
11:41 GitHub157 [mojo/master] increased default heartbeat_timeout from 10 to 20 seconds in Mojo::Server::Hypnotoad - Sebastian Riedel
11:41 GitHub157 left #mojo
11:53 spleenjack joined #mojo
11:59 GitHub134 joined #mojo
11:59 GitHub134 [mojo] kraih pushed 1 new commit to master: http://git.io/4YodJQ
11:59 GitHub134 [mojo/master] documentation tweaks - Sebastian Riedel
11:59 GitHub134 left #mojo
12:16 GitHub169 joined #mojo
12:16 GitHub169 [mojo] kraih pushed 1 new commit to master: http://git.io/bWrpgg
12:16 GitHub169 [mojo/master] better descriptions for HTML5 escaping functions and methods - Sebastian Riedel
12:16 GitHub169 left #mojo
12:23 batman sri: maybe... but 10 seconds is a very long time :/
12:34 batman i would very much like a way to do stuff in the past when something occur :)
12:34 batman like doing strace of the child 10 seconds back, when it has no heartbeat :)
12:35 GitHub56 joined #mojo
12:35 GitHub56 [mojo] kraih pushed 1 new commit to master: http://git.io/Gcag7A
12:35 GitHub56 [mojo/master] refer to Mojo::Util from Mojo::ByteStream documentation - Sebastian Riedel
12:35 GitHub56 left #mojo
12:39 sri i must admit, i'm a little sad we are so far above 10k lines of code again :,(
12:54 DaTa maybe an axiom can help: "An entity mapping counts as zero lines of code."
12:58 batman will using EV make hypnotoad faster?
13:00 GitHub28 joined #mojo
13:00 GitHub28 [mojo] kraih pushed 1 new commit to master: http://git.io/6OlWCw
13:00 GitHub28 [mojo/master] small optimizations - Sebastian Riedel
13:00 GitHub28 left #mojo
13:05 asarch joined #mojo
13:21 Htbaa joined #mojo
13:28 mire joined #mojo
13:38 batman hypnotoad => { accepts => ... } # will the child process be killed and new one is spawned when it has handled the number of "accepts" requests?
13:38 vel joined #mojo
13:38 batman is this to avoid fixing memory leakage? :)
13:49 inokenty joined #mojo
13:53 sri yes
13:53 batman ok
14:02 espent joined #mojo
14:12 GitHub189 joined #mojo
14:12 GitHub189 [mojo] kraih pushed 3 new commits to master: http://git.io/WLCokA
14:12 GitHub189 [mojo/master] improved html_escape performance and added pattern support - Sebastian Riedel
14:12 GitHub189 [mojo/master] fixed pattern - Sebastian Riedel
14:12 GitHub189 [mojo/master] better tests and documentation - Sebastian Riedel
14:12 GitHub189 left #mojo
14:22 spleenjack joined #mojo
14:30 GitHub69 joined #mojo
14:30 GitHub69 [mojo] kraih pushed 1 new commit to master: http://git.io/inDreA
14:30 GitHub69 [mojo/master] better b64_encode examples - Sebastian Riedel
14:30 GitHub69 left #mojo
14:31 mattastrophe joined #mojo
14:33 GitHub148 joined #mojo
14:33 GitHub148 [mojo] kraih pushed 1 new commit to master: http://git.io/KQUZsQ
14:33 GitHub148 [mojo/master] more examples - Sebastian Riedel
14:33 GitHub148 left #mojo
14:36 jnap joined #mojo
14:38 GitHub130 joined #mojo
14:38 GitHub130 [mojo] kraih pushed 1 new commit to master: http://git.io/GHOVsw
14:38 GitHub130 [mojo/master] better descriptions for URL escaping - Sebastian Riedel
14:38 GitHub130 left #mojo
14:39 mire joined #mojo
14:41 Leandr joined #mojo
14:47 rwstauner joined #mojo
14:48 sri grrrr
14:49 sri even if i move the entity table to the DATA section sloccount will find it
15:03 Mrono Is it possible for someone to write up an example of using a manually set cookie with Mojo::UserAgent
15:04 Mrono I've been reading through the docs and I can't figure out how to link added in a cookie to the jar to the useragent
15:19 fhelmber_ joined #mojo
15:24 ispy_ joined #mojo
15:44 xaka joined #mojo
15:48 Psyche^ joined #mojo
15:52 Akron joined #mojo
16:00 Akron sri: Some entities do not need a semicolon? Is this up to the spec or just for rubbish html (in that case I would allow &apos as well)?
16:00 sri Akron: spec
16:00 Akron Crazy spec.
16:01 sri Akron: http://www.whatwg.org/specs/web-apps/cur​rent-work/multipage/named-character-refe​rences.html#named-character-references
16:01 Akron sri: Thank you!
16:02 sri the whatwg guys just collect all the browser quirks and turn them into a spec
16:03 sri don't think the list of entities without semicolon were decided by committee :)
16:05 Akron I missed that episode of "dirty jobs", I guess.
16:06 daxim the most unintended entity is &sub - about a million times more used in a query string (/?section=123&sub=foo) than as a semicolon-less entity
16:07 vel joined #mojo
16:08 Akron daxim: I cannot found &sub on the list.
16:09 SmokeMachine joined #mojo
16:09 daxim sub; U+02282 ⊂
16:12 Akron Yes, but with a semicolon.
16:13 Akron It's not specified without as e.g. acirc.
16:20 daxim aha. I can assure you that before hixie ever thought about a html successor, browsers worked around all sorts of semicolon-less entities, including the one I named.  despite the spec existing now, it's an ongoing problem until the old browsers die out
16:23 Akron daxim: True.
16:25 daxim http://stackoverflow.com/questions/10284058/mojo​xsession-never-expires-and-removed-from-database
16:26 Leandr joined #mojo
16:34 sri hmm, do i trust the w3c or whatwg
16:35 sri w3c just links to the entities of the xml spec, which are like 200 more
17:15 sri guess i'll keep mixing them
17:15 sri w3c has a few more entities, and whatwg has a list of ones without semicolons
17:17 batman the issue with my server earlier was that i did not kill the client connections, so it just filled up the server until no more resources was available :/
17:18 batman so i guees i ddos'ed myself :)
17:18 sri dos not ddos
17:19 batman of course: "i sent a dial-of-service-attack to my own server" :)
17:19 batman arg!
17:19 batman i will not try to correct myself again with another typo :/
17:19 * sri dials batman
17:19 batman hehe
17:19 batman haha
17:20 sri dadadadadadadadadada...BAAAAT​MAAAAAN...dadadadadadadadada
17:20 * batman is in denial
17:20 batman or was it in dial? i have no idea...
17:20 * sri denies everything
17:21 batman do you think Mojo::IOLoop::Server is faster than POE::Component::Server::TCP ?
17:22 sri don't think it matters
17:23 batman it matters to me. i'm thinking about rewriting some stuff based on poco-server-tcp to mojo-ioloop, but i'm not sure if it's a waste of time
17:23 sri likely
17:23 batman i got some single-process stuff, only based on io events
17:23 batman likely to be a waste of time?
17:23 sri yes
17:24 sri if you have the choice i would always recommend a general purpose event loop
17:25 batman like poe or ae?
17:25 sri if you're looking for something to do fix POE::Loop::EV instead so we can use POE inside Mojolicious :D
17:26 batman ;)
17:26 batman the day is too short...
17:53 GitHub77 joined #mojo
17:53 GitHub77 [mojo] kraih pushed 1 new commit to master: http://git.io/3PHWhg
17:53 GitHub77 [mojo/master] more bytestream examples - Sebastian Riedel
17:53 GitHub77 left #mojo
18:06 Andrei666 joined #mojo
18:08 * tempire wonders when someone will start the wat wg organization
18:09 Mrono I would love a POE integration
18:19 sri Mrono: you just have to fix POE::Loop::EV and it should "just work"
18:25 fibo joined #mojo
18:26 Mrono fix?
18:26 purl well, fix is in mx-strictconstructor master
18:35 sri try to install it and you'll see
18:44 SShewale joined #mojo
18:47 batman joined #mojo
18:59 mattastrophe joined #mojo
19:09 d4rkie joined #mojo
19:18 CromeDome joined #mojo
19:26 rhaen joined #mojo
19:26 rhaen moin
19:26 rhaen Guys, here is strange question :) How would you authentificate REST calls to an api?
19:31 Andrei666 hey guys...I have a question...
19:32 Andrei666 from a template...i call this: %= form_for '/movies_set_rank' => (method => 'POST') => begin
19:32 Andrei666 in the startup sub I route-it like this
19:32 Andrei666 $r->route('/movies_set_ran​k')->to('movies#setRank');
19:32 Andrei666 and in the setRank subroutine..at the end... I do
19:33 Andrei666 $self->render( template => 'movies/details/);
19:33 Andrei666 but unfortunately.. it stalls for a moment..
19:34 Andrei666 and after a while my browser issues an error
19:34 Andrei666 and in the address bar is see http://127.0.0.1:3000/movies_set_rank
19:35 Andrei666 it's seems like it doesn't do the 'redirect'
19:45 marcus Rhaen: oauth2.
19:49 tempire rhaen: or basicauth
19:50 tempire Andrei666: it's likely the log will give you more information
19:51 rhaen marcus: it's like a handy calling an rest alike api to get the authentificatin
19:52 Andrei666 tempire: thank you....i should check the log more
19:52 rhaen marcus: if the request is answered with http code 200 the client will send rmore request.
19:52 Andrei666 i now, know...what's the problem
19:52 Andrei666 :)
19:52 Andrei666 thanks again
19:52 tempire Andrei666: if you remove the log directory, it will print to stdout
19:52 Andrei666 aha...great
19:52 Andrei666 thanks for the tip
19:53 Andrei666 :)
19:53 rhaen marcus: still figuring out how to do it.
19:54 rhaen tempire: that's what's planned right now. Using basic auth and mod_authnz_external which passes the requests to the authserver
19:54 jwang joined #mojo
19:55 tempire is there any reason to use oauth2 if you want to control your own credentials?
19:55 rhaen what I don't like is the way it's implemented like: curl https://<url>/?username=<user>&password=<password>
19:56 rhaen So I am thinking of a way to do a better auth mechanism.
19:56 rhaen like, using an HTTP Authentification header like Amazon with it's S3 storage.
19:59 rhaen like described here: http://docs.amazonwebservices.com/Amazo​nS3/latest/dev/RESTAuthentication.html
20:02 asarch joined #mojo
20:18 xaka joined #mojo
20:26 diegok marcus: is there any issue with OAuth2 plugin and fb?. I'm getting called the on_failure cb all the time (same code was working about two weeks ago).
20:32 diegok marcus: this is the request and response on the tx object I get in the on_failure cb -> https://gist.github.com/978d7b341fe35e9a3e6b
20:34 diegok marcus: last version of mojolicious and plugin.
20:35 batman diegok: works for me
20:36 batman or at least mojo 2.85 and ::oauth2 0.5
20:37 diegok batman: hm. it was failing with 2.85 and 0.6 here... :(
20:38 batman did it use to work?
20:38 diegok batman: yes!
20:39 diegok I had a test app working, today I've added it to another app and got this failure, so I went back to the test app that was working some weeks ago and it fails the same way
20:39 batman hm... sorry, but i can't test it now :/
20:39 diegok batman: ok, thank you anyway :)
20:41 GitHub87 joined #mojo
20:41 GitHub87 [mojo] kraih pushed 1 new commit to master: http://git.io/F6AkAQ
20:41 GitHub87 [mojo/master] better html_unescape tests - Sebastian Riedel
20:41 GitHub87 left #mojo
20:45 marcus Adobe++ # Wow, css regions are awesome
20:46 marcus Diegok: wfm, although there is a bug in the error handler mech that has been fixed in master.
20:48 diegok marcus: I got the req with the code param but then it fails... I'll install master...
20:49 diegok marcus: I've tried changing credentials, browser, etc and always the same :(
20:58 diegok marcus: hm, live.t pass, I'll work from there...
21:13 diegok marcus: not, live.t only tests it gets a 302. Simplest lite app still fails on my box. I'm suspecting on my old IO::Socket::SSL version now...
21:14 sri old is always bad
21:22 diegok sri: eheh, don't be bad :-p
21:22 diegok marcus: working now. 1.54 -> 1.66
21:22 diegok sorry for all this fuzz :p
21:23 diegok but, I'm pretty sure it was working some weeks ago :(
21:24 sri i would bump the IO::Socket::SSL prereq version again, but people always get mad when i do :/
21:31 diegok sri: false alarm.. it's failing again :(
21:32 fibo joined #mojo
21:32 diegok it worked once and now I'm there again. I think I should smoke and rest for a while before getting mad :(
21:48 * sri suggests picking up your laptop and smashing it as hard as you can against the edge of the table
21:48 sri repeat until problem goes away
21:49 lukep joined #mojo
21:52 marcus I blame facebook.
21:54 * sri blames books
21:56 marcus Think I am getting addicted to fallen london. It's really good.
22:09 marty That new Prometheus trailer "David 8" is super spooky.  Yeeee Hawwwww!
22:09 rwstauner joined #mojo
22:16 sri haha, just when i was complaining about whatwg and w3c they decide to merge
23:38 GitHub138 joined #mojo
23:38 GitHub138 [mojo] kraih pushed 1 new commit to master: http://git.io/yRx4xQ
23:38 GitHub138 [mojo/master] a few more examples - Sebastian Riedel
23:38 GitHub138 left #mojo
23:53 tempire http://29.media.tumblr.com/tumb​lr_m2hp65NNwb1rnr6h1o1_500.jpg
23:55 tardisx joined #mojo
23:55 sri \o/

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