New syntax highlighter for jensjaeger.com

Posted by Jens on April 25, 2013

I just replaced the relative simple Highlight Source Pro with the much more advanced Crayon Syntax Highlighter.

Crayon has an awesome theme editor with a lot of predefined code styles:

crayon

And helper for the editor to insert code snippets:

crayon_editor

And some fancy ui controls in the code block:

Happy coding!

Quote: Ship

Posted by Jens on February 13, 2013

Real artists ship.

- Steve Jobs

Using java 1.6 on OSX 1

Posted by Jens on February 06, 2013

Since the Java support for OSX has moved from Apple to Oracle. The old Java version are no longer shown in the oracle control panel:

But there is a command line tool for selecting the java version:

You can check if you have a specific java version installed with this command:

If 1.6 isn’t installed on your machine you can get it from here.

To use Java 1.6 in command line context add this line to your ~/.bash_profile:

Twine shipped

Posted by Jens on January 23, 2013

After six weeks I finally got my Twine shipped from supermechanical. Yeah.

I didn’t got it working. The problem is I have multiple routers with the same SSID here. For some reason Twine doesn’t work with this wifi setup. It’s not a big deal. I plan to use the sensor somewhere else, but it sucks that i can’t play around with it now.

Java 7 vs. C++ Speed

Posted by Jens on January 11, 2013

I just found this interesting benchmark results:

http://benchmarksgame.alioth.debian.org/u64q/java.php

The benchmark compares the same algorithm implemented in different programming languages. Interesting on this result is that the Java 7 implementation of some algorithms, like mandelbrot, is as fast as the C++ implementation. In the worst case Java needs only the double amount of time.

Of course there is a price to pay. Java uses in some cases a lot more memory.

But in times where memory is available almost for nothing, there is not much space left for business software* in C++. The faster development speed that comes from garbage collection and higher level apis will easily pay for some more memory.

This is no new knowledge. Allmost all new started business software projects, I hear about, are java or sap based. I was just surprised how fast java is in the benchmark.

* business software: In this case I mean “business software” as a software running on a server, multiple users, performing some business functions in any case, often a custom development for company needs. (With this definition e.g. Microsoft Office is not business software. Something like Jira would be a buisness software with my definition.)