Camelia, the Perl 6 bug

IRC log for #mojo, 2013-09-17

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

All times shown according to UTC.

Time Nick Message
00:08 good_news_everyone joined #mojo
00:08 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/Co6-UA
00:08 good_news_everyone mojo/master 9185d2b Sebastian Riedel: small optimization
00:08 good_news_everyone left #mojo
00:17 sri guess there will be no source link... since i have no clue where to place it :o
00:27 btyler joined #mojo
00:43 shmuel joined #mojo
01:00 laouji joined #mojo
01:15 asarch joined #mojo
01:32 basic6 joined #mojo
01:35 btyler joined #mojo
01:56 duncanthrax joined #mojo
02:00 d4rkie joined #mojo
02:00 d4rkie joined #mojo
02:22 dvinciguerra joined #mojo
02:34 good_news_everyone joined #mojo
02:34 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/W3M7PQ
02:34 good_news_everyone mojo/master f24706d Sebastian Riedel: improved HTML5.1 compliance of Mojo::DOM::HTML
02:34 good_news_everyone left #mojo
02:37 sri can't say i'll miss <hgroup> and <command>
02:44 mst I don't even know what those are.
02:48 jamesw html5.1++
02:53 shmuel joined #mojo
03:07 preflex_ joined #mojo
03:15 sri lol... i've been updating a list that does nothing anymore for quite some time...
03:20 good_news_everyone joined #mojo
03:20 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/i68c6w
03:20 good_news_everyone mojo/master dfd3415 Sebastian Riedel: removed unused list of elements with optional end tags
03:20 good_news_everyone left #mojo
03:21 mst sri: what?
03:21 sri i must have forgotten to remove it when i added proper handling of optional end tags
03:22 sri https://github.com/kraih/mojo/blob​/master/lib/Mojo/DOM/HTML.pm#L268
03:22 sri that monstrosity... yay for legacy html compatibility
03:24 sri hmm... might also be worth revisiting the repair strategy... considering that html5 doesn't really have a concept of inline elements anymore :S
03:30 sri ah, the new term appears to be "inline box"... as opposed to "block box"
03:40 sri aaaaah
03:40 sri in the html5 spec that's not called text level semantics!
04:41 sri and the category i need is phrasing content \o/
04:49 good_news_everyone joined #mojo
04:49 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/GXHR-Q
04:49 good_news_everyone mojo/master bdff872 Sebastian Riedel: more HTML5.1 compliance improvements
04:49 good_news_everyone left #mojo
04:51 good_news_everyone joined #mojo
04:51 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/i6OGMQ
04:51 good_news_everyone mojo/master 622d37f Sebastian Riedel: fixed comment in Mojo::DOM::HTML
04:51 good_news_everyone left #mojo
04:52 good_news_everyone joined #mojo
04:52 good_news_everyone [mojo] kraih tagged v4.39 at 572be8d: http://git.io/Y6NeVA
04:52 good_news_everyone left #mojo
04:56 sri phew, that's pretty maintainable now by following the spec :)
05:02 basic6_ joined #mojo
05:10 dqw joined #mojo
05:15 korshak_ joined #mojo
05:21 sri yea, i shouldn't release at this time...
05:36 duncanthrax joined #mojo
05:38 duncanthrax joined #mojo
05:49 yakudza joined #mojo
05:51 sri here's a fun idea for a patch... implement the actual adoption agency algorithm for Mojo::DOM::HTML :)
05:51 sri http://www.whatwg.org/specs/web-apps/c​urrent-work/#adoption-agency-algorithm
05:53 wsri joined #mojo
05:53 marcus joined #mojo
06:50 dod joined #mojo
07:00 dod joined #mojo
07:11 mire__ joined #mojo
07:30 hrupp joined #mojo
07:39 trone joined #mojo
07:52 dotan joined #mojo
08:07 dod joined #mojo
08:12 fhelmber_ joined #mojo
08:43 denisboyun joined #mojo
08:44 Vandal joined #mojo
08:47 Vandal joined #mojo
08:49 bd there are some interesting names used: This algorithm's name, the "adoption agency algorithm", comes from the way it causes elements to change parents, and is in contrast with other possible algorithms for dealing with misnested content, which included the "incest algorithm", the "secret affair algorithm", and the "Heisenberg algorithm".
08:57 basiliscos joined #mojo
09:16 maxhq joined #mojo
09:40 tianon joined #mojo
10:09 ladnaV joined #mojo
10:09 denis_boyun joined #mojo
10:12 Vandal joined #mojo
10:18 ladnaV joined #mojo
10:27 Vandal joined #mojo
10:33 ladnaV joined #mojo
10:48 fhelmbe__ joined #mojo
10:54 selim joined #mojo
11:01 denis_boyun joined #mojo
11:13 mire__ joined #mojo
11:23 dvinciguerra joined #mojo
11:31 asarch joined #mojo
11:46 sixBB joined #mojo
11:49 dpetrov_ joined #mojo
11:55 fhelmber_ joined #mojo
13:02 dod joined #mojo
13:05 Vandal joined #mojo
13:21 denisboyun joined #mojo
13:24 ladnaV joined #mojo
13:28 KindTwo joined #mojo
13:43 btyler joined #mojo
13:44 Vandal joined #mojo
13:53 bowtie_ joined #mojo
13:53 ladnaV joined #mojo
13:59 n0n joined #mojo
13:59 good_news_everyone joined #mojo
13:59 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/COBspQ
13:59 good_news_everyone mojo/master 8e7f13d Sebastian Riedel: mention which methods do not protect from traversing to parent directories
13:59 good_news_everyone left #mojo
14:00 rem_lex|pivo joined #mojo
14:18 Vandal joined #mojo
14:20 good_news_everyone joined #mojo
14:20 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/FcVqMw
14:20 good_news_everyone mojo/master 633e716 Sebastian Riedel: added another path canonicalizing example
14:20 good_news_everyone left #mojo
14:24 good_news_everyone joined #mojo
14:24 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/_vu-_w
14:24 good_news_everyone mojo/master ed95057 Sebastian Riedel: fixed typo in canonicalization example
14:24 good_news_everyone left #mojo
14:31 dqw joined #mojo
14:40 gryphon joined #mojo
14:44 marty hmm.  Is it possible that port or protocol could affect how cookies are set/updated?    I'll dig further but I have weird behavior when switching between http and https (on non standard ports)
14:45 marty it may very well be a bug in my app (likely) but I thought I would ask just to be sure
14:49 sh4 joined #mojo
14:58 n0n joined #mojo
15:03 sh3 joined #mojo
15:08 HtbaaPi joined #mojo
15:14 dvinciguerra joined #mojo
15:19 marty is it possible to start morbo with proxy support?
15:19 marty my cookie issue seems to be related to running morbo behind nginx
15:23 mire__ joined #mojo
15:45 ladnaV joined #mojo
15:50 Vandal joined #mojo
15:50 dotandimet joined #mojo
15:52 marty the cookbook references the X-Forwarded-HTTPS directive however, I am unable to find any reference to that header for either nginx or apache via google search
15:57 ladnaV joined #mojo
16:02 depesz left #mojo
16:16 sri marty: it's an arbitrary header, there is no standard
16:17 marty thank you, sri
16:20 dod joined #mojo
16:22 sri look at that... there's a proposal for a spec now :o
16:22 sri http://tools.ietf.org/html/draft​-ietf-appsawg-http-forwarded-10
16:22 fhelmber_ joined #mojo
16:22 sri the winner appears to be X-Forwarded-Proto
16:23 sri hmm... if we wanted to switch we would have kind of a big problem
16:25 sri if you support more than one of those headers you need to make sure the others are not passed through by the proxy
16:26 sri or you have a security leak
16:28 sri security wise it might be best to make such a switch a breaking change
16:31 sri oops
16:32 sri actually the spec proposes a Forwarded header with parameters like proto=https :o
16:35 marty haha, I'm on the bleeding edge!!!  vroooom
16:36 sri looks like that spec has been forgotten mid 2012 though
16:36 Vandal joined #mojo
16:40 sri soooo... i guess nobody wants to implement the adoption agency algorithm for me :/
16:41 sri guess Mojo::DOM::HTML will stick with the naive algorithm then
16:42 sri bd: SAY MY NAME!
16:47 dvinciguerra joined #mojo
16:53 bd sri: I get payed for stuff like that ;)
16:54 sri bd: NOW...SAY MY NAME!
16:54 sri http://www.youtube.com/watch?v=dy_DASt7hDs
16:55 tianon bd: if you say it enough times, it might summon him to your current location! :)
17:02 bd tianon: i am not entirely sure how security would react to that :)
17:02 tianon bd: it could get really interesting :)  just tell them he wrote the foundations of the modern internet :P
17:03 * sri still waits for someone to say heisenberg...
17:03 Adura joined #mojo
17:05 marty pffft...  http://www.youtube.com/watch?v=xaILTs-_1z4#t=1m12s
17:12 batman if i want to store a date using Mango, do i use bson_time...?
17:18 mire__ joined #mojo
17:21 ladnaV joined #mojo
17:26 Vandal joined #mojo
17:30 dotandimet joined #mojo
17:32 ladnaV joined #mojo
17:35 n0n joined #mojo
17:39 basiliscos joined #mojo
17:51 korshak_ joined #mojo
17:51 sixBB joined #mojo
18:08 marty batman: I use bson_time for that, but only if I cannot use the ObjectID as a timestamp
18:08 tianon implicit creation date ftw :D
18:14 d4rkie joined #mojo
18:15 denisboyun joined #mojo
18:28 asarch joined #mojo
18:28 fhelmber_ joined #mojo
18:30 marty ahhh,  Mojolicious sets the httponly flag in cookies by default (as far as I can tell)   Does anyone know how to turn that off?
18:34 sri marty: don't think you can
18:37 * marty reads up on cookies since he must be missing something
18:46 dotandimet joined #mojo
18:51 sri not that i know any good reason to disable the flag
19:23 selim joined #mojo
19:24 og01 hey im trying to do a flash message in my template with somethign like this: http://pastebin.ca/2453698 however im gettint $msg requires explicit package name at template messages for each of my uses of $msg (as if strict was on)
19:26 og01 in a template i would expect a certain sloppyness when params arnt set
19:28 marty og01:  for stash values we use stash('var')  so maybe flash('var
19:28 marty ')
19:28 marty I have not used flash in a long time so I dunno
19:28 og01 thats to set the value, but to access the value in the template?
19:31 og01 http://search.cpan.org/~sri/Mojolicious-4.39​/lib/Mojolicious/Lite.pm#Stash_and_templates
19:31 marty http://search.cpan.org/~sri/Mojolicious-4.39/l​ib/Mojolicious/Plugin/DefaultHelpers.pm#stash
19:31 firnsy joined #mojo
19:31 og01 in this example, the values are accessed as normal scalars?
19:31 * marty cannnot access mojolicio.us    :(
19:32 og01 marty: its up for me
19:32 * marty tries again
19:32 marty og01;  stash is a default helper
19:33 og01 but they are accessed with $one and $two, which doesnt seem right?
19:33 og01 let me try the example see if it works
19:33 og01 one min
19:36 og01 yeah ok, so their example works, if you set one => "something" then $one is available in the template
19:37 og01 but how do you effectivly check for the existance of this variable?
19:37 og01 you cant if defined $one, because that would be an error because $one doesnt exist at this point?
19:38 og01 should i just not use $one and instead use stash 'one'?
19:40 og01 well its a solution atleast
19:45 good_news_everyone joined #mojo
19:45 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/-zfTxQ
19:45 good_news_everyone mojo/master 0ffffb2 Sebastian Riedel: fixed table parsing bug in Mojo::DOM::HTML
19:45 good_news_everyone left #mojo
19:47 sri og01: if you don't want your templates to be strict, then say "no strict;"... it's just perl
19:48 Liam`` joined #mojo
19:48 marty og01: you can also do: if ( stash('var') ) {...}
19:49 korshak__ joined #mojo
19:53 og01 sri: thanks i actually tried that
19:53 batman marty: thanks. got a bit confused over bson_timestamp
19:53 og01 sri: and it told me i wasnt allowed, one sec, i'll get the message
19:54 sri batman: you might want to read up on bson data types in the mongodb documentation
19:54 batman sorry. i meant bson_ts
19:54 batman sri: so the names map directly?
19:54 sri yes
19:54 og01 sri: ok i lied, i'll shutup
19:54 og01 sri: no strict seems to work
19:55 batman sweet
19:55 batman tahnks
19:55 batman *thanks
19:55 asarch joined #mojo
19:55 sri og01: note i don't recommend you do that, just saying it's possible
19:56 og01 sri: well I am usually against no strict; but generally in a template i would say the rules change and its actually fairly desirable
19:56 sri plain "no strict;" is outright reckless, at the very least you should know the category you're disabling
19:56 og01 maybe im wrong, but thats how i feel
19:56 og01 sri: perhaps
19:57 og01 tbh perhaps im just used to using templates that dont use the native interpretor for parsing the templates
19:58 og01 and as such i should be more carefull, but there you go..
19:58 og01 i'll work out what works best for me, but fornow i'll just use the stash helper
20:22 good_news_everyone joined #mojo
20:22 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/k1YndQ
20:22 good_news_everyone mojo/master cf95187 Sebastian Riedel: col element has no end tag
20:22 good_news_everyone left #mojo
20:31 ajmrch joined #mojo
20:40 marty For posterity. If you want to run morbo behind an nginx reverse proxy, set your environment variable MOJO_REVERSE_PROXY=1   Whew!!!!
21:00 asarch joined #mojo
21:53 selim joined #mojo
22:18 __mkrull joined #mojo
22:34 dqw joined #mojo
22:52 Adurah joined #mojo
23:08 asarch joined #mojo
23:21 dvinciguerra joined #mojo
23:46 og01 whats the best way to reroute someone if their session isnt set? say i want to protect everything under /admin/.... would i use Hooks? or under?
23:48 sixBB joined #mojo

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