guilhebl

Philosophical writings about programming and technology

Useful Linux commands for developers

System Information Processor Info: cat /proc/cpuinfo Memory Info: cat /proc/meminfo Version of your kernel and the GCC compiler: cat /proc/version Release information lsb_release -a File and display commands Lists files with permissions, shows hidden files,...
Read more...
15 April 2014

New features and changes of Bootstrap version 3

Major changes . Dropped IE7 and FF3.6 support. . Standard and responsive CSS combined into a single file. . Renamed Variables: Rename variables to use dashes instead of camelCase. For example, it's now @body-bg instead...
Read more...
15 April 2014

Regex Utility Class

Sometimes it's useful to have in hand several utility type methods in order to do similar tasks repeatedly. Utility classes are good candidates for a singleton. This example shows a Singleton Regex Utility class that...
Read more...
10 April 2014

JPA - Find all - Generic method

You might want to implement some generic template type methods for your domain model superclass in order to avoid duplicating boilerplate code for several classes, one example is the findAll method, in certain scenarios you...
Read more...
09 April 2014

Domain Model Generic Superclass

There is a common JavaEE pattern for enterprise domain modeling called Domain Generic Superclass which is one specific case of the Design Patter Template: "With the Template method pattern this happens at compile-time by subclassing...
Read more...
09 April 2014

Portable global JNDI name

Default syntax Per the EJB 3.1 Specification, each session bean is assigned a unique JNDI name within the java:global namespace. java:global[/<app-name>]/<module-name>/<bean-name> The portion is only present if the application is deployed as an .ear file....
Read more...
06 April 2014

Managing your UI dependencies with Bower

Bower - a UI dependency management tool Building UI related code has evolved during last years due to the introduction of new modern Javascript frameworks and to the new possibilities of usage that the javascript...
Read more...
06 April 2014

Evolution of the Java EE platform

Java SE The evolution of the Java Enterprise Edition (JavaEE) platform is closely related to the evolution of the Java language and the Java Standard Edition(JavaSE) API itself. Starting from the first Java version the...
Read more...
05 April 2014