Play Framework - Scala Map Binder

Long time, but here is something new. I refer to SCALA here, idea is also suitable to JAVA.

Everybody uses Maps in JSON like:

So in PLAY you like to use functions like this:

In Scala though, there is no string binder for this. I wrote one somehow. U can pass Maps, or Maps mapping keys  to Arrays.

Feel free to use. Also published on GIST here.

Remember, remeber

First lesson: stop referring to Linux as a reference platform for what FreeBSD should look/work like. It doesn't. It won't.

FreeBSD Update/Upgrade with CUSTOM Kernel


long time ago, but here's a little snitch:
Attention! If you like to update your FreeBSD Servers or neither upgrade to newer distro you have to check eim things:

1. Simple Admin knowing things (logoff users, make sure no important task is going, shutting down/suspending vms/container)
2. Check if you have an CUSTOM build kernel....
If you have, make sure in

Under components there is "src" included

3. do your

as described here

4. do

5. if you have an custom kernel build/install it as usual

as descriped here

Have a nice new week

How to connect to a network printer by picking driver from list (Windows 7)

After i lost hours by looking for a solution to install an older HP Printer without plugging in the printer itself on parallel Port, know i found an global solution which works for every printer.

In Windows 7 you are able to choose the printer from explorer or over system preferences -> "add printer".

If you try to connect to a network printer he will ask to get the driver automatically. When this fails you will be able to load a driver from a file.

I had the Problem i installed the driver and never got an .inf file from HP.  Win 7 does not allow you to pick the driver manual from list. Only for local printers!

These few steps allow you to install an Network Printer by picking th driver from installed driver list:

1. "add printer"
2. local printer -> choose existing port -> "print to file"
3. pick the right driver from the list
4. A printer is installed correctly
5. Right-Click the installed printer -> settings/preferences -> Ports
6. "new port" -> "\\NETWORKDEVICE\PRINTER" -> "OK"

Now print test page and have fun!

Intel integrated Raid Module - RMS25KB080 Cross Flash LSI Firmware

This week, i got a Raid Module i mentioned above. First of all i have to say this Controller only powers on in first Slot of E5 Xeon Series Intel Server Mainboards.

Some search results show up this:

I found out the RMS25KB080 has an LSI SAS 2308 Chip on, but is equvialent to the EOL LSI SAS 9205-8e card.

First of all download the latest Intel Firmware and update it. Should be really simple. In my case it was P17 Version.

Now download UEFI sas2flash and the Firmware Package P17 (9205-8e_Package_P17_IT_Firmware_BIOS_for_MSDOS_Windows ) here:

Copy the sas2flash.efi, 9205-8e.bin and mptsas2.rom to USB key.
Now plug in Intel Module to the first PCIe Slot and power up your Server.

Note the SAS ID (16 digit hex): 500xxxxxxxxxxxxx
Press F6 and Choose EFI Shell. Normally type in "fs0:" for USB key.

Flush the Controller:
sas2flash.efi -o -e 6

Update Firmware:
sas2flash.efi -o -f 9205-8e.bin -b mptsas2.rom

put in SAS ID:
sas2flash.efi -o -sasadd 500xxxxxxxxxxxxx

Now you have an fully compatible LSI Controller. Now you are free to update to newer Versions of 9205-8e.

I hope this helped some of you!

Nice Weekend, greetz F7O



PC System - no screen, no beep, everything seems ok


i really would like to share my experience:

First Issue could be that your RAM is not in the right slot. So check the manual and put DIMMs right in place.

Though i did it, but nothing happens.
Here is my solution.

Every time you order new systems, inform your distributor which CPU you want to use. Your Distri has to ship an actuall updated Mainboard.

On newer Intel Mainboard e.g. you are not able to update with newer Revision CPUs.

If your BIOS is too old, the same issues appear: no screen/video, no beep, but every status led seems ok!

I hope i will save somebodys time. Especially on time critical server systems it's better you have directly the right board.

Have Fun



FreeBSD >=9.2 - Encrypted ZFS Setup

Nice Weekend everybody,

First of all my first ideas:
FreeBSD with ZFS encryption. This would be the best solution. Encryption will be fast as well as throughput on raid 5/6. And finally you don't need mutiple keys and stacked systems. Key can be stored on USB for example.

The Problem is:
ZFS in FreeBSD is on Version 28. Native Encryption in available since v30. Oracle does not offer us the source of newer Version.

So i my eyes the best solution on full ZFS Encryption is

  1. gpart every disk with GPT
  2. glabel every disk
  3. encrypt every disk on a single key with GELI
  4. create zfs pool on all disk

First of all activate zfs in '/etc/rc.conf'

Create an USB Storage Filesystem (in my case it was /dev/da9)

Generate as much keys as much disks you have

Put labels on each

Initiate GELI encryption in every single disk, there you have to take the labels!

Now we have eight disks for our zfs, you can create it in usual way (zfs1.eli, etc.)

Before Shutdown you have to export zfs and detach geli devices

Now the System is ready to fill with pools/data. But you have to manualy attach/detach im/export. In my next entry i'll describe how to do it on bootup.

Nice Week!

How to get from automate to Verilog description language

Now after we start to use Verilog syntax you surley want to implement your first simple IC.

To go further you should know something about theoretical informatics topics like DNA, DFA, formal languages and complexity i think.

First step is to create an automate to descripe want we like to do in the end. There are two possible variations:

1. Moore-Automate
An Moore automate's output is always attached to the actual state we are in as you can see here:


2. Mealy-Automate
Here we have another logic. Output values/wires are changing on different input. For example when we are is state 'q0' and get a '0' as input. On the wire out we get '0010':


Now you should be able to hack it into Verilog. These contructs are used to build the control unit bzw. the operation unit of CPUs.

An important question here is, in which case you need an switching unit instead of an automate for these parts of CPU.

Here are my Code Snippets.

Moore implementation

Mealy implementation


In the next step we should have a look on the simulation. Both implementations are grown on the same idea. On ordering both we will get kind of different ICs.

Next time you'll see an signal table...
Or just copy&paste it to Xilinx ISE.

Greetz f7o


Verilog - First Steps - Implement a simple counter

In order to pass exam in Computer Microsystems i'd like to refresh my knowlege in Verilog.

I use Xilinx ISE to syntesize and simulate my hardware implementation.

First i setup an simple counter using an clock signal. Then i added an synchronous and assynchronous reset signal.

In Verilog you are able to use different abstraction layers.

  1. Transistor abstraction layer
    -> here you can really implement cmos (n/p-mos) transistors from scratch. But for my work its too low level
  2. logical operators
    -> these are really used often, so you are able to easily connect wires or merge/compare bit streams etc.
  3. high level language operators
    -> also we have really c like syntax in many cases. For example if/else and case constructs

My simple counter as an "hello world" module

Now heres my Testbench for it

If you syntesize this in Flip-Flop layer heres the output


Now take our testbench to get some signals out of our counter register


I'll go on further ...
See U  F7O

Database Scheme Representation

Several languages exists to descripe and represent database scheme.

Scheme Representation
Data Definition Language (DDL)

Data Manipulation
Data Manipulation Language (DML)

Security, Access Control
Data Control Language (DCL)

Ad-hoc Queries
optimized query-language (QL)

The well know query language SQL combines every of these aspects.

You can find DMLs embedded in programming languages like C, Java etc. but also very specialized in raw format.
We differ declarative and navigative DML. SQL for instance is declarative, because we just call what we need and get!

Further in my next Entry i'll explain how to create the data modell and how to get to a finished relation database in the end.

Greetz F7o