segunda-feira, 19 de maio de 2014

Gerando números aleatórios no Terminal / Generate random numbers in Terminal

É simples, digite o seguinte comando: / It's simple, type the following command:

echo $RANDOM

A saída será um número até 32.767 / This will output a number up to 32,767
Se você quer limitar os números aleatórios até um certo número, digite o seguinte: / If you want to limit the random number up to a certain length simply type the following:

echo $[RANDOM%X+1]

Onde X é o maior número que você quer, porém deve ser menor que 32,767 / Where X is your largest number you want, although it has to be less than 32,767
Se você quiser incluir o zero: / If you want to include zero:

echo $[RANDOM%X]

Apenas lembre que X será o número de possibilidades. /  Just Remember that X is the number of possibilities.
Se você quiser um número aleátorio maior, você pode simplesmente repetir o $RANDOM / If you want a longer random number you can simply repeat the $RANDOM

echo $RANDOM$RANDOM

Até a próxima! / See you later!


terça-feira, 6 de maio de 2014

Free Software Game: Stunt Rally / Jogo em Software Livre: Stunt Rally

License: GNU General Public License version 3.0 (GPLv3)

You can find in the link bellow / Pode ser encontrado no link:
http://sourceforge.net/projects/stuntrally/files/2.2/

site: https://code.google.com/p/vdrift-ogre/

To extract / para descompactar:
tar -xJf StuntRally-2.2-linux.tar.xz


Hardware requirements / Requisitos mínimos:

CPU:with 2 cores
GPU:GeForce 9600 GT or Radeon HD 3870
with Shader Model 3.0 supported and 256 MB GPU RAM
It is possible to run on older, (e.g. on 1 core CPU and GeForce 7600 GT, with 30 Fps and Low settings),
but integrated GPUs or laptops can't handle the game well (or at all).

É possivel rodar em antigos, (exemplo: em processador de 1 núcle e GeForce 7600 GT, com 30 Fps e configurações baixas),
mas GPUs integradas ou laptops não consegue lidar bem com o jogo (ou em todos)