E-du-ca-ti-on

Khan Academy The Khan Academy is a not-for-profit organization with the mission of providing a high quality education to anyone, anywhere.

Read more

Mysteries of Nimbus

About defaults in Nimbus: Nimbus Defaults (originates from: Nimbus UIManager UIDefaults) Misc Textarea background issue Update: 10.7.2010 Skinning a Slider with Nimbus

Read more

Beware of Antipatterns

Instead of having ”this proper way”, anti patterns tend to be even more useful by pointing out issues which are problematic. Java Anti-Patterns

Read more

Converting String to UTF8?

Lets see what happens when trying to convert random string into UTF8 using different methods. [code lang=”java”] package org.kari.test.string; import java.io.IOException; import java.io.OutputStreamWriter; import java.nio.charset.Charset; import org.apache.log4j.Logger; import org.kari.log.LogUtil; import org.kari.util.DirectByteArrayOutputStream; /** * Test UTF8 conversion * * @author kari */ public class UTF8Test { public static final Logger LOG = LogUtil.getLogger(”utf8”); private static final…

Read more

Interactive javascript shell

Naive, but functional interactive javascript shell with Java 6. [code lang=”java”] package org.kari.test.script; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintStream; import javax.script.ScriptEngine; import javax.script.ScriptEngineManager; import javax.script.ScriptException; import org.apache.log4j.Logger; import org.kari.log.LogUtil; /** * Test interactive javascript shell * * @author kari */ public class ScriptShell { public static final Logger LOG = LogUtil.getLogger(”script.shell”); private final…

Read more