Skip to content

Instantly share code, notes, and snippets.

@alexkasko
alexkasko / gfx_tosvg_ie8.html
Created November 26, 2014 10:42
Dojo gfx toSVG pie chart in IE8 example
<!DOCTYPE html>
<html>
<head>
<title>toSVG problem in IE8</title>
<script src="dojo-latest/dojo/dojo.js" data-dojo-config="isDebug: 1, async: 1, parseOnLoad: 0"></script>
<script>
require([
"dojox/charting/Chart",
"dojox/charting/plot2d/Pie",
"dojox/gfx/utils",
@alexkasko
alexkasko / gitfetch.bash
Created November 3, 2014 22:01
git fetch all oneliner
git branch -a | grep -v HEAD | perl -ne 'chomp($_); s|^\*?\s*||; if (m|(.+)/(.+)| && not $d{$2}) {print qq(git branch --track $2 $1/$2\n)} else {$d{$_}=1}' | bash -xfs
@alexkasko
alexkasko / jython_django_runserver.stacktrace
Last active August 29, 2015 14:06
jython django runserver stacktrace
Sep 06, 2014 11:21:26 PM org.python.netty.channel.AbstractChannel$AbstractUnsafe register
WARNING: Force-closing a channel whose registration task was not accepted by an event loop: [id: 0x8a8b26a9, /127.0.0.1:40286 => /127.0.0.1:8000]
java.util.concurrent.RejectedExecutionException: event executor terminated
at org.python.netty.util.concurrent.SingleThreadEventExecutor.reject(SingleThreadEventExecutor.java:735)
at org.python.netty.util.concurrent.SingleThreadEventExecutor.addTask(SingleThreadEventExecutor.java:312)
at org.python.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:718)
at org.python.netty.channel.AbstractChannel$AbstractUnsafe.register(AbstractChannel.java:416)
at org.python.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:60)
at org.python.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:48)
at org.python.netty.channel.MultithreadEventLoopGroup.register(Mul
--- base.py 2014-09-06 22:50:21.391493603 +0100
+++ base_getcallargs_patched.py 2014-09-06 22:49:47.043494548 +0100
@@ -1,9 +1,10 @@
from __future__ import unicode_literals
import re
+import sys
from functools import partial
from importlib import import_module
-from inspect import getargspec, getcallargs

Correspondence between Sun/Oracle JDK, OpenJDK and HotSpot VM versions

build date Sun/Oracle JDK Version OpenJDK Version HotSpot VM Version
2006-11-29 1.6.0-b105 1.6.0-b105
2007-03-14 1.6.0_01-b06 1.6.0_01-b06
2007-06-22 1.6.0_02-b05 1.6.0_02-b05
2007-09-24 1.6.0_03-b05 1.6.0_03-b05
2007-12-14 1.6.0_04-b12 10.0-b19
@alexkasko
alexkasko / krakatau-jython.diff
Created October 1, 2013 16:40
Changes added to krakatau sources to run them on jython
diff --git a/Krakatau/assembler/assembler.py b/Krakatau/assembler/assembler.py
index a6eec35..a875268 100644
--- a/Krakatau/assembler/assembler.py
+++ b/Krakatau/assembler/assembler.py
@@ -66,7 +66,7 @@ class PoolInfo(object):
self.pool.copyItem(used, index)
_format_ops = collections.defaultdict(tuple)
-_format_ops[''] = instructions.instrs_noarg
+_format_ops['>'] = instructions.instrs_noarg
@alexkasko
alexkasko / make_patch.diff
Created June 18, 2013 13:00
Diff for "openjdk" directory files different between icedtea 1.12.5 "make patch" and "make and abort build"
diff --git a/hotspot/test/serviceability/SDTProbesGNULinuxTest.sh b/hotspot/test/serviceability/SDTProbesGNULinuxTest.sh
new file mode 100644
index 0000000..1fd79d6
--- /dev/null
+++ b/hotspot/test/serviceability/SDTProbesGNULinuxTest.sh
@@ -0,0 +1,68 @@
+#
+# Copyright (c) 2012, Red Hat, Inc.
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
@alexkasko
alexkasko / diff.list
Created June 18, 2013 12:58
List of "openjdk" directory files different between icedtea 1.12.5 "make patch" and "make and abort build"
.../test/serviceability/SDTProbesGNULinuxTest.sh | 68 +
.../sun/image/codec/jpeg/ImageFormatException.java | 51 +
.../com/sun/image/codec/jpeg/JPEGCodec.java | 193 +++
.../com/sun/image/codec/jpeg/JPEGDecodeParam.java | 390 +++++
.../com/sun/image/codec/jpeg/JPEGEncodeParam.java | 307 ++++
.../com/sun/image/codec/jpeg/JPEGHuffmanTable.java | 129 ++
.../com/sun/image/codec/jpeg/JPEGImageDecoder.java | 102 ++
.../com/sun/image/codec/jpeg/JPEGImageEncoder.java | 208 +++
.../com/sun/image/codec/jpeg/JPEGQTable.java | 118 ++
.../image/codec/jpeg/TruncatedFileException.java | 92 ++
@alexkasko
alexkasko / iced_tea_windows_i568_awt.log
Created June 13, 2013 12:22
error building iced tea 1.12.5 on windows i586
>>>Recursively making awt all @ Thu Jun 13 03:32:53 PDT 2013 ...
make[4]: Entering directory `/cygdrive/c/obf/openjdksrc/jdk/make/sun/awt'
rm -f C:/obf/OPENJD~2/build/WINDOW~1/gensrc/sun/awt/windows/awtLocalization.java
# Adding to compile properties list: ../../../src/windows/classes/sun/awt/windows/awtLocalization.properties -> C:/obf/OPENJD~2/build/WINDOW~1/gensrc/sun/awt/windows/awtLocalization.java
/usr/bin/echo -e "-compile ../../../src/windows/classes/sun/awt/windows/awtLocalization.properties C:/obf/OPENJD~2/build/WINDOW~1/gensrc/sun/awt/windows/awtLocalization.java ListResourceBundle" >> C:/obf/OPENJD~2/build/WINDOW~1/tmp/sun/sun.awt/awt/compile_prop_options
rm -f C:/obf/OPENJD~2/build/WINDOW~1/gensrc/sun/awt/windows/awtLocalization_de.java
# Adding to compile properties list: ../../../src/windows/classes/sun/awt/windows/awtLocalization_de.properties -> C:/obf/OPENJD~2/build/WINDOW~1/gensrc/sun/awt/windows/awtLocalization_de.java
/usr/bin/echo -e "-compile ../../../src/windows/classes/sun/awt/windows
diff --git a/jni/NativeFormats/fbreader/src/formats/txt/PlainTextFormat.cpp b/jni/NativeFormats/fbreader/src/formats/txt/PlainTextFormat.cpp
index a64e26a..cc4d1d4 100644
--- a/jni/NativeFormats/fbreader/src/formats/txt/PlainTextFormat.cpp
+++ b/jni/NativeFormats/fbreader/src/formats/txt/PlainTextFormat.cpp
@@ -160,14 +160,15 @@ void PlainTextFormatDetector::detect(ZLInputStream &stream, PlainTextFormat &for
}
{
- int breakType = 0;
- breakType |= PlainTextFormat::BREAK_PARAGRAPH_AT_EMPTY_LINE;