Skip to content

Instantly share code, notes, and snippets.

/usr/local/lib/node/.npm/ext/0.6.1/package/lib/ext/core_ext/function.js:4
require('ext').extend(Function.prototype, {
^
TypeError: Object #<an Object> has no method 'extend'
at Object.<anonymous> (/usr/local/lib/node/.npm/ext/0.6.1/package/lib/ext/core_ext/function.js:4:16)
at Module._compile (node.js:461:23)
at Module._loadScriptSync (node.js:468:10)
at Module.loadSync (node.js:338:12)
at loadModule (node.js:283:14)
at require (node.js:411:14)
@sideshowbarker
sideshowbarker / gist:706192
Created November 19, 2010 06:33
comparing jing error message for required-but-missing attributes
error message from validator-nu branch:
/Users/mike/FOO.html:4:8: error: Element “object” from namespace
“http://www.w3.org/1999/xhtml” is missing one or more of the following
attributes: [data, type].
error message from jing trunk:
/Users/mike/FOO.html:4:8: error: element "object" missing one or more
required attributes; expected attribute "accesskey", "align", "archive",
"border", "class", "classid", "code", "codebase", "codetype",
"contenteditable", "contextmenu", "data", "datafld", "dataformatas",
diff -r dfd45ca89a7d HtmlParser-compile-detailed
--- a/HtmlParser-compile-detailed Sun Dec 12 17:38:35 2010 -0800
+++ b/HtmlParser-compile-detailed Wed Dec 15 16:26:51 2010 +0900
@@ -1,3 +1,3 @@
#!/bin/sh
APPDIR=`dirname $0`;
-java -XstartOnFirstThread -Xmx256M -cp "$APPDIR/src:$APPDIR/gwt-src:$APPDIR/super:/Developer/gwt-mac-1.5.1/gwt-user.jar:/Developer/gwt-mac-1.5.1/gwt-dev-mac.jar" com.google.gwt.dev.GWTCompiler -style DETAILED -out "$APPDIR/www" "$@" nu.validator.htmlparser.HtmlParser;
+java -Xmx256M -cp "$APPDIR/src:$APPDIR/gwt-src:$APPDIR/super:/opt/workspace/gwt-2.1.0/gwt-user.jar:/opt/workspace/gwt-2.1.0/gwt-dev.jar" com.google.gwt.dev.GWTCompiler -style DETAILED -out "$APPDIR/www" "$@" nu.validator.htmlparser.HtmlParser;
diff -r dfd45ca89a7d HtmlParser-compile-detailed.launch
--- a/HtmlParser-compile-detailed.launch Sun Dec 12 17:38:35 2010 -0800
HG=hg
SVN=svn
CURL=curl
PYTHON=python
PATCH=patch
SPLITTER=html5-tools/spec-splitter/spec-splitter.py
SPLITTERFLAGS=--html5lib-serialiser
LOG: index.html $(SPLITTER)
$(PYTHON) $(SPLITTER) $(SPLITTERFLAGS) $< .
LOG: index.html $(SPLITTER)
$(PYTHON) $(SPLITTER) $(SPLITTERFLAGS) $< . > LOG
diff -r a8d67c49a927 relaxng/datatype/java/src/org/whattf/datatype/Refresh.java
--- a/relaxng/datatype/java/src/org/whattf/datatype/Refresh.java Fri Jan 21 16:04:32 2011 +0900
+++ b/relaxng/datatype/java/src/org/whattf/datatype/Refresh.java Thu Feb 10 04:31:51 2011 +0900
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008 Mozilla Foundation
+ * Copyright (c) 2008-2011 Mozilla Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@sideshowbarker
sideshowbarker / gist:976161
Created May 17, 2011 08:36
validator build.py urllib timeout fix
diff -r b893eb8c0260 build.py
--- a/build.py Sat Feb 12 20:51:26 2011 +0000
+++ b/build.py Tue May 17 17:35:45 2011 +0900
@@ -25,6 +25,7 @@
import shutil
import httplib
import urllib2
+import socket
import re
try:
From: bugzilla-daemon@sideshowbarker.net
To: mike@w3.org
Subject: [Bug 1] checking e-mail
Date: Mon, 20 Jun 2011 16:00:37 +0900
http://sideshowbarker.net/bugzilla3/show_bug.cgi?id=1
diff -r 5922374b5f63 src/nu/validator/gnu/xml/aelfred2/SAXDriver.java
--- a/src/nu/validator/gnu/xml/aelfred2/SAXDriver.java Thu Dec 23 16:14:07 2010 +0900
+++ b/src/nu/validator/gnu/xml/aelfred2/SAXDriver.java Tue Oct 18 16:44:42 2011 +0900
@@ -820,6 +820,8 @@
}
private void declarePrefix(String prefix, String uri) throws SAXException {
+ // NOTE: uri may be the empty string
+
int index = uri.indexOf(':');
@sideshowbarker
sideshowbarker / gist:1549710
Created January 2, 2012 07:28
anolis error "argument to reversed() must be a sequence"
anolis --dump-xrefs=data/xrefs/dom/url.json Overview.src.html /tmp/spec
Traceback (most recent call last):
File "/usr/local/bin/anolis", line 279, in <module>
main()
File "/usr/local/bin/anolis", line 62, in main
tree = generator.fromFile(input, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/anolis-1.1dev-py2.6.egg/anolislib/generator.py", line 87, in fromFile
process(tree, processes, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/anolis-1.1dev-py2.6.egg/anolislib/generator.py", line 43, in process
getattr(process_module, process)(tree, **kwargs)