Block Destroyer: A Breakout Game (Java Source Code)

breakout game start: 6 rows of blocks waiting to be broken, a paddle, but no ball so far

Play the game Breakout. Destroy bricks, bounce balls, have fun with this awesome clone of the classic arcade game.

It is written in Java with the libgdx library, so it can be played on the PC, Android as well as online. The java source code of this game is open and can be downloaded as well.

Symfony2 Tutorial: User Submissions – Controller, Forms, E-Mails

This is the forth part of the series Symfony2 Tutorial for Beginners which will describe the process of creating an interactive contact page. This part of the Symfony2 tutorial has the goal to deepen the understanding of controllers and Twig templates. Furthermore forms will be introduced so that at the end of this tutorial the reader will be able to create an interactive page with the symfony2 framework. Creating the Contact Entity Creating the Form Class Twig template to render a form Adding the Controller Action Flash-Messages: Feedback across requests Replacing hard-coded strings / Using configurable settings Creating the Contact Entity First of all, create a directory Entity   in which all entities will reside from now on.

Symfony2 Tutorial: The first static Page – Routing, Templates, Twig

This is the third part of the series Symfony2 Tutorial for Beginners which will describe the process of creating a static page. We will create a controller that will define a route as well as the action for this route. Furthermore we will create a basic template in twig and the impressum page itself. Creating the Route and the Controller Creating the View (Twig) Creating the Route and the Controller The first thing one has to do when adding a new page to a website is to define how the user can reach it and what part of the code should be executed in order to show it.

Symfony2 Tutorial: Netbeans and Symfony2 – Setting everything up

This is the second part of the series Symfony2 Tutorial for Beginners which will describe the process of configuring Netbeans to work with the php framework Symfony2. Prerequisites Enabling Php in Netbeans Creating Symfony2 Project in Netbeans A short note on Symfony2 directory structure Configuring your Webserver Configure Symfony2 Working with Netbeans and Symfony2 Prerequisites Things that should already be up-and-running: Webserver (e.g. Apache) DBMS (e.

Symfony2 Tutorial: The Planning Stage of Website Development

This is the first part of the series Symfony2 Tutorial for Beginners. It will give a short overview over the functionality of the website we are going to build.

For the purpose of this tutorial, I will keep the functionality that will need to be planned at a minimum.

We will develop a Website which will have an Impressum (static page), a contact page (interactive page), and a page which lists news posted by a site admin (persistence). The news may be in one or more categories.

Symfony2 Tutorial for Beginners

The series Symfony2 Tutorial for Beginners will describe the development of a website with Symfony2 step by step. At the end of this tutorial the reader should be able to set up a Symfony2 project and design a basic interactive website with multiple pages, forms, logins and persistable data. Symfony2 Tutorial Part 1: The Planning Stage of Website Development Part 2: Netbeans and Symfony2: Setting everything up Part 3: The first static Page: Routing, Templates, Twig Part 4: User Submissions: Controller, Forms, E-Mail Part 5: Storing Data: Entities, Doctrine, Sql Further Reading Symfony2 – The Book: Information on the basics of Symfony2 Symfony2 – The Cookbook: In depth description of specific aspects of Symfony2 Creating a blog in Symfony2: Also a great tutorial for Symfony2 A fast introduction to Symfony2: Compact overview of Symfony2 functionality with examples

LogEval – Java Server Log Analyzer and Parser

LogEval parses and analyses server log files such as Apache or Nginx logs. LogEval can be used instead of web-analysis tools such as Google Analytics or Piwik to save resources or in addition to those tools to get a broader picture of the webserver traffic.

Java Function Passing

In Java, passing a function as parameter is not directly supported because no constructs like lambda exist in the Java programming language (they do since Java 8, see the last section). But there are alternatives, and in this post I will describe some of them. Java Function passing using Interfaces / Strategy Pattern Using Template Method Pattern Think about alternatives for passing functions Using Lambda to pass a function in Java Interfaces / Strategy Pattern With an interface, it is possible to mimic function passing in Java.

When and How to improve Java performance

When to increase performance (and when not to) General tips to Improve Performance of Java Code Increase Java performance in big loops Netbeans Profiler Further Reading When to increase performance (and when not to) Most of the time, there is a trade-off: You can either have fast code, or you can have clean code. And most of the time, clean code is more important. but there are cases when speed actually matters and one is willing” to sacrifice quality and maintainability of the code for an performance increase.