This is a "loose" spec for the body_html5 part of [ttninjs][ttninjs].
- 1.3 Clarify html-doc structure
- 1.2 alt-attribute in ``,
div.byline
before `figcaption` (to be html5-valid)
set = (v) -> (f) -> f(v) | |
get = (f) -> f (v) -> v | |
t = set(42) | |
get(t) // 42 |
2:48:22,567 INFO [context.ContextLoader] Root WebApplicationContext: initialization completed in 6169 ms | |
Jul 11, 2013 12:48:22 PM org.apache.catalina.core.StandardContext filterStart | |
SEVERE: Exception starting filter ofp-basic-auth | |
javax.naming.NamingException: Cannot create resource instance | |
at org.apache.naming.factory.ResourceEnvFactory.getObjectInstance(ResourceEnvFactory.java:117) | |
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321) | |
at org.apache.naming.NamingContext.lookup(NamingContext.java:843) | |
at org.apache.naming.NamingContext.lookup(NamingContext.java:154) | |
at org.apache.naming.NamingContext.lookup(NamingContext.java:831) | |
at org.apache.naming.NamingContext.lookup(NamingContext.java:168) |
private final static Similarity NO_LENGTH_SIMILARITY = new DefaultSimilarity() { | |
// we are interested in length norm for the street number field. | |
// it's good if 10 is sorted before 10a and 10b. | |
// | |
// the "country" field is very important it has no document boost since that means | |
// simply turning Query.setCountry() on will make a different score. This is because | |
// a document boost will add to every field and country is matched in a MUST. | |
@Override | |
public float computeNorm(String field, FieldInvertState state) { |
alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".split("") | |
base = alphabet.length | |
exports.encode = (i) -> | |
return alphabet[0] if i is 0 | |
s = "" | |
while i > 0 | |
s += alphabet[i % base] | |
i = parseInt(i / base, 10) |
web: node web.js |