Skip to content

Instantly share code, notes, and snippets.

View sideshowbarker's full-sized avatar
👺
最初バカー

sideshowbarker

👺
最初バカー
View GitHub Profile
@sideshowbarker
sideshowbarker / gist:1999657
Created March 8, 2012 08:27
shell script for invoking command-line class for validator.nu
#!/bin/sh
CLASSPATH=dependencies/commons-codec-1.4/commons-codec-1.4.jar\
:dependencies/commons-httpclient-3.1/commons-httpclient-3.1.jar\
:dependencies/commons-logging-1.1.1/commons-logging-1.1.1.jar\
:dependencies/commons-logging-1.1.1/commons-logging-adapters-1.1.1.jar\
:dependencies/commons-logging-1.1.1/commons-logging-api-1.1.1.jar\
:dependencies/icu4j-charsets-4_4_2.jar:dependencies/icu4j-4_4_2.jar\
:dependencies/jetty-6.1.26/lib/servlet-api-2.5-20081211.jar\
:dependencies/apache-log4j-1.2.15/log4j-1.2.15.jar\
:dependencies/xerces-2_9_1/xercesImpl.jar\
@sideshowbarker
sideshowbarker / gist:1999640
Created March 8, 2012 08:23
patch for using validator.nu from the command-line
diff -r 6315b45b4827 log4j.properties
--- a/log4j.properties Wed Feb 08 01:27:21 2012 +0900
+++ b/log4j.properties Thu Mar 08 17:25:26 2012 +0900
@@ -1,4 +1,4 @@
-log4j.rootLogger=DEBUG, A1
+log4j.rootLogger=WARN, A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
diff -r 6315b45b4827 presets.txt
@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)
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(':');
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
@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:
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"),
LOG: index.html $(SPLITTER)
$(PYTHON) $(SPLITTER) $(SPLITTERFLAGS) $< . > LOG
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) $< .
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