android

Android Custom Controls Basics

January 17, 2015 / 0 comments

This small tutorial shows the basic steps to create a custom GUI control in Android.

openssh

SSH Tips and Tricks

August 31, 2014 / 0 comments

The Secure Shell (SSH) is a fantastic safe data exchange and communication system, and not only a remote login tool. It can be used for tunneling several protocols, including TCP itself, thus allowing information routing between socket, similar to a VPN. With a program like SSHFS it is even possible to mount a remote file system with…

Read more →

fig

GCC Cross-Compiler with Newlib for Microcontrollers

August 1, 2014 / 0 comments

The following recipe illustrates how to build GCC and binutils from source code as a cross-compiler for generating code for microcontrollers like ARM-Cortex (STM32), MIPS (PIC32) or M68K (Coldfire). Once there is not a target operating system, the library Newlib will be employed. Newlib is an optimized version of libc specially designed for embedded processor systems. This can…

Read more →

fig

MySQL and Java

July 29, 2014 / 0 comments

Sorry, this entry is only available in Português.

fig

Finding Information about Classes

July 27, 2014 / 0 comments

Some people asked me about the C++ equivalent for the Java’s instanceof reserved word. It is essential to know about some object’s class in runtime, usually relating to some of its ancestors. For instance, if we have some base class Shape, like the classes Circle, Rectangle e Spiral, how can we find out if some instance from…

Read more →

Alterando Listas

July 27, 2014 / 0 comments

Algo muito comum em programas envolvendo listas e outros tipos de containers em C++ é a necessidade de se remover elementos dos mesmos, frequentemente durante algum processo de varredura ou de enumeração de seus elementos. Embora isso possa parecer uma tarefa simples e inocente, a remoção do elemento atual de um loop pode tornar o…

Read more →

fig

Procurando elementos em listas

July 27, 2014 / 0 comments

Uma forma interessante e muito elegante de procurar elementos contidos em listas ou outros containers da linguagem C++ é através da função find(), pertencente ao Standard Template Library (STL) do C++. O uso do find() tem a vantagem de tornar o código mais legível do que varrer explicitamente o conteúdo de uma lista enquanto se…

Read more →