00:14
<gsnedders>
Oh how boring. ian.hixie.ch has changed to something far less interesting.
00:17
<hober>
Hixie, re your tweet: http://microformats.org/wiki/hcard#Organization_Contact_Info
00:22
<Hixie>
@hober yeah but what do you do in real vCard?
00:22
<Hixie>
i can't find any docs on it
00:22
<Hixie>
what do hCard processors do when ouputting vCard?
00:22
<Hixie>
that uses that pattern?
00:29
<Hixie>
hmm, Address Book.app outputs N:;;;;
00:30
<Hixie>
fine i'll do that
00:30
<gsnedders>
Address Book.app does some weird things
00:30
<Hixie>
what other apps export vcard that i have access to?
01:30
<Hixie>
woo, there's now an algorithm for going from HTML to vCard http://www.whatwg.org/specs/web-apps/current-work/#extracting-a-vcard
03:25
<Hixie>
olliej: with() is useful in some very rare cases where you know exactly what the object's properties are and you want to do a lot of work with them (e.g. matrix maths)
03:27
<othermaciej>
using with() for matrix math would be terrible
03:29
<olliej>
Hixie: with is never ever good
03:29
<olliej>
Hixie: it defeats all optimisations, and results in absolutely absurd semantics
03:30
<olliej>
Hixie: and you need to know all properties on the object and its prototype chain
03:31
<othermaciej>
with is pretty much a bad idea in every possible way
09:11
<jgraham>
Philip`: It was more emails like http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-May/019751.html which say things like "I will never support microdata, because no case has
09:11
<jgraham>
been made for its existence.
09:11
<jgraham>
"
09:13
<jgraham>
I assumed it was uncontroversial that saying you would never support something implied you were not prepared to consider arguments why you should support something
09:14
<jgraham>
(in this case one could, perhaps, claim that "because no case has been made" allows for the possibility of a case being made, but that is clearly false satement because a case was made, just one that Shelley happeed to disagree with)
09:19
<hsivonen>
jgraham: I tried to point out in the CSSquirrel comments that if you say you don't care about the outcome, people pribably should be expected to focus on the feedback of people who do care about the outcome
09:20
<hsivonen>
jgraham: similarly, if you declare you won't budge from position X, it's not worthwhile for others to try to convinve you to accept an alternative solution X'.
09:26
<othermaciej>
CSSquirrel?
09:28
<hsivonen>
othermaciej: http://www.cssquirrel.com/2009/05/04/comic-update-html5-manners/#comment-23463
09:56
<hsivonen>
hmm. AOL not on the list at http://www.w3.org/Consortium/Member/List
10:01
<Philip`>
jgraham: Oh, okay
10:12
<Hixie>
i hope the vcard output algorithm makes sense
10:12
<Hixie>
it's not quite what i implemented in JS
10:13
<hsivonen>
http://lists.w3.org/Archives/Public/www-archive/2009May/0038.html (last paragraph)
10:16
<Philip`>
Hixie: It seems to be defined at a very inconvenient level of abstraction - someone implementing the vCard output would have to have access to the DOM and the item-extraction algorithm, rather than it being layered on top of a generic microdata extraction algorithm
10:17
<Hixie>
how so?
10:21
<Philip`>
Someone who's writing a generic microdata parsing library doesn't want to have to implement the vCard output (and iCal and BibTeX and ...) themselves, because the point is to be generic and not hard-code lots of vocabularies
10:22
<Hixie>
sure but what's dom-dependent about it?
10:22
<Philip`>
and someone who's working with vCard data will want to use the generic microdata parsing library rather than rewriting everything themselves, and doesn't want to have to hook into internal details of the library (like whether the <title> element is going to be exposed via DOM or SAX or something else)
10:24
<Hixie>
does the same not apply to the RDF output?
10:24
<Philip`>
so there should be some clearly specified API between them, e.g. using JSON as an intermediate format (and giving a single JSON-to-vCard or RDF-to-vCard or something-else-to-vCard conversion algorithm, depending on what API is chosen)
10:25
<Hixie>
that seems excessively round-about
10:25
<Philip`>
Hixie: The RDF output is not vocabulary-specific, so that should go in the generic library (which can happily deal with all the issues like extracting <title> elements)
10:26
<Hixie>
i guess i could just define things that such an API is required to expose
10:27
<Philip`>
I don't think it has to be a serialised API like JSON, but it seems useful to have some clearly specified API that can be easily implemented by the generic library and is powerful enough to let vocabulary designers do whatever they want without having to modify the generic library
10:28
<Hixie>
which would be the list of top-level items, for each item: types, properties; for each property: names, the value, and if value is an item, or else if tag is time, or else if tag is a url element; the document's title;
10:28
<Hixie>
(that's it so far i think)
10:29
<Philip`>
And the document's current address
10:29
<Hixie>
and the json and rdf outputs would need slightly more (e.g. json output needs to be able to walk the dom to find the applicable citation)
10:29
<Hixie>
well presumably the document's current address is input to the microdata api
10:29
<Hixie>
not output
10:29
<Hixie>
assuming this isn't a scripted environment
10:30
Philip`
thinks the JSON and RDF outputs are fine where they are, because they're not vocabulary-specific and so we don't have to worry about the scalability of implementing a thousand of them in the library
10:45
<Hixie>
i wonder why iCalendar isn't an official RFC2425 profile
10:53
<hsivonen>
Hixie: I also think that microdata-to-Foo conversion algorithms should operate on a microdata data model instead of escaping into the DOM on an ad hoc basis
10:57
<Hixie>
it's not really ad hoc
10:58
<Hixie>
assuming you're not talking about json or rdf outputs
10:58
<Hixie>
which kinda are
10:58
<Hixie>
what do you think of the new list at http://www.whatwg.org/specs/web-apps/current-work/#converting-html-to-other-formats
11:16
<hsivonen>
Hixie: the bulleted list lacks the node language of nodes that are itemprops
11:17
<hsivonen>
Hixie: btw, my on-list comment about 'about' and <figure> is likely misguided
11:18
<Hixie>
do i ever export the node language?
11:18
<hsivonen>
you did the day before yesterday
11:18
hsivonen
re-reads
11:18
<Hixie>
that's only in the RDF or JSON serialisations
11:18
<Hixie>
which aren't covered by this
11:18
<Hixie>
and need far more than the list says
11:18
<Hixie>
RDF only i think, in fact
11:19
<hsivonen>
"Otherwise, if element is not one of the URL property elements, let value be a plain literal, with the language information set from the language of the element, if it is not unknown."
11:19
<hsivonen>
yes, RDF only
11:20
<Hixie>
(i've added it to the list but commented out)
11:22
<hsivonen>
special-casing "about" makes me wonder if there should be a dedicated boolean attribute itemabout for flagging the aboutness node instead of having a reserved word
11:23
<hsivonen>
aside: why oh why didn't microformats.org write algorithms like this down in 2006 or so?
11:24
<Hixie>
all of the one-word keywords are "reserved words"
11:25
<othermaciej__>
I would love microformats so much more if they'd defined parsing rules and clear data extraction algorithms
11:25
<Hixie>
i guess "about" is still magical even for item=""
11:25
<Hixie>
though only for RDF
11:25
<Hixie>
i don't want to add an attribute just to make it possible to name bnodes in the rdf serialisation, that's excessive
11:26
<Hixie>
(it's not like most people are going to be exporting to rdf, imho)
11:26
<othermaciej>
do generic RDF tools do anything useful?
11:26
<othermaciej>
(I honestly don't know)
11:27
<othermaciej>
It does seem that in some cases people use generic RDF tools to extract information which they then process in a vocabulary-specific way
11:27
<hsivonen>
Hixie: the use case I'm thinking of is not naming bnodes (not a use case) but associating key-value pairs with an external resource to give metadata about it
11:28
<Hixie>
<img itemprop=about src=... alt=""> seems better than having a magical boolean attribute
11:28
<Hixie>
the boolean attribute doesn't reduce the magic required, either
11:28
<Hixie>
sicne you still have to do error handling for dupes, not urls, etc
11:29
<hsivonen>
Hixie: ok. I withdraw my feedback about 'about'
11:29
<Hixie>
and if you exclude the RDF case, "about" isn't magic, it's just a property name common to many vocabularies
11:29
<Hixie>
othermaciej: no idea, i've been looking for end-user RDF-consuming software without any luck for the past few days
11:30
<hsivonen>
Hixie: you should make property names that start with http://www.w3.org/1999/xhtml/custom# non-conforming
11:30
<othermaciej>
I think the kind of tool I described couldn't possibly be an end-user tool, or at least not a good one
11:30
<hsivonen>
Hixie: otherwise, there can be conforming property names that are distinct in JSON but not in RDF
11:31
<othermaciej>
because you can't make a good UI for displaying "generic" data
11:31
Hixie
wonders what level of arcane magic he's going to have to do to output "rdate" properly in the iCalendar output and ponders just not supporting it in a clever way, requiring that people who use its longer forms use the iCalendar syntax directly instead of using <time>
11:31
<Hixie>
hsivonen: is that a "real problem" as they say?
11:31
<hsivonen>
Hixie: as real as many other conformance reqs
11:32
<Hixie>
hsivonen: fair enough.
11:32
<Hixie>
othermaciej: at least not with current technology
11:32
<Hixie>
hsivonen: i hate having rdf-specific rules in the non-rdf part of this
11:32
<Hixie>
hsivonen: isn't there a better solution?
11:32
<hsivonen>
Hixie: also, an easy error to make if one tries to put a once extracted RDF graph back into HTML
11:33
<hsivonen>
Hixie: can't think of one right now
11:34
<hsivonen>
http://twitter.com/JeniT/status/1806014001
11:35
<Hixie>
i wish we had a way for people to test how google interpreted rdfa, so that any bugs (if any) could be shaken out
11:37
<Philip`>
I also wish we had a specification that said what was a bug and what was correct
11:38
<Hixie>
i'm sure shane and the rdfa community will address your comments and fix the problems you pointed out
11:38
<Hixie>
hsivonen: ok, banned those prefixes
11:38
<hsivonen>
Hixie: thanks
11:39
<Hixie>
ok since i'm not doing magic for rdate, icalendar output is going to be easy
11:44
<Philip`>
Hixie: The comments seem unresolvable in an HTML4+RDFa specification, and nobody has shown great interest in writing an HTML5+RDFa specification, so I don't know where the comments would get addressed
11:46
<Philip`>
At least Shane's statement that "The goal here is that all implementations extract the same collection of triples from a given document." sounds exactly like the goal of an HTML5+RDFa specification (as long as it's not restricted to valid documents, or to static documents)
11:46
<Hixie>
well i presume he'd have to define HTML4 parsing and DOM representations
11:47
<Philip`>
I think that counts as "unresolvable" :-p
11:48
<Hixie>
it's obviously not unresolvable since we did it for html5
11:48
<Hixie>
and it's defined for microdata
11:48
<Hixie>
so it seems reasonable to expect the same of other proposals
11:48
<Hixie>
i don't see how you could achieve his stated goals, either
11:48
<Philip`>
s/unresolvable/practically unresolvable/
11:49
<Hixie>
it's impractical not to resolve it
11:49
<Philip`>
Sure
11:50
<Philip`>
so HTML4+RDFa is impractical
11:50
<Philip`>
and seems quite pointless, because all it really provides is a DTD, and you could use an XHTML DTD instead if you just want validation
11:51
<hsivonen>
Philip`: it provides a DTD and it tells you to ignore certain output of the DTD-based validator
11:52
<Philip`>
But his stated goal suggests that he might be receptive to an HTML5+RDFa specification, since it's the only way to achieve his stated goals, so that suggests it could be possible to move in the right direction in the future
11:53
<Philip`>
s/repetition//
11:56
<Philip`>
(But that seems unlikely to happen unless someone familiar with HTML5 writes it, because anyone else would find it very hard to understand the HTML5 processing model in enough detail without spending ages learning it)
11:57
<Hixie>
it would not be inappropriate for people working on core w3c technologies to learn how the web's most core language works
12:00
<othermaciej>
I'm not sure everyone agrees that HTML is the Web's most core language
12:00
<Hixie>
most deployed language?
12:01
<othermaciej>
that seems harder to dispute :-)
12:01
<Philip`>
Defining an HTML processing model for RDFa is kind of diving in the deep end - it's not a nice gradual learning curve, and so people are more likely to ignore it and stick with what they're familiar with
12:01
<othermaciej>
(though people have certainly tried to claim that public deployment numbers are not representative of what you'd find if you could survey intranets)
12:06
<Hixie>
othermaciej: imho "the web" doesn't include intranets.
12:07
<hsivonen>
http://www.guha.com/mcf/vocab.html
12:07
<othermaciej>
I would generally agree with that sentiment, if only for methodological reasons
12:07
<hsivonen>
Hixie: but it does include your local hard drive?
12:07
<othermaciej>
it is very easy to make unverifiable claims about the contents of intranets
12:07
<Hixie>
no, why would it?
12:08
<othermaciej>
I do think specific claims about intranet content that are supported by evidence may be worth considering
12:08
<hsivonen>
Hixie: my memory may be failing me
12:09
<othermaciej>
even if not at the same weight as the public Web
12:09
<othermaciej>
since a controlled environment has less need for open-ended interoperability
12:09
<Philip`>
hsivonen: You should use ECC memory
12:09
<hsivonen>
Philip`: or krijnh's logs
12:09
<othermaciej>
so maybe it's just me, but Sam often seems to have more interesting things to say about what's going on in the HTML WG on his blog than in public-html
12:14
<Hixie>
ok, icalendar output support is done
12:14
<Hixie>
i'll do bibtex probably sunday
12:15
<Hixie>
http://www.whatwg.org/specs/web-apps/current-work/#icalendar
12:23
<Hixie>
nn
12:23
<hsivonen>
Hixie: my menory was failing, sorry: http://krijnhoetmer.nl/irc-logs/whatwg/20081201#l-255
12:37
<hsivonen>
http://benlog.com/articles/2009/05/14/incremental-benefit-and-bursts-of-innovation/
18:28
<gsnedders>
Maths help needed: if f(x) = cos 2x, find f'(\frac{2\pi}{3})
18:28
<gsnedders>
f'(x) = -2sin 2x, right?
18:29
<gsnedders>
And then if I set x = \frac{2\pi}{3} I don't get the answer in the back of book when I enter it in to my calculator :(
18:29
<Philip`>
gsnedders: http://www.wolframalpha.com/input/?i=cos+2x
18:30
<Philip`>
That says d/dx(cos(2 x)) = -2 sin(2 x)
18:30
<gsnedders>
i.e., is agrees with me
18:31
<Philip`>
then http://www.wolframalpha.com/input/?i=sin%284pi%2F3%29 says -sqrt(3)/2
18:31
<Philip`>
so you'd get sqrt(3)
18:31
<gsnedders>
Where does the negative go?
18:31
<Philip`>
Which negative?
18:32
<gsnedders>
-sqrt(3)/2
18:32
<Philip`>
It goes at the front
18:32
<gsnedders>
:P
18:32
<Philip`>
Do you mean something else?
18:32
<gsnedders>
Why is the final answer not negative?
18:32
<Philip`>
Because you multiply by -2
18:33
<gsnedders>
Now, cheating and using wolfram alpha doesn't actually help me learn this.
18:33
<Dashiva>
You can still use Philip`'s steps
18:33
<Philip`>
I don't think you need Wolfram Alpha to tell you that -2 * -1/2 = +1
18:33
<gsnedders>
OK, no
18:33
<Dashiva>
Derivative, then calculate for just sin, then multiply by -2
18:34
<Dashiva>
I suppose the hard step is memorizing sin for the various pi thirds :)
18:35
<gsnedders>
Oh, duh
18:35
<gsnedders>
My calculator is in degrees
18:35
<Philip`>
Memorising sin is easy - it's always 0, 1, 1/2 or sqrt(3)/2, or sometimes negative, and sin(pi/3)=sin(30 deg)=1/2 and all the others fit around it in the obvious places
18:36
<Philip`>
Um
18:36
<Philip`>
That's not right is it
18:36
<Philip`>
sin(pi/6)=sin(30 deg)=1/2
18:37
<gsnedders>
Hmm, Wolfram|Alpha says it's raining here. I would disagree with that, looking out of the window.
18:37
<Dashiva>
Philip`: Yeah, I use the same rule
18:37
<Dashiva>
And cos is just sin flipped
18:39
<Philip`>
http://www.wolframalpha.com/input/?i=%ef%bf%bf - that's the most useful response I've ever seen to that query string
18:39
<Philip`>
It's a little silly how the encodings table is an image, though
18:40
<Dashiva>
But it isn't correct, is it? :)
18:40
<Philip`>
Why not?
18:41
<Dashiva>
It should give pages about input sanitation and such
18:42
<Philip`>
Why should it do that? It's not a search engine
18:43
<Dashiva>
I wouldn't expect a search engine to, though
18:43
<gsnedders>
Dashiva: What would you expect a search engine to do? Throw a fatal error?
18:44
<Philip`>
http://www.wolframalpha.com/input/?i=p%3Dnp - alas, there are some things it can't compute yet
18:44
<Dashiva>
gsnedders: Give pages about BOM
18:44
<Dashiva>
"Functionality for this topic is under development..."
18:44
<Dashiva>
They'll have the answer soon, in other words
18:44
<gsnedders>
hah
18:47
<Philip`>
Hmm, given a short list of primes it lists primes as a possible closed form, but it doesn't work for more complex sequences like what http://www.research.att.com/~njas/sequences/ does :-(
18:54
<gsnedders>
Our maths teacher showed us that in class
18:56
<Philip`>
I've found it to be very occasionally very useful
18:58
<gsnedders>
(This was the former head of maths, now retired, who always went off on tangents from his lesson plans, and taught us an amazing amount of stuff in the course out of order, and an amazing amount of stuff totally randomly)
19:03
<gsnedders>
http://www.wolframalpha.com/input/?i=Ben+Lomond — I always thought it was a mountain…
19:15
<Philip`>
http://www.wolframalpha.com/input/?i=whatwg.org - "daily visitors: ~50,000" - really?
19:18
<Philip`>
http://www.wolframalpha.com/input/?i=w3.org - the "HTML element hierarchy" looks pretty
19:26
<gsnedders>
Philip`: Well, it says SimplePie.org has 61,000 per day, whereas stats tracker on the website says around 800
19:28
<hsivonen>
http://www.wolframalpha.com/input/?i=python
19:30
<hsivonen>
Philip`: why am I not seeing daily visitor stats on wolfram|alpha?
19:32
<Philip`>
http://www.wolframalpha.com/input/?i=sin%282x%29+cos%282y%29+from+0+to+10 - the plots are nice, but I can't work out how to change the y range
19:33
<Philip`>
hsivonen: I get "Web statistics for all of whatwg.org:" in the third bit, which has the visitor stats
19:36
<hsivonen>
3rd bit?
19:41
<Philip`>
The third section in the results page
19:49
<hsivonen>
I see no such thing
19:51
<Philip`>
Hmm
19:52
<Philip`>
What do you see?
20:27
gsnedders
has a breakneck revision timetable for maths
20:27
<gsnedders>
This is gonna be fun :\
20:57
<Hixie>
hsivonen: heh, that irc log had above-average quality of content
21:18
<Hixie>
hsivonen: validator.nu bug report http://www.reddit.com/r/programming/comments/8kfux/why_everyone_should_dump_ie/c09layo
21:20
gsnedders
shouldn't try and use Wolfram|Alpha to help him with maths, because he doesn't have it on Thursday
21:20
<Philip`>
Hixie: Sounds like you need to make the spec smaller
21:25
<gsnedders>
(Though having some method of calculating stuff that shows all the steps to get there is damned useful)
21:29
<Hixie>
Philip`: hah
21:30
<gsnedders>
Hixie: Maybe remove the parsing section?
21:31
<Philip`>
Hixie: You could remove all the whitespace
21:32
<gsnedders>
I mean, html5lib's serializer has an option for that :P
21:33
<Hixie>
i think i use that, no?
21:39
<Philip`>
There's all the wasted space between words too
21:41
<Philip`>
You don't need a whole character for that, you could just CamelCase everything
21:43
<gsnedders>
Hixie: no, you don't
21:44
<Hixie>
k
21:44
<gsnedders>
It will, however, make the index diffs totally unreadable
22:04
<Hixie>
they're not particularly readable now