Skip to main content

Evan Summers

Evan Summers lives in Cape Town and plays Java, PostgreSQL and Linux. Most interested in crypto, systems monitoring and BI right now. Past interests include Swing, and future interests include mobi web.


evanx's blog

Java SSL Sockets

Posted by evanx on May 28, 2007 at 10:45 PM PDT

Let's build a trivial client/server demo using SSLServerSocket and SSLSocket as provided by the Java Secure Socket Extension (JSSE).

Java Highlighter

Posted by evanx on May 8, 2007 at 2:10 AM PDT

In the Hyper Text Processor prequel, we processed half-baked HTML for this "Foundation Beans" series of articles.

Now let's meet the QHyperJavaProcessor, which highlights Java code in HTML pre blocks.

Splash Screen

Posted by evanx on April 25, 2007 at 1:44 AM PDT

If it's gonna take a while to start up our Swing app, then we probably wanna display a splash screen.

It's easy with Java6 - just add a -splash command-line option.


Posted by evanx on April 19, 2007 at 4:17 AM PDT

Earlier we considered using straight Base-64 for hiding sensitive data from prying eyes.

Let's take it a step further and actually encrypt the data using a known password.

Embedded Text via XML Annotations

Posted by evanx on April 16, 2007 at 5:08 AM PDT

We hear talk of introducing "native XML" into Java7. I'm not sure what form that might take?

Embedding HTML and SQL (and JavaScript et al) "text" into Java is cumbersome eg. using multi-line concatenated string literals. And this doesn't lend itself towards leveraging IDEs eg. for auto-completion, error-detection and syntax-highlighting.

Screen Capture

Posted by evanx on March 28, 2007 at 6:52 AM PDT

For documentation purposes (and perhaps remote support), we need snapshot images of our application. So let's build such support directly into our application itself.

Interview with Mono's Miguel de Icaza

Posted by evanx on March 26, 2007 at 4:47 AM PDT

i was just reading an interview with Miguel de Icaza, creator of Mono.

Google vs the OpenSource Desktop

Posted by evanx on March 24, 2007 at 3:47 AM PDT

i was just reading a blog "Google Hasn't Improved Search" where the author says,

Hyper Text Processor

Posted by evanx on March 22, 2007 at 9:19 AM PDT

In the HTML Builder prequel, we generated a HTML artifacts for QHyperTextProcessorProperties.

So let's meet this QHyperTextProcessor itself, even if it's messy and not generally useful, but just a hack to serve the random purposes of this author, for this so-called Foundation trilogy.

All your base-64 do not belong to prying eyes

Posted by evanx on March 12, 2007 at 11:06 AM PDT

I was just reading a nice tip by Peter Bromberg, in his blog entry Simple XOR Encryption.

In Password Hash we used the following delegating class for base-64 encoding.