Artificial Life? Is it possible?

Is it possible to create artificial life? Here is a few lines of code for thought:

// Artificial Life? Is is possible?

if (bacteriaResponds) {
feedBacteria;
else {
encourageBacteria;
}

while (bacteriaIsTrainable) {
bacteriaConductsElectricalCurrent;
}

Before further explaining this code, let me first propose the following questions:

  1. Is bacteria trainable?
  2. Is bacteria capable of conducting an electrical current?

The answer to both of these questions is an astonishing yes:

  1. Bacteria is trainable
    Delft University of Technology. (2010, ...
Read more →

PHP eval(base64_decode

If you find following line of code on your site:
eval ( base 64_ decode consult a PHP developer – IMMEDIATELY! This line of code means that a hacker has gained complete control over your site and is using your website for malicious purposes. This security compromise is common to websites that are running an outdated version of WordPress. WordPress updates to newer versions to remove found security threats.

DO NOT IGNORE WORDPRESS UPDATES!

Ignoring a WordPress update may result in a mySql ...

Read more →

Fibonacci Series in Java

Java code written to count and output the Fibonacci sequence.

// Algorithm for Adding Fibonacci Numbers

// @author www.mikestratton.net
public class Fibonacci
{

public static void main(String[] args)
{

int count = 20; // set the number of times the equation runs ** do not exceed 44
int x = 0; int y = 1; // set the initial values to be added
int fib = 0; //  fibonacci number

for (int i = 0; i <= count; i++)
{
fib = x + y;
Read more →

Page 1 of 32 12345...»