CMDBuild supports the usage of SQL queries inside the “filter” options if the type is a REFERENCE.
How to solve this by using a subselect:
from ApplicationRelease where Id (/( SELECT "Id" FROM "ApplicationRelease" WHERE "Application" IN (SELECT "Id" FROM "Application" WHERE "Type" = (SELECT "Id" FROM "LookUp" WHERE "Code"='DBMS') ) )/)
Please note, that every referenced column must be quoted with double quotes. Every value of WHERE clause must be quoted using single quotes only!
The (/(…)/) construct introduces plain SQL.
CMDBuild is a free (“free” as in GPL v2) ITIL solution. The installation of the 2.3.1 version has been a pain in the ass. After applying the database information in the setup wizard, I always received an org.cmdbuild.exception.ORMException: ORM_GENERIC_ERROR. CMDBuild stores its log files (cmdbuild.log, cmdbuild_dd_sql.log) in the “logs” folder of Tomcat where I could find the root cause for this issue. Our PostgreSQL instance is installed on a Windows machine and holds two database templates. template0 has UTF-8 default encoding, template1 uses WIN-1252. During the installation of the database schema of CMDBuild, the template1 is used. The WIN-1252 encoding of template1 is not compatible with the used UTF-8 encoding of CMDBuild/Java. I fixed this issue by re-creating the template1 schema with UTF-8:
DROP DATABASE template1;
CREATE DATABASE template1 WITH template = template0 ENCODING = 'UTF8';
UPDATE pg_database SET datistemplate = TRUE WHERE datname = 'template1';
The next time I hit the install button of the wizard, I received another ORM_GENERIC_ERROR. This time the log stated that the plpgsql language was missing for template1. I altered the template1 by issuing a “CREATE LANGUAGE plpgsql”. After that I was able to install CMDBuild.
Today I struggled with a working configuration for an autounattend.xml for 9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_DE-DE-IR3_SSS_X64FREE_DE-DE_DV9.ISO (Windows Server 2012 R2, Standard, Standard Core, Datacenter and Datacenter Core). The unattended installation inside VirtualBox always failed with an error 0x80042565 or did not use the partition scheme I had previously provided.
I suppose that the problem occured in the first place because of the disabled UEFI of my VM. The usage of the following DiskConfiguration section installs Win2K12 R2 correctly:
A few weeks ago I bought a new notebook (Dell XPS 15, 15″, 512 GByte SSD, Core i7) for my after-work work and home usage. First of all: it is an awesome fast piece of hardware. Fedora 21 boots up in 3 seconds, Eclipse (STS) starts up in around 7 seconds. But it has some disadvantages regarding the hardware:
Especially the problem with the non-releasable buttons drove me crazy at first because it seemed to occur randomly. After some days working with the notebook I accepted this failure. All in all it seems to be a very nice notebook for a developer like me, but…
… The HiDPI support for Linux software just sucks. Linus Torvald statement made his statement at the end of 2012 but the current state is still bad:
For a list of workarounds, the ArchWiki is the first place to look for.
Due to some internal network problems I fired up Wireshark and saw a lot of gratuitous ARP requests/broadcasts. I had never seen the sending MAC or IP before but could assign it to one the ports our switching hardware. The designated port was used for a Citrix XenServer virtualization environment, so at first I suspected a miconfiguration of one of the bonds and some looping ARP packets. This assumption was wrong: I shutted down the server and the ARP requests still came from the physical network interface, so it could only be a problem/configuration of the interface itself.
I googled for “intel gratuitious ARP” and found the answer: the Intel NIC had an IPMI module and was sending announcements but the GUI was disabled.
Fixing the problem was easy. I ssh’ed into to the Citrix XenServer and used the ipmitool to disable the ARP sending mechanism:
modprobe ipmi_devintf; modprobe ipmi_si ipmitool -d /dev/ipmi0 lan set 1 arp generate off
Last Saturday our second Hackcamp Wolfsburg in 2014 took place. In the run-up to the Hackcamp I had suggested to use the NeosIT office as the event location. @stevenschwenke agreed to that and so I prepared our office on Friday evening. Before the event I expected a team programming session but in the end I explained (too?) much about the Spring Framework and showed samples, use cases and technical approaches to solve different problems with the framework.
Nevertheless it was an enjoyable circle consisting of Steven, Karsten, Sven, Nikolai, Daniel, Kevin, Tobse and me. Besides the usual software development topics we talked about TV series and net political issues. For lunch time we had ordered pizza and Steven bought a lot of juice and fruit. And certainly we had a lot of Club Mate available.
I am really looking forward to the next Hackcamp in 2015 – thank you for the participation and patience 😉
Four month ago I decided to start Freeletics for gaining more power in preperation for bouldering and to gain back my sixpack I lost with 16. The first three weeks I had ongoing sore muscles: I did sports every day, switching between running, biking and Freeletics. Thankfully to my self-motivation and the fine weather I never thought about giving up.
After three weeks I tried to motivate some of my friends to join but my attempts were not successful and so I did almost every training on my own. Due to my flexible work time I scheduled most of the training sessions in the morning.
The first time I *really* sweared about Freeletics was during my first Kentauros session in mid September. We had almost still 30°C and I did the workout in the burning sun. I never sweated as much as I did until this workout.
A week later my first hell week started. Three workouts a day sounds like much but the two days pause between the hell days allowed me to regain my power.
After the hell week I changed my location from the parking area of VW Bad and Schillerteich to the parking area right in front of the new Vfl stadium. This place is lighted in the morning and there is enough space for doing sprint sessions. Another location I moved to was our office where I did most of the Hades and MAX sessions excluding Pull-Ups. That said I must admit that Pull-Ups are my nemesis.
One week before my final hell week started, my wife and I had flied to Teneriffa for a one week vacation. I had planned to prepare my hell week during the vacation and took my sport clothes with me. Unfortunately I got a bad cold after three days and so I had to pause the training for more than a week. Considered afterwards during the forced pause my body regained the power I lost in the weeks before and in most of the hellweek workouts I got PBs.
And then the hell week began. 12 workouts on 7 days. During the vacation my sleep pattern had dramatically changed and so I started the first hell week day on 3:30 am in the morning. During the rest of the week I had sleep deprivation. During the night I woke up and thought about the next workout. It was a crazy week with few sleep, only thinking about workouts, light lasting sore muscles and always being hungry. On monday morning at 8 am I started the last three workouts at the Schillerteich. It was gusty, around 3°C cold and I had to defeat Kronos in the first place. The Push-Ups, Situps, Squats and Leg Levers were easy, but …100 Pull-Ups? Half of the time of Kronos I spent doing the Pull-Ups. But it even got worse. After Kronos I had to do two Poseidons. In total 100 Push-Ups and another set of 100 Pull-Ups. My body was full of endorphins during the last 10 Pull-Ups and I finished my first 17 weeks Freeletics with a big smile.
In my opinion it was worth the effort. I don’t have any before/after images but I can assure that my body has visibly changed. All in all it was a crazy experience. I plan to do the MAX workouts during the winter and start again with Freeletics as soon as it is cozy and sunny.
In the first days at work after my vacation I got in touch with some new tools and ideas which I want to share
We were searching for an internal chat solution for my former and current employee since years. Most of the self hosted chat solutions don’t have clients for the smartphone or don’t provide features like syntax highlighting of pasted code. Slack is a hosted chat, the provided free plan suffices our needs.
You might ask why the hell we need an internal chat, so let me explain it:
Additional to that we connected our JIRA instance to Slack so we receive issue changes from JIRA inside our project room inside the Slack chat.
In mid august a new coworker started in a position for sales and marketing. At this time we did not have decided which tool we want to use for supporting the sales and marketing processes. Our coworker responsible for JIRA administration built a new JIRA project which has different issue types for sales and marketing and maps the real process behind it to a JIRA workflow. The current status is visible on a JIRA Agile Kanban board. A really nice solution.
A few months ago I found Lightadmin which dynamically generates administration web interfaces for Spring Data JPA entities without the need of writing any line of HTML. The project is really awesome: you get a CRUD administration interface for your Spring Data JPA entities with minimal effort.
The problem is that you can not easily customize the interface for the customer because this is not the target of the project. Because of this reason I decided to start a new project which adapts the techniques Lightadmin uses. But instead of generating the interface dynamically at runtime, the interface and backend code will be statically generated by Xtext. After the code generation the artifacts can be customized by our developers.
I am working on the project only for a few days and I am impressed what Spring Data JPA and it’s subprojects offer. I implemented a paginated list view with jQuery Datatables and a search for entities with Predicates / Specifications in five or six hours. Writing all the SQL/JQL code by hand would have kill me.
I am a really bad designer. From a technical point of view I know CSS, HTML and their friends really well – but putting it together for getting a nice looking and intuitive interface is a race I will never ever win. I was glad when Twitter Bootstrap reached the light.
Whatever: Justinmind is a really nice tool for prototying interfaces. You can choose between different GUI components, bind them to events and fill it with test data. We are still in the phase of evaluating it, but this seems one of the best tools for easy prototyping. For a design-douche like me the tool is a revelation.
Instead of the usual tech stuff I am writing I want to summarize my vacation. Jenny and I started our vacation on the same day. Our first week was consisted of finishing stuff we had lying around in the last months. I did a lot of running, have been bouldering two times in Braunschweig and canoed with one of my workmates.
In the second week we prepared our wedding ceremony. We had a lot of stress on thursday and friday because our supplier of dry ice had not received our order but we got an order confirmation. The dry ice was needed for the ice cream cake. In the end we got it managed and had an awesome ceremony in the Planetarium Wolfsburg. Our friend Sophie was a fantastic wedding speaker. After the ceremony we went to the Awilon: the food was excellent, our inaugural dance was really funny and we partied hard ’til sunday morning. The hangover on sunday was bad, but it was worth them. I was glad that a friend and other relatives of mine I havent seen for a few years joined our wedding day.
On monday in the third week we met again with my friend and his fiancee for dinner It was funny and we are looking forward to their wedding in the next year. A day later I started with sports again and began a new side project, too. The side project is written in old-school PHP and manages sport workouts. On friday I began the first Freeletics workout together with Julian. I was really relieved that my running and climbing sessions of the last months prepared me good enough and so the muscle hangover the next days kept within a limit.
In my last week I did only Freeletics with Tino and Thomas – Julian was unable to continue – and further work on my workout tool. The weather was – like the three weeks before – excellent. Most of the days it has been sunny which motivated me for sports or just relaxing outside.
Wrapping it up:
Yesterday the first Hackcamp Wolfsburg took place at the Schiller 40. Steven Schwenke did a great job to organize and prepare the event. Despite the fact that only 5 persons, including myself, attended the event it has been a great success. Beneath my coworkers Kevin and Niko from NeosIT and Steven from MSG, Carsten from Eves IT was involved.
Steven started with his JavaFX workshop which gave us a good introduction what can be done with JavaFX. I was working with JavaFX the first time and realized that the framework is cool but there are some drawbacks: Inconsistent APIs, no easy option to import own components in Scene Builder, a missing marketplace for FX components, no reflection of bean properties inside the scene builder and so on. Nevertheless, it gave me a really good start. During lunch time we ordered pizza @Joeys and watched some very funny videos of Joko and Klaas. Being pigged out I started my Xtext talk with a small presentation I hacked together during lunch. It was not the first time I hold a presentation about this topic and the reactions are almost every time the same if the listeners are developers without experience in code generation or modelling: “WTF is he talking about?”. Sooner or later I must prepare an easy introduction presentation, but it is not so easy at all to give a methodical valuable start.
After the presentation with lot of Meta in it we implemented a small project I prototyped together with a customer. As we went along with the coding, the attendees got the idea of code generation and modelling and realized the possibilites what can be done with Xtext. I *really* like this moment 😉 I pointed Steven towards XtendFX and we did talk a lot about possibile applications. I was really surprised that the session took longer than I expected. Thanks for listening and the very interesting discussion!
At the end Karsten showed us JBoss Forge. At a first glance it looked like Spring Roo. I have to take a further look the next days.
After eight hours of hacking and talking I was really wasted but in a good way. I am looking forward to the next Hackcamp and want to thank all participants for making it such a good event!