[Solved] The Windows Audio Endpoint Builder service terminated with the following error: The RPC server is unavailable.

If you’ve been getting this error when trying to start Windows audio: ”

  “, most probably you’ve disabled the Power service. So, enable Power and then Windows Audio.

[SOLVED] java.sql.SQLException: Expression #1 of ORDER BY clause is not in SELECT list, references column ” which is not in SELECT list; this is incompatible with DISTINCT

java.sql.SQLException: Expression #1 of ORDER BY clause is not in SELECT list, references column ” which is not in SELECT list; this is incompatible with DISTINCT This happens in MySQL 5.7, it is a new additional constraint added by default. It is the mode: ONLY_FULL_GROUP_BY The solution is to disable it in my.cnf :

[MAVEN] Set Java version in pom.xml

If you want to set java version in pom.xml to get rid of the eclipse warnings and the default java 5 provided. Then set this in your pom.xml:

 

[Design Patterns] Template Method Pattern

Template Method Pattern – when you define and implement one or more common methods in the base abstract class, but leave some abstract methods to be implemented in the child classes depending on the context. You may invoke the concrete methods from the abstract one. The abstract method contains functionality common to all types of…

[Design Patterns] The Strategy Pattern

Strategy Pattern – is when you define some interfaces which represent the strategies for various context dependent tasks. Then you implement these interfaces in classes with alternative purposes. Sometimes during runtime, the implementations can be switched so that a new strategy is adopted. In the actual client code (that is employing the strategies), you define…

[Design Patterns] The Builder Pattern

Builder Pattern – The constructor is private. You create a nested static class called Builder. In the builder you define¬†methods corresponding to the constructor parameters of the nesting class. Each method returns a Builder instance (return this at the end). Drawback is that you duplicate fields in the Builder. Finally you create a method called…