Posts

Empfohlener Beitrag

Java EE 7 Petclinic

Bild
A Java EE 7 Version of Spring Petclinic. Depending on JSF and EJB and ready to run on JBoss WildFly  and Oracle Glassfish . You find a running Version with WildFly on OpenShift , the RedHat Cloud: http://javaee7petclinic-port80guru.rhcloud.com Source Code ist hosted on Github: https://github.com/phasenraum2010/javaee7-petclinic The Domain Modell  contains all basic Relationships between Entities like OneToMany, ManyToOne and also ManyToMany: Pageflow  is complex enough to be interesting for Functional Tests with Selenium2 Webdriver, Arquillian Drone and Graphene: Use Cases Some Example Screen Shots install JBoss Wildfly install JBoss Wildfly 8.0.0.Final from http://wildfly.org/downloads/ to e.g. /Users/tw/srv/wildfly-8.0.0.Final/ start JBoss by: cd /Users/tw/srv/wildfly-8.0.0.Final/bin ; ./standalone.sh   install Glassfish 4 I installed Netbeans 7.4 with Glassfish 4.0 from https://netbeans.org/downloads/ sta

TYPO3 Barcamp Berlin 2017 #t3cb

Bild

TYPO3 Barcamp Berlin 2016

Bild
Meine Fotos vom TYPO3 Barcamp Berlin 2016: 'Product Owner' Mathias "Mattes" Schreiber : Was war und wohin geht es mit TYPO3? Helmut Hummel über PHPUnit in TYPO3 mit PHPStorm Büchertisch Sessionplanung Jochen Weiland über Security mit TYPO3 Security: CMS im Vergleich Das Camp hatte Super Vorträge, nette und interessante Teilnehmer und war exzellent vorbereitet vom Orga-Team. Mehr Infos: http://www.typo3camp-berlin.de/news/eindruecke-vom-t3cb-2016/

Spring Framework on OpenShift: persistence.xml and EntityManager Configuration on Wildfly 10 and MySQL

Bild
Running an Web Application with Spring Framework 4.2.x with Spring-Data-JPA and MySQL on OpenShift the RedHat Cloud is good with Wildfly10. But how to configure the MySQL Database for Spring-Data-JPA? Spring-Data-JPA with Wildfly10 and MySQL on Openshift   First Step: edit persistence.xml. Here is an Example: <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> <persistence-unit name="mySimpleWorkListPU" transaction-type="JTA"><jta-data-source>java:jboss/datasources/MySQLDS</jta-data-source> <class>org.woehlke.simpleworklist.entities.ActionItem</class> <class>org.woehlke.simpleworklist.entities.Category<

MySQL DataSource for Wildfly10 like Openshift

how to configure Wildfly10 to have a DataSource for MySQL like Openshift the RedHat Cloud. I installed Wildfly10 on ~/srv/wildfly-10.0.0.Final Step 1: Add MySQL Driver to modules: Download the mysql-driver mysql-connector-java-5.1.38.jar from any Maven Repository e.g.:  http://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.38/ go to WildFly modules Directory: cd wildfly-10.0.0.Final/modules/system/layers/base mkdir -p mysql/mysql-connector-java/main copy  mysql-driver mysql-connector-java-5.1.38.jar here. add a file module.xml with content: <?xml version="1.0" encoding="UTF-8"?> <module xmlns="urn:jboss:module:1.1"          name="mysql.mysql-connector-java">     <resources>         <resource-root path="mysql-connector-java-5.1.38.jar"/>         <!-- Insert resources here -->     </resources>     <dependencies>         <module name="javax.api"/>         &l

Cyclic cellular automaton

Bild
Abstract The cyclic cellular automaton is a cellular automaton rule developed by David Griffeath and studied by several other cellular automaton researchers. In this system, each cell remains unchanged until some neighboring cell has a modular value exactly one unit larger than that of the cell itself, at which point it copies its neighbor's value. Run the Application git clone https://github.com/phasenraum2010/cyclic-cellular-automaton.git cd cyclic-cellular-automaton mvn clean install exec:java or Download the jar and double click on it to start the Application: http://www.thomas-woehlke.de/a/cyclic-cellular-automaton/cyclic-cellular-automaton-1.0-SNAPSHOT.jar Screenshots Early Screen Later More https://en.wikipedia.org/wiki/Cyclic_cellular_automaton https://github.com/phasenraum2010/cyclic-cellular-automaton  

Diffusion-limited aggregation

Bild
Fractals and random walk due to Brownian motion cluster   Abstract Diffusion-limited aggregation (DLA) is the process whereby particles undergoing a random walk due to Brownian motion cluster together to form aggregates of such particles. This theory, proposed by T.A. Witten Jr. (not to be confused with Edward Witten) and L.M. Sander in 1981,[1] is applicable to aggregation in any system where diffusion is the primary means of transport in the system. DLA can be observed in many systems such as electrodeposition, Hele-Shaw flow, mineral deposits, and dielectric breakdown.   Run the Application git clone https://github.com/phasenraum2010/diffusion-limited-aggregation.git cd diffusion-limited-aggregation mvn clean install exec:java or Download the jar and double click on it to start the Application: http://www.thomas-woehlke.de/a/diffusion-limited-aggregation/diffusion-limited-aggregation-1.1-SNAPSHOT.jar   Screenshots Early Later More https://en.

Simulated Evolution - Artificial Life and DNA

Bild
Abstract Green food appears in a world with red moving cells. These cells eat the food if it is on their position. Movement of the cells depends on random and their DNA. A fit cell moves around and eats enough to reproduce. Reproduction is done by splitting the cell and randomly changing the DNA of the two new Cells. If a cell doesn't eat enough, it will first stand still and after a while it dies. Run the Application git clone https://github.com/phasenraum2010/simulated-evolution.git cd simulated-evolution mvn clean install exec:java or Download the jar and double click on it to start the Application: http://www.thomas-woehlke.de/a/simulated-evolution/simulated-evolution-1.1-SNAPSHOT.jar Screenshots Early Later Explanation     water     food     cell is young cell is fat enough to reproduce cell is old enough to reproduce cell is hungry and waiting for food or death cell is old and waiting for death * (if cell is fat and old enough for re