Archive for the ‘Programming’ Category

Debian – PHP, MySQL, Apache2

This article is a walkthrough on installing PHP environment – PHP, Apache, MySQL and xDebug on Debian.

When it comes to database servers, there are several free database server applications available. The intended use of the database server will have some impact on which database package you choose. MySQL is the most widely used free database server. However, it’s use is primarily to act as a back end database for Web site applications written in embedded scripting languages like PHP because it doesn’t support things like triggers, stored procedures, and replication (yet).

Open a terminal. You will need to install all the parts as root, so… suit up!

Install Apache web server

apt-get install apache2

Install MySQL server

apt-get install mysql-server

Continue reading

Simulation of Evolution by Natural Selection

Uma coisa doce que nos foi mostrada numa aula de inteligência artificial
O motor fisico assim como todo o ambiente foi criado pelos programadores, as espécies em si desenvolveram-se por si próprias através de inteligência artificial orientada por algorítmos genéticos.

This video shows results from a research project involving simulated Darwinian evolutions of virtual block creatures. A population of several hundred creatures is created within a supercomputer, and each creature is tested for their ability to perform a given task, such the ability to swim in a simulated water environment. Those that are most successful survive, and their virtual genes containing coded instructions for their growth, are copied, combined, and mutated to make offspring for a new population. The new creatures are again tested, and some may be improvements on their parents. As this cycle of variation and selection continues, creatures with more and more successful behaviors can emerge.

The creatures shown are results from many independent simulations in which they were selected for swimming, walking, jumping, following, and competing for control of a green cube.

Interview with Karl Sims, the creator of this program: