<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[red6 - Medium]]></title>
        <description><![CDATA[red6 enterprise software GmbH - Medium]]></description>
        <link>https://medium.com/red6-es?source=rss----49e16dccd8d9---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>red6 - Medium</title>
            <link>https://medium.com/red6-es?source=rss----49e16dccd8d9---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 04:15:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/red6-es" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Time Tracking with Hackaru and Timeular]]></title>
            <link>https://medium.com/red6-es/time-tracking-with-hackaru-and-timeular-37df8e1fab81?source=rss----49e16dccd8d9---4</link>
            <guid isPermaLink="false">https://medium.com/p/37df8e1fab81</guid>
            <category><![CDATA[timeular]]></category>
            <category><![CDATA[time-management]]></category>
            <category><![CDATA[time-tracking]]></category>
            <category><![CDATA[hackaru]]></category>
            <dc:creator><![CDATA[Pascal Wittmann]]></dc:creator>
            <pubDate>Thu, 09 Jun 2022 07:46:19 GMT</pubDate>
            <atom:updated>2022-06-09T07:46:19.674Z</atom:updated>
            <content:encoded><![CDATA[<p>Keeping track of your time is hard. It is even harder to precisely report on what you have spend time. Working in the IT industry requires you to do precisely that. Report to your customer or manager what you have been working on the last weeks.</p><p>I always had trouble reminding myself to keep track of my time for various reasons. Mostly, because I emerge myself into a task and have a hard time perceive my surroundings. I almost always forgot to write down that I started with a new task.</p><p>I tried time tacking software like <a href="https://github.com/projecthamster/hamster">hamster</a> and even plain Microsoft Excel sheets. However, it didn’t klick, and I always spend some hours at the end of the month with an attempt to reconstruct what I did when and how long. In the past two years, Covid ensured that my calendar was full and made those attempts pretty precise. But I really don’t want to go through this process at least every month. I needed a change.</p><p>Half a year ago, I stumbled over <a href="https://hackaru.app/">Hackaru</a>. A simple time tracking software with all the functionality I need. Aside from synchronization with the software, I have to report with (<a href="https://www.projektron.de/">Projektron</a> and <a href="https://zistemo.com/">Zistemo</a>). Hackaru has a simple and powerful user interface, you can look at what you have done in a calendar view, and it generates reports. It has a cross-platform desktop client, its web-version is a progressive web app, it is open source and actively maintained.</p><p>For some weeks it made a difference, and I was more disciplined with my time tracking. I guess this was mostly because I had a shiny new thing that I could self-host and that fitted my needs better than the previous ones. However, it did not take long until I was reconstructing what I have done at the end of the month.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g0y94zGxoZ7NrBZE8nah8w.jpeg" /><figcaption>My Timeular cube infront of my notebook</figcaption></figure><p>Things started to change when a colleague mentioned that he has bought the Timeular cube. To cite its kickstarter campain it</p><pre>is a beautiful 8-sided device that makes time tracking instant and fun</pre><p>This cube really helps me to keep track of my time. The concept is simple: You have eight sides that can be labeled and associated to a task. If a side faces upwards, the time for the associated task is active and if it rests in its stand no task is active. The unique selling point is the physical presence of the device. It does not occupy precious space on your monitor, but you can still see it all the time. The act of physically turning the cube makes it — at least for me — easier to embed in my routine.</p><p>Of course, you need software to make use of the cube. Timeular offers a time tracking software that nicely integrates the cube, but can also be used without it. I really like Hackaru and the fact that it is open source and can be self-hosted. Therefore, I didn’t really consider switching to the software from Timeular, which also saves me 70€ subscription fee per year.</p><p>The Timeular cube is a BLE device with a very straight forward interface and made it incredible easy to write a small program that connects it with Hackaru. Using the bleak Python library, it is easy to register a callback-function to changes of the orientation characteristic. The only thing left to do is to map the values [1..9] from the characteristic to tasks in Hackaru and start / stop them accordingly. After 1½ hours, I had my first working prototype.</p><p>I use this combination Hackaru and the Timeular cube for over a month now, and I am really happy. I revised version of my script <a href="https://github.com/pSub/hackaru-timeular">hackaru-timeular</a> is available on PyPi and can be installed via</p><pre>pip install hackaru-timeular</pre><p>Information on how to configure hackaru-timeular is available in the <a href="https://github.com/pSub/hackaru-timeular/blob/main/README.md">README</a> on Github.</p><p>This is the first time I am really happy with my time tracking setup and I hope that I will never have to reconstruct what I have done at the end of the month.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37df8e1fab81" width="1" height="1" alt=""><hr><p><a href="https://medium.com/red6-es/time-tracking-with-hackaru-and-timeular-37df8e1fab81">Time Tracking with Hackaru and Timeular</a> was originally published in <a href="https://medium.com/red6-es">red6</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Systemd Service Failure Notification System]]></title>
            <link>https://medium.com/red6-es/systemd-service-failure-notification-system-92761903c557?source=rss----49e16dccd8d9---4</link>
            <guid isPermaLink="false">https://medium.com/p/92761903c557</guid>
            <category><![CDATA[nixops]]></category>
            <category><![CDATA[nixos]]></category>
            <category><![CDATA[systemd]]></category>
            <category><![CDATA[nix]]></category>
            <category><![CDATA[monitoring]]></category>
            <dc:creator><![CDATA[Pascal Wittmann]]></dc:creator>
            <pubDate>Thu, 09 Jun 2022 07:45:34 GMT</pubDate>
            <atom:updated>2024-04-02T08:12:16.188Z</atom:updated>
            <content:encoded><![CDATA[<p>I run a small root server with my website, a Nextcloud instance and some other stuff for my personal use. This server runs <a href="https://nixos.org/">NixOS</a> and I deploy new versions using <a href="https://github.com/NixOS/nixops">NixOps</a>, a NixOS deployment tool. This setup runs smoothly and is very easy and time efficient to maintain.</p><p>However, sometimes things do break and even the rollback features of NixOS do not help if you notice the error too late. As this is mostly me, who uses the services provided by the server, it is only me who is affected. I want to know as early as possible if something is broken. This allows me to plan the fix, instead of fixing it in a hurry when I need to use a service.</p><p>I looked into various monitoring tools. However, most of them are complex tools that are designed for complex systems. Not for a single server with a single regular user. Therefore, I decided to build my own monitoring tool by leveraging the powers of Nix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*rLA0jFc_r_jSRSQuiNL5Lg.png" /><figcaption>The beginning of a NixOps deployment for my server</figcaption></figure><p>The idea is simple. Everything that is worth to be monitored on my server runs as a systemd service. The only thing I need to do is to send a notification once a service fails, and I need to do this for every service.</p><p>I do this by creating a new systemd service called email@. This service does nothing but sending a notification with the information of the associated service. It also should not use itself in case of a failure, as this would probably diverge.</p><p>In case you are confused by the @ in the service name. The @ allows you to pass instance parameters into the systemd unit. Those instance parameters can be referred using %i. If you want to read more about it, take a look into the <a href="https://www.freedesktop.org/software/systemd/man/systemd.unit.html">systemd.unit</a> manpage.</p><p>In my configuration, this service is defined as</p><pre>config = {<br>    systemd.services.&quot;email@&quot; = {<br>      description = &quot;Sends a status mail via sendmail on service failures.&quot;;<br>      onFailure = mkForce [ ];<br>      serviceConfig = {<br>        ExecStart = &quot;${sendmail} ${config.systemd.email-notify.mailTo} %i&quot;;<br>        Type = &quot;oneshot&quot;;<br>      };<br>    };<br>  };</pre><p>where sendmail is defined as</p><pre>sendmail = pkgs.writeScript &quot;sendmail&quot;<br>    &#39;&#39;<br>      #!/bin/sh</pre><pre>      ${pkgs.system-sendmail}/bin/sendmail -t &lt;&lt;ERRMAIL<br>      To: $1<br>      From: ${config.systemd.email-notify.mailFrom}<br>      Subject: Status of service $2<br>      Content-Transfer-Encoding: 8bit<br>      Content-Type: text/plain; charset=UTF-8</pre><pre>      $(systemctl status --full &quot;$2&quot;)<br>      ERRMAIL<br>    &#39;&#39;;</pre><p>This should be pretty straight forward. This service is a oneshot service that just executes the sendmail script and makes sure nothing is done when it fails (mkForce).</p><p>Now we need the other part as well: Attaching the email@ sevice to every systemd service. At least, to every systemd service that is managed by NixOS.</p><p>This is done with the following code snipped</p><pre>{<br>  systemd.services = mkOption {<br>  type = with types; attrsOf (<br>      submodule {<br>        config.onFailure = [ &quot;email@%n.service&quot; ];<br>      }<br>    );<br>  };<br>};</pre><p>Here, we append email@%n.service to every service onFailure attribute.</p><p>In the mail I include details about the failure with systemctl status --full. Here is an actual email that was sent because the was no space left on disk and Postgres failed to start:</p><blockquote>× postgresql.service — PostgreSQL Server<br>Loaded: loaded (/etc/systemd/system/postgresql.service; enabled; vendor preset: enabled)<br>Active: failed (Result: exit-code) since Wed 2022–05–25 04:05:38 CEST; 32ms ago<br>Process: 851 ExecStartPre=/nix/store/fbfp2azvh40hmf2m9pip98lqg83212rv-unit-script-postgresql-pre-start/bin/postgresql-pre-start (code=exited, status=0/SUCCESS)<br>Process: 860 ExecStart=/nix/store/73arqqwyf0kypj2wh8milhhpgmg94xa7-postgresql-11.15/bin/postgres (code=exited, status=1/FAILURE)<br>Process: 923 ExecStartPost=/nix/store/p6d58lxhmnqhcbj5f4wgxw7llqm8lcyj-unit-script-postgresql-post-start/bin/postgresql-post-start (code=exited, status=0/SUCCESS)<br>Main PID: 860 (code=exited, status=1/FAILURE)<br>IP: 501.3M in, 958.2M out<br>CPU: 12min 37.419s</blockquote><blockquote>May 25 04:05:38 nixos postgres[921]: [921] LOG: could not close temporary statistics file “pg_stat/db_0.tmp”: No space left on device<br>May 25 04:05:38 nixos postgres[921]: [921] LOG: could not close temporary statistics file “pg_stat/global.tmp”: No space left on device<br>May 25 04:05:38 nixos postgres[860]: [860] LOG: all server processes terminated; reinitializing<br>May 25 04:05:38 nixos postgres[860]: [860] FATAL: could not access status of transaction 0<br>May 25 04:05:38 nixos postgres[860]: [860] DETAIL: Could not write to file “pg_notify/0000” at offset 0: No space left on device.<br>May 25 04:05:38 nixos postgres[860]: [860] LOG: database system is shut down<br>May 25 04:05:38 nixos systemd[1]: postgresql.service: Main process exited, code=exited, status=1/FAILURE<br>May 25 04:05:38 nixos systemd[1]: postgresql.service: Failed with result ‘exit-code’.<br>May 25 04:05:38 nixos systemd[1]: postgresql.service: Triggering OnFailure= dependencies.<br>May 25 04:05:38 nixos systemd[1]: postgresql.service: Consumed 12min 37.419s CPU time, received 501.3M IP traffic, sent 958.2M IP traffic.</blockquote><p>I use this setup for almost three years now, and I am really happy about it. There is potential for improvement (other channels than email, stop notification after many failures of a service in a row, …) but so far this is all I need, and it never let me down.</p><p>You can find the full source code of the notification system at <a href="https://github.com/pSub/configs/blob/master/nixos/server/modules/systemd-email-notify.nix">github</a>. If you are interested how my server configuration looks like, take a look at my <a href="https://github.com/pSub/configs/nixops">config repository</a>.</p><p>PS: In addition to this monitoring on systemd service level, I also use <a href="https://uptimerobot.com/">UptimeRobot</a> to make sure all public facing services are available via the internet.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92761903c557" width="1" height="1" alt=""><hr><p><a href="https://medium.com/red6-es/systemd-service-failure-notification-system-92761903c557">Systemd Service Failure Notification System</a> was originally published in <a href="https://medium.com/red6-es">red6</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JBoss Logfile-Codes]]></title>
            <link>https://medium.com/red6-es/jboss-logfile-codes-2339e71ed325?source=rss----49e16dccd8d9---4</link>
            <guid isPermaLink="false">https://medium.com/p/2339e71ed325</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[java-ee]]></category>
            <category><![CDATA[logging]]></category>
            <category><![CDATA[jboss]]></category>
            <dc:creator><![CDATA[Pascal Wittmann]]></dc:creator>
            <pubDate>Tue, 26 Nov 2019 14:37:14 GMT</pubDate>
            <atom:updated>2019-11-26T14:37:14.096Z</atom:updated>
            <content:encoded><![CDATA[<p>When you are working on applications running on the JBoss Application Server you will, sooner or later, encounter problems that require analyzing logfiles. JBoss uses Logfile-Codes (Is that the correct word?) that make it easy to search for specific log messages, independent of you Locale or your ability to type the error message correctly.</p><p>For example, if you want to know if the server has started with errors you can search for the code JBAS015875. If your server runs with an English Locale the full log message could look like</p><blockquote>ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss EAP 6.4.15.GA (AS 7.5.15.Final-redhat-3) started (with errors) in 3670ms — Started 200 of 300 services (10 services failed or missing dependencies, 120 services are lazy, passive or on-demand)</blockquote><p>Since I haven’t found a list of those Logfile-Codes I have compiled one myself and want to share it here. I hope someone will find this list useful.</p><p>• JBAS015874: Server has started successfully<br>• JBAS015875: Server has started with errors<br>• JBAS015899: Server begins to start<br>• JBAS015986: Host Controller shutdown has been requested via an OS signal<br>• JBAS015950: Server has stopped<br>• JBAS015962: Http management interface listening<br>• JBAS015954: Admin console is not enabled<br>• JBAS012119: Cancelled task by interrupting thread Thread<br>• JBAS015876: Starting deployment<br>• JBAS010403: Deploying JDBC-compliant driver<br>• JBAS017100: Listening on 127.0.0.1:19999<br>• JBAS010400: Bound data source<br>• JBAS016002: Processing weld deployment<br>• JBAS016012: Deployment contains CDI annotations but beans.xml was not found<br>• JBAS018210: Register web context<br>• JBAS016005: Starting Services for CDI deployment<br>• JBAS011402: Starting Persistence Unit Service<br>• JBAS010281: Started cache from app-cache container<br>• JBAS018224: Unregister web context<br>• JBAS010409: Unbound data source<br>• JBAS011403: Stopping Persistence Unit Service<br>• JBAS016009: Stopping weld service for deployment<br>• JBAS015877: Stopped deployment</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2339e71ed325" width="1" height="1" alt=""><hr><p><a href="https://medium.com/red6-es/jboss-logfile-codes-2339e71ed325">JBoss Logfile-Codes</a> was originally published in <a href="https://medium.com/red6-es">red6</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Uploading a file with a filename with Spring RestTemplate]]></title>
            <link>https://medium.com/red6-es/uploading-a-file-with-a-filename-with-spring-resttemplate-8ec5e7dc52ca?source=rss----49e16dccd8d9---4</link>
            <guid isPermaLink="false">https://medium.com/p/8ec5e7dc52ca</guid>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Malte Finsterwalder]]></dc:creator>
            <pubDate>Fri, 15 Feb 2019 12:49:34 GMT</pubDate>
            <atom:updated>2020-08-25T13:10:36.001Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sCczdJVXuaAXXbWbJoOrQw.png" /></figure><p>When you google, you will find several examples of, how to upload a file with Spring RestTemplate. A lot of them are wrong in a small but important detail. They don’t send the filename in the correct format.</p><p>File upload is sent via Multipart Form Data. This format allows to embed multiple independent information in the body of an HTTP Post Request.</p><p>A correct file upload request would look like this:</p><p>HTTP Header:</p><pre>Content-Type: multipart/form-data; boundary=ABCDEFGHIJKLMNOPQ</pre><p>HTTP Body:</p><pre>--ABCDEFGHIJKLMNOPQ<br>Content-Disposition: form-data; name=&quot;file&quot;; filename=&quot;my.txt&quot;<br>Content-Type: application/octet-stream<br>Content-Length: ...</pre><pre>&lt;...file data in base 64...&gt;<br>--ABCDEFGHIJKLMNOPQ--</pre><p>There can be multiple sections like this in the body with additional data, when more data needs to be posted to the server, like multiple files or other metadata. The Content-Type could also be adjusted. application-octet-stream is the default Spring uses for byte[] data.</p><p>To produce a request like this with Spring RestTemplate, you need to write the following code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/57c2fc4f6048819c33cf86fb75894974/href">https://medium.com/media/57c2fc4f6048819c33cf86fb75894974/href</a></iframe><p>Most solutions you find will not use the embedded HttpEntity, but will just add two entries to the MultiValueMap for the body like so:</p><pre>MultiValueMap&lt;String, Object&gt; body = new LinkedMultiValueMap&lt;&gt;();<br>body.add(&quot;filename&quot;, &quot;my.txt&quot;);<br>body.add(&quot;file&quot;, new ByteArrayResource(someByteArray));</pre><p>This produces a different request body, where the file and the filename are embedded in two different sections like this:</p><pre>--ABCDEFGHIJKLMNOPQ<br>Content-Disposition: form-data; name=&quot;filename&quot;<br>Content-Type: text/plain;charset=UTF-8<br>Content-Length: 6</pre><pre>my.txt<br>--ABCDEFGHIJKLMNOPQ<br>Content-Disposition: form-data; name=&quot;file&quot;<br>Content-Type: application/octet-stream<br>Content-Length: ...</pre><pre>&lt;...file data in base 64...&gt;<br>--ABCDEFGHIJKLMNOPQ--</pre><p>The receiving server will most likely not see the filename in a different section. Some servers will reject the request entirely.</p><p>So also work with the embedded HttpEntity, when uploading a file with Spring RestTemplate, to produce standard compliant multipart upload requests!</p><p>Should you get the following exception:</p><pre>org.springframework.web.client.RestClientException:<br>No HttpMessageConverter for org.springframework.util.LinkedMultiValueMap and content type “multipart/form-data”</pre><p>your are probably missing a proper message converter. You can add one to the RestTemplate with the following code snippet:</p><pre>MappingJackson2HttpMessageConverter converter =<br>        new MappingJackson2HttpMessageConverter();<br>converter.setSupportedMediaTypes(Arrays.asList(<br>        MediaType.APPLICATION_OCTET_STREAM));<br>restTemplate.getMessageConverters().add(converter);</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ec5e7dc52ca" width="1" height="1" alt=""><hr><p><a href="https://medium.com/red6-es/uploading-a-file-with-a-filename-with-spring-resttemplate-8ec5e7dc52ca">Uploading a file with a filename with Spring RestTemplate</a> was originally published in <a href="https://medium.com/red6-es">red6</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fehler in DMNs ausmerzen]]></title>
            <link>https://medium.com/red6-es/fehler-in-dmns-ausmerzen-e0d6b2faba36?source=rss----49e16dccd8d9---4</link>
            <guid isPermaLink="false">https://medium.com/p/e0d6b2faba36</guid>
            <category><![CDATA[camunda]]></category>
            <category><![CDATA[analysis]]></category>
            <category><![CDATA[static-analysis]]></category>
            <category><![CDATA[maven]]></category>
            <category><![CDATA[dmn]]></category>
            <dc:creator><![CDATA[Pascal Wittmann]]></dc:creator>
            <pubDate>Mon, 02 Jul 2018 16:35:49 GMT</pubDate>
            <atom:updated>2018-07-02T16:35:48.927Z</atom:updated>
            <content:encoded><![CDATA[<p>Wir bei der red6 bauen Software-Lösungen für Versicherungen. Dabei müssen häufig Geschäftsprozesse mit komplizierten Entscheidungsregeln implementiert werden. Da wir die Geschäftsprozesse mit BPMN (Business Process Model and Notation)<strong> </strong>beschreiben, war die Entscheidung DMN (Decision Model and Notation) für die Entscheidungsregeln zu verwenden naheliegend. Beide Standards ergänzen sich gut, auch in der von uns eingesetzen Implementierung von Camunda.</p><p>Die Modellierung von Entscheidungsregeln mit DMN, im Gegensatz zu Datenbanken oder Quelltext, hat den großen Vorteil, dass auch der jeweilige Fachbereich die Entscheidungsregeln mit wenig Einarbeitung bearbeiten kann. Dies war auch eines der Hauptargumente für den Einsatz von DMN, da man so das fehleranfällige Übertragen von Excel-Tabellen in Datenbanken bzw. Code vermeiden kann.</p><p>Leider bietet jedoch der DMN-Editor von Camunda noch sehr wenig Nutzerführung, sodass immer wieder Fehler passieren die leicht zu vermeiden gewesen wären. Daher haben wir angefangen, das Tool <a href="https://github.com/red6/dmn-check">dmn-check</a> zu entwicklen, welches DMN-Dateien analysiert und auf Fehler hinweist. Dieses Tool haben wir als Maven-Plugin implementiert, da es sich so gut in unsere Infrastruktur einfügt und verhindert das Build-Artefakte bei schwerwiegenden Fehlern erzeugt werden. Wir planen jedoch die Analysen auch in den DMN-Editor von Camunda zu integrieren.</p><p>Das Tool unterstützt aktuell die folgenden Analysen:</p><ul><li><strong>Doppelte / Widersprüchliche Regeln: </strong>Sind sowohl die Eingaben als auch die Ausgaben der Regeln identisch können die Duplikate bedenkenlos entfernt werden. Unterscheiden sich jedoch nur die Ausgaben widersprechen sich die Regeln. Dies ist in aller Regel ein Fehler.</li><li><strong>Verdeckte Regeln:</strong> Dadurch das man mit der Ausdruckssprache FEEL (Friendly Enough Expression Language) Wertebereiche für die Eingaben angeben kann, können Regeln (je nach Auswertungsstrategie) andere Regeln überdecken. Diese überdeckten Regeln können nie greifen.</li><li><strong>Typfehler:</strong> Durch die realtive Mächtigkeit von FEEL können schnell Ausdrücke entstehen die Typfehler enthalten. Wenn man etwa versucht eine Variable vom Typ String auf eine Zahl zu addieren.</li><li><strong>Enums: </strong>Wir nutzen in den Entscheidungsregeln häufig Werte aus Java enums. Diese Werte haben zwar sprechende Namen, jedoch können dort auch schnell Tippfehler entstehen, wodurch eine Regel nicht mehr greifen würde. Daher läd dmn-check das entsprechende enum vom Classpath (sofern der Klassenname im Typ der Eingabe angegeben ist) und prüft ob der Wert in der Eingabe zu dem enum gehört. Dies funktioniert jedoch nur, wenn die DMN-Implementierung beliebige Werte für den Typ der Eingaben erlaubt.</li><li><strong>Konsistenz:</strong> Das Tool führt außerdem noch weitere Prüfungen zur Konsistenz der DMN-Datei durch. So wird z.B. geprüft, dass Aggregationsfunktionen bei Ausgaben nur bei den entsprechenden Typen angewandt werden.</li></ul><p>Genauere Informationen zu den Analysen gibt es auf der <a href="https://github.com/red6/dmn-check">Github-Projektseite</a>. Wir haben das Tool dmn-check unter einer Apache-2.0 Lizenz veröffentlicht und es ist im <a href="http://search.maven.org/#search%7Cgav%7C1%7Cg:%22de.redsix%22%20AND%20a:%22dmn-check%22">Maven-Central-Repository</a> zu finden.</p><p>Uns hat das Tool schon gute Dienste geleistet, in dem es immer wieder Fehler aufgedeckt hat, bevor diese in den Test oder gar in die Produktion kommen konnten. Wir hoffen das Tool leistet auch anderen gute Dienste und freuen uns auf Feedback.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0d6b2faba36" width="1" height="1" alt=""><hr><p><a href="https://medium.com/red6-es/fehler-in-dmns-ausmerzen-e0d6b2faba36">Fehler in DMNs ausmerzen</a> was originally published in <a href="https://medium.com/red6-es">red6</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker for Angular]]></title>
            <link>https://medium.com/red6-es/docker-for-angular-340906be4a92?source=rss----49e16dccd8d9---4</link>
            <guid isPermaLink="false">https://medium.com/p/340906be4a92</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[docker-image]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Sebastian]]></dc:creator>
            <pubDate>Fri, 15 Dec 2017 14:48:03 GMT</pubDate>
            <atom:updated>2017-12-15T14:48:14.314Z</atom:updated>
            <content:encoded><![CDATA[<p>Sinze Docker 17.05 you can use <a href="https://docs.docker.com/engine/userguide/eng-image/multistage-build/">multi-stage builds</a>. Thats perfect, now you can build an small container for your Angular app with in one file.</p><p>Here I will show you my example dockerized Angular setup with multi-stage build, running on nginx.</p><h3>File Dockerfile</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/456ffdae92259b4e46e116089d674b49/href">https://medium.com/media/456ffdae92259b4e46e116089d674b49/href</a></iframe><h3>File nginx/default.conf</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/92a890a5a4ed006cb3ae04a5d4cb392f/href">https://medium.com/media/92a890a5a4ed006cb3ae04a5d4cb392f/href</a></iframe><h3>Build and run your docker image</h3><p>Build your docker image with the tag your-app.</p><pre>$ docker build -t your-app .</pre><p>Now you can run your container from image your-app.</p><pre>$ docker run -p 8800:80 your-app</pre><p>Open your app on <a href="http://localhost:8800/">http://localhost:8800/</a> … 🎉</p><p><em>Originally published at </em><a href="https://www.kukulili-labs.com/blog/2017/11/20/docker-for-angular/"><em>www.kukulili-labs.com</em></a><em> on November 20, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=340906be4a92" width="1" height="1" alt=""><hr><p><a href="https://medium.com/red6-es/docker-for-angular-340906be4a92">Docker for Angular</a> was originally published in <a href="https://medium.com/red6-es">red6</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JBoss AS7 / EAP 6 behind an SSL terminating Reverse Proxy]]></title>
            <link>https://medium.com/red6-es/jboss-as7-eap-6-behind-an-ssl-terminating-reverse-proxy-6160a630a741?source=rss----49e16dccd8d9---4</link>
            <guid isPermaLink="false">https://medium.com/p/6160a630a741</guid>
            <category><![CDATA[ssl]]></category>
            <category><![CDATA[reverse-proxy]]></category>
            <category><![CDATA[proxy]]></category>
            <category><![CDATA[jboss]]></category>
            <category><![CDATA[https]]></category>
            <dc:creator><![CDATA[Malte Finsterwalder]]></dc:creator>
            <pubDate>Mon, 04 Dec 2017 17:21:07 GMT</pubDate>
            <atom:updated>2017-12-04T17:05:29.428Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3J8YtZihWDsdjH6kBgvD1w.jpeg" /></figure><p>If you have a proxy, like HAProxy for example, that terminates your SSL, the proxy forwards your traffic to JBoss via HTTP. So your JBoss is accessed via HTTP and “thinks”, it’s accessed in an unsecure way. This may have no consequences, but sometimes it does.</p><p>But you can configure your proxy and your JBoss in a way, so that the proxy forwards the information, that the access really was encrypted via SSL. That’s what the “x-forwarded-…”-headers are for:</p><p>x-forwarded-for — contains the real clients IP address, where the request originated.<br>x-forwarded-proto — contains the protocol that was used between the client and the proxy.</p><p>Your proxy needs to send these headers. How to configure your proxy to do so is not part of this post.</p><p>Now you need to tell JBoss to read and interpret these headers.</p><p>For that you need to add a RemoteIPValve to your connector-configuration.<br>You can do that in two ways: Edit your standalone.xml or domain.xml directly or execute a CLI script.</p><p>Add the following to your standalone.xml</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f2c08f69ef5863f5848e0131986d3b2e/href">https://medium.com/media/f2c08f69ef5863f5848e0131986d3b2e/href</a></iframe><p>Or execute the following CLI Skript</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/22cf46b4f915c722afbf44cef747a0fd/href">https://medium.com/media/22cf46b4f915c722afbf44cef747a0fd/href</a></iframe><p>That’s all there is to it!</p><h4>Wildfly / JBoss EAP 7</h4><p>A details description on how to set up Wildfly can be found here:<br><a href="https://mirocupak.com/configuring-wildfly-behind-a-reverse-proxy-with-tls">Configuring Wildfly behind a reverse proxy with TLS</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6160a630a741" width="1" height="1" alt=""><hr><p><a href="https://medium.com/red6-es/jboss-as7-eap-6-behind-an-ssl-terminating-reverse-proxy-6160a630a741">JBoss AS7 / EAP 6 behind an SSL terminating Reverse Proxy</a> was originally published in <a href="https://medium.com/red6-es">red6</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pappsatt beim Sommerfest]]></title>
            <link>https://medium.com/red6-es/pappsatt-beim-sommerfest-aa5da983fdd9?source=rss----49e16dccd8d9---4</link>
            <guid isPermaLink="false">https://medium.com/p/aa5da983fdd9</guid>
            <dc:creator><![CDATA[Sebastian]]></dc:creator>
            <pubDate>Fri, 08 Sep 2017 13:55:07 GMT</pubDate>
            <atom:updated>2017-09-08T13:55:06.886Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*10fXYpnrWiSsS5t8Xr8g_A.jpeg" /></figure><p>Am Dienstag den 13.9. haben wir bei kuscheligen 31 Grad (!) unser Sommerfest im Hamburger Stadtpark gefeiert. Zum Programm wurde nur folgendes Verraten: Treffpunkt um 14 Uhr am Stadtparksee und Wechselklamotten mitbringen — es könnte nass werden.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*reI7N1znDgzYAhEsfUkz-A.jpeg" /></figure><p>Am Treffpunkt fanden wir vor: Einen netten jungen Herrn mit Schwimmwesten, Paddeln und einem Origami Buch. Drei größere Folien. Auf jeder Folie ein großes und ein kleineres Stück Pappe, 1 Schraubzwinge, 2 Stück Holz, Fingermalfarbe, Cutter-Messer und Schere. Das kann nicht für uns sein, oder doch? Wohl doch, denn der nette junge Herr fragte die etwas verwirrt blickendend red6ler, deren Augen noch mit dem grellen Sonnenlicht kämpften, freundlich: Gehören Sie zur red6, Herr Finsterwalder? In der Tat. Also doch für uns. Aber was hat uns Malte da eingebrockt?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lY0LXM78MkyRYWJZ_haJMA.jpeg" /></figure><p>Unsere Aufgabe: Wir bauen Boote aus der Pappe. 3 mal Pappe macht 3 Boote und ein Rennen auf dem Stadtparksee. Oha! 12 red6ler und 3 mal Pappe macht also 4 red6ler pro Pappe. Die Diskussion um die Teams war eröffnet. Wer passt ins Team? Sebastian der Handwerker? Aber was hat er drauf ohne sein Makita Köfferchen? Dr. Horst mit seinem hohen IQ? Norbert der Modellbauer? Dann noch der Malte als Moderator mit ins Team. Was können die Neuen? Und dann noch… Da reisst uns der nette Junge Mann aus der Diskussion der Teamzusammenstellung und macht eine klare Ansage: Alle durchzählen von 1 bis 3 — das sind die Teams. Oder so.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KoadDOg1rDlPt62xeJ-ZBQ.jpeg" /></figure><p>Jetzt ab an die Arbeit. Ziel ist es die Pappe mit Schere, Cutter-Messer, Holzstücken und einer Schraubzwinge in ein Boot zu verwandeln. Das Pappboot muss 2 Personen zum Sieg führen. Als Hinweise gibt es ein Mini-Pappboot als Vorlage und ein Origami Buch mit Anleitungen für Faltboote.</p><p>Nun machen sich die Teams an die Arbeit. Jedes Team überlegt wie sie das Stück Pappe am besten in ein Boot verwandeln. Erste Frage, welche Form? Rechteckig wie das Mini-Pappboot von der Vorlage? Ein länglicher Einbaum wie aus dem Origami Buch? Wie groß soll der Boden sein? Zu klein wird es eng und kippelig auf dem Wasser. Zu groß reicht der Tiefgang nicht und es wird instabil. Fragen über Fragen und ganz verschiedene Strategien. Der Physiker rechnet alles genau aus: Verdrängung, Gewicht, Wasserwiderstand, Dichte. Der Pragmatiker nimmt Augenmaß und setzt das Cutter-Messer an. Das treibt dem Planer den kalten Angstschweiß auf die Stirn.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F5nKLxrsurP2tRKHZG8GGw.jpeg" /></figure><p>Einige Stunden später ist es dann soweit. Drei rechteckige Pappboote stehen bereit, die “Bissmark”, die “Red Pörl” und das andere Namenlos. Die Jungfernfahrt wird von allen Booten bravourös gemeistert. Dann folgt das Rennen. Der erste Durchgang ohne Problem. Im zweiten Durchgang gibt es die ersten Verluste. Torben und Norbert kippeln, verlieren die Kontrolle und kentern mit der “Bissmark”. Die “Red Pörl” und das namenlose Schiff halten bis zum Ende durch. Letzte Aktion des Rennens: Das namenlose Schiff nimmt Kurs auf die “Red Pörl” und entert unter Kampfgebrüll das Schiff. Beide Schiffe kippen um, die Besatzung landet im Wasser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ofWMsxz3Dd12z_q59v0Zg.jpeg" /></figure><p>Nach dem anstrengenden Rennen ist es Zeit für eine Stärkung im Landhaus Walter. Wir lassen den gelungenen und spaßigen Tag bei Bierchen und leckerem Essen ausklingen. Uns hat das Pappboot bauen und schwimmen lassen sehr viel Spaß gemacht. Vielen Dank für die Organisation, Malte!</p><p>Wenn ihr auch mal eine Pappboot-Regatta mit eurem Team machen wollt, könnt ihr das bei <a href="https://areffekt.com/">AREffekt</a> buchen!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa5da983fdd9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/red6-es/pappsatt-beim-sommerfest-aa5da983fdd9">Pappsatt beim Sommerfest</a> was originally published in <a href="https://medium.com/red6-es">red6</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>