Friday, October 30, 2009

moving to wordpress

Moving to new location on wordpress
. They seems to provide much better functionality for editing and statistics

Sunday, October 4, 2009

convert jscript to html

Very simple yet good jscript to html code formatting tool

disable venkman output to console

Venkman produces a lot of output to console which makes it hard to see the output from your extensions. To disable output from venkman, you can update venkman_utils.js in venkman.jar by replacing dd function with an empty function dd = function (){};

debug output from firefox extension

Start firefox with -console flag

Call dumpln function from your code (copy of code from venkman)

var dumpln;

if (typeof document == "undefined") /* in xpcshell */
dumpln = print;
if (typeof dump == "function") {
dumpln = function (str) {dump (str + "\n");}
} else if (jsenv.HAS_RHINO) {
dumpln = function (str) {
var out = java.lang.System.out;
out.println(str); out.flush();
else {
dumpln = function () {} /* no suitable function */