semantics

Valid use of <q>, <blockquote> and <cite>

落花浮王杯 提交于 2019-12-06 02:14:00
问题 Is this valid use of q , blockquote and cite ? <q>Life is what happens when you're busy making other plans</q> <cite>John Lennon</cite> or <blockquote>Life is what happens when you're busy making other plans</blockquote> <cite>John Lennon</cite> 回答1: <q> The q element represents some phrasing content quoted from another source. <p>And then he said <q>I heart HTML5.</q></p> <cite> The cite element represents the title of a work (e.g. a book, a paper, an essay, a poem, a score, a song, a script

Auto Categorization of Content

心不动则不痛 提交于 2019-12-05 23:56:01
I'm developing a script that extracts the messages from the message archive of a particular meetup.com group of which I'm a member - http://www.meetup.com/opencoffee/messages/archive/ The idea is to dynamically add these to a wordpress site and allow people to search messages, auto tag messages etc. The issue I have is how best to auto categorize these messages. I would welcome any thoughts and ideas of how best to go about this and what would be the most efficient way of programming this. Option 1 Find a source of tags by subject area such as finance, technology, business etc by using the

Semantic meaning of writing functions

≡放荡痞女 提交于 2019-12-05 22:44:54
We can write functions in 2 ways: var v1 = m1('hello'); // error var v2 = m2('hello'); // OK var m1 = function(param){ // ... return param; } function m2(param){ // ... return param; } var v1 = m1('hello'); // OK var v2 = m2('hello'); // OK As I know there is only one difference - time of creation : m2 in compilation time, so we can use it 'before' declaration - like in my case. m1 in assignment time (code goes line by line) and we cannot use it before. Is one more efficient for memory or performance? In which case is one way more semantic, in which case second? Is here next difference? When

Compute the mean of two columns in a dataframe

那年仲夏 提交于 2019-12-05 22:21:16
问题 I have a dataframe storing different values. Sample: a$open a$high a$low a$close 1.08648 1.08707 1.08476 1.08551 1.08552 1.08623 1.08426 1.08542 1.08542 1.08572 1.08453 1.08465 1.08468 1.08566 1.08402 1.08554 1.08552 1.08565 1.08436 1.08464 1.08463 1.08543 1.08452 1.08475 1.08475 1.08504 1.08427 1.08436 1.08433 1.08438 1.08275 1.08285 1.08275 1.08353 1.08275 1.08325 1.08325 1.08431 1.08315 1.08378 1.08379 1.08383 1.08275 1.08294 1.08292 1.08338 1.08271 1.08325 What I want to do, is creating a

Is there a Maven “compiler-only” scope for dependency artifacts

▼魔方 西西 提交于 2019-12-05 12:05:42
问题 I realise this is more of a semantic quest rather than a functionality quest. I have three types of compile-scope dependencies: Compile-only scope, not used at run-time. GWT client-side dev, MVP4G, RestyGWT, Source retention annotation processors. I use REST, so I don't need GWT server side. Provided - Hibernate jars required for compilation but provided by JBoss. Compile + runtime jars. For case 2, we could use provided scope. Case 3, we would use compile scope. However for case 1, I use

Extract relevant sentences to entity

纵饮孤独 提交于 2019-12-05 07:54:08
问题 Do you know some paper or algorithm in NLP that is able to extract sentences from text that are related to given entity (term). I would like to process some reviews (mainly tech), but I found out that many reviews mention more then one product (they do comparation). I would like to extract from that text just sentences that are relevant to one product, or delete sentences that are irrelevant to particular named entity (product). My questin is how to do it? Is there some related papers? Is

Setting rowspan on colgroup?

二次信任 提交于 2019-12-05 07:11:54
问题 Simple (I hope), HTML question. Let's say I have a column group that spans 3 columns. But it also spans 9 rows. But in actuality, I want there to be 3 levels of columns (so basically, 3 columns, split across 9 rows). The only objectives really are: a) avoid embedding tables (for various reasons) b) keep the sections modular. c) allow for styling of the semantically modular areas. So in the end, I would have something visually like: | col 1 | col 2 | col 3 | | row 1 | row 1 | row 1 | | row 2 |

What is the length property of the Function, Array, and Object constructors?

痞子三分冷 提交于 2019-12-05 07:11:03
What is length static property of Function,Array and Object constructor? Static methods makes sense but what about length static property? Object.getOwnPropertyNames(Array) ["length", "name", "arguments", "caller", "prototype", "isArray"] Object.getOwnPropertyNames(Function) ["length", "name", "arguments", "caller", "prototype"] Note: I am getting answers about length property of Function.prototype that is not asked here. Object.getOwnPropertyNames(Function.prototype) ["length", "name", "arguments", "caller", "constructor", "bind", "toString", "call", "apply"] Object.getOwnPropertyNames(Object

What is the rationale behind typedef vs struct/union/enum, couldn't there be only one namespace?

倾然丶 夕夏残阳落幕 提交于 2019-12-05 07:03:46
In C if I declare a struct/union/enum: struct Foo { int i ... } when I want to use my structure I need to specify the tag: struct Foo foo; To loose this requirement, I have to alias my structure using typedef: typedef struct Foo Foo; Why not have all types/structs/whatever in the same "namespace" by default? What is the rationale behind the decision of requiring the declaration tag at each variable declaration (unless typdefe'd) ??? Many other languages do not make this distinction, and it seems that it's only bringing an extra level of complexity IMHO. Structures/records were a very early pre

Links inside HTML5 footer element (nav and aside?)

对着背影说爱祢 提交于 2019-12-05 06:36:00
I'm currently moving a page from HTML4 to HTML5, and I have kind of an issue. There's a bunch of lists with links inside the footer. Most of them link to information (faq etc.) about the site itself. So I think it's OK to put those inside a nav element (see "Introducing HTML5" and the HTHML5 Doctor). But two lists contain links to external pages like Facebook. Now I could wrap those inside an aside, but this is a bit of an edge case: "It is legitimate to wrap the links to other pages on the site with an aside inside the footer — but ask yourself whether the aside to instead be a sibling of the