Showing posts with label the Java universe. Show all posts
Showing posts with label the Java universe. Show all posts

Tuesday, December 10, 2013

"Getting Started with Java SE Embedded on the Raspberry Pi" (by Bill Courington and Gary Collins)

http://www.oracle.com/technetwork/articles/java/raspberrypi-1704896.html by Bill Courington and Gary Collins

It includes a lot of useful Linux tweaks, that you may want to apply apart from installing Java SE anyway.

Resize the SD Card Partitions:
About half the card’s space is unallocated. The biggest chunk of free space follows the /dev/sdb3 partition. To add this space to /dev/sdb2 (the file system), we temporarily delete /dev/sdb3, extend /dev/sdb2, then re-create /dev/sdb3.
I started making use of the "Java SE" label with this article. Should apply it elsewhere as well.

It has a section "Optional Linux Tuning and Tweaking":

  • Set Up Static IP Address
  • Enable Swapping and Optimize File System Access Time
  • Set Time Zone and Locale
  • Set Up a Time Server
  • Set Up an Internet Proxy
  • Remap the Keyboard
  • Update Debian Packages
  • Automatically Start the Graphical User Interface
  • Add a Different Web Browser
  • Enable Sound
Do I really want to swap on the SD card? They discourage it there.

Saturday, November 16, 2013

installing Oracle "Java SE for Embedded" on a Synology NAS


I think, I will use his description for setting up Java on my Synology NAS (resp. NASs), so that I can run the Hibiscus Server (implemented in Java) on them. My NAS at home has plenty of Internet bandwith available, so that I can get my bank account transactions updated over the Internet quite often each day.

Oracle's description on "Oracle Java SE Embedded Downloads":

For the DS112+ I chose the "ARMv5 Linux" entry "successfully". The ARMv6/7 and ARMv7 entries did not run at all. 

For the DS213+ I chose the "Power Architecture Linux - … - e500v2" entry "successfully".

Friday, November 15, 2013

Hibiscus Payment Server – HBCI banking

With the hibiscus-server running on (let's say) your current machine at port 8080 (AKA https://localhost:8080), you have a few rather useful services available:

I would love to see this running on my Synology NAS at home with plenty of Internet bandwith available, so that I can get my bank account transactions updated over the Internet a few times each day.

These days Synology does not supply Java on their devices – I assume, they do not want to get officially bothered with Java difficulties on their devices. But still here I found a description of how to install Oracle Java SE on a Synology NAS:
Wth the "https://localhost:8080/webadmin/rest/hibiscus/konto/…" REST services listed above I get hold off account data rather, rather easily like this:
$ curl --sslv3 --insecure \
    --user jameica:PASSWORD \
    https://localhost:8080/webadmin/rest/hibiscus/konto/list
Now I prefer developing software using Perl, and I will make use of the JSON lists in Perl, and that should be rather easy. I think, I am going to abandon my web-scraping scripts in Perl, once all this is in place. Web-scraping banking web-sites is a rather tedious business, whereas HBCI is a confirmed banking standard in this country (Germany), and I consider the Hibiscus Server as a rather either way to deal with the HBCI Moloch AKA FinTS.

…:

Wednesday, January 12, 2011

.properties - Java's Property Resource Bundles

.properties - Wikipedia, the free encyclopedia

  • For Western Europeans it's quite comfortable to be able to edit .properties files in ISO-8859-1 aka Latin-1.
  • The 1st German .properties file, that I came across, was actually written using '\u00HH' for the German umlauts, with HH being the hexadecimal digits of the Latin-1 encoding of the character.
    I looked up the Wikipedia article on Unicode, and I learned that this is a perfectly legal encoding of the Latin-1 character set, i.e. the 1st 256 characters of Latin-1 and Unicode (resp. its "BMP") are the same.
  • ...

Saturday, December 11, 2010

book: Programming Groovy

The Pragmatic Bookshelf | Programming Groovy

From the wikipedia article on Groovy:
Most Java code is also syntactically valid Groovy. […]

In July 2009, Strachan wrote on his blog that "I can honestly say if someone had shown me the Programming in Scala book by Martin Odersky, Lex Spoon & Bill Venners back in 2003 I'd probably have never created Groovy."[1] Strachan left the project silently long before the Groovy 1.0 release in 2007.
Maybe I better focus on Scala than on Groovy.

Update 2011-07-01:
Purchased it as a used book through Amazon.de.

book: Programming Clojure

The Pragmatic Bookshelf | Programming Clojure

Lisp on the JVM – maybe a nice idea.

Update 2011-08-07
Found a Clojure User Group Berlin.
Order the book through Amazon as used book, but with Amazon Prime service.