Apache POI: Usage of formulas and excel functions

In order to manipulate formulas in Apache POI, we use the method setCellFormula(«formula») of HSSFCell class. Similar to Microsoft Excel, we can use mathematics formulas (A1+B2+C3, B5*A2, …) and Excel’s functions (SUM, COUNT, MAX, …). When we use excel functions, Seguir leyendo Apache POI: Usage of formulas and excel functions→

How to smooth textures when they are resized in LibGDX (filters I)

When working with LibGDX, we normally use a «vitual» screen (whether through using Viewports or with transformation matrices) with a defined dimensions, and all textures / images will have a size according to that virtual dimensions. If the viewport size Seguir leyendo How to smooth textures when they are resized in LibGDX (filters I)→

How to generate MS Excel files from Java with Apache POI

Commonly it’s necessary to manage Microsoft Excel files from Java applications. It can be usefull, for example, to export / import data, report generation, etc. Apache POI is a library from Apache fundation, which has become a de facto standard Seguir leyendo How to generate MS Excel files from Java with Apache POI→

How to add event listeners to a button in Cocos2d-x 3.x and C++

Recently I have started a port to iOS of my game Dark Snake, originally made for Android. I want to take this opportunity to learn something about C++, so I have decided to use the game engine Cocos2d-x. Probably, which Seguir leyendo How to add event listeners to a button in Cocos2d-x 3.x and C++→