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:

And helper for the editor to insert code snippets:

And some fancy ui controls in the code block:
|
|
#!/usr/bin/ruby puts "Hello World!" |
Happy coding!
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:
|
|
$ /usr/libexec/java_home -h Usage: java_home [options...] Returns the path to a Java home directory from the current user's settings. Options: [-v/--version <version>] Filter Java versions in the "JVMVersion" form 1.X(+ or *). [-a/--arch <architecture>] Filter JVMs matching architecture (i386, x86_64, etc). [-d/--datamodel <datamodel>] Filter JVMs capable of -d32 or -d64 [-t/--task <task>] Use the JVM list for a specific task (Applets, WebStart, BundledApp, JNI, or CommandLine) [-F/--failfast] Fail when filters return no JVMs, do not continue with default. [ --exec <command> ...] Execute the $JAVA_HOME/bin/</command><command> with the remaining arguments. [-R/--request] Request installation of a Java Runtime if not installed. [-X/--xml] Print full JVM list and additional data as XML plist. [-V/--verbose] Print full JVM list with architectures. [-h/--help] This usage information. </command></task></datamodel></architecture></version> |
You can check if you have a specific java version installed with this command:
|
|
/usr/libexec/java_home -v 1.6* |
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:
|
|
export JAVA_HOME=`/usr/libexec/java_home -d64 -v 1.6*` |
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.

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.)