i the Imaginary Number

i = imaginary unit

The letter i, when use to represent a number is known as “the imaginary number”.

Given the definition of i both of the following statements are true:
i^2 = -1 and i =  {sqrt{-i}}

i^0 = 1
Any number with an exponent of 0 is equal to 1.

i^1 = ...</p><a class= Read more →

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) {
else {

while (bacteriaIsTrainable) {

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.


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 21 12345...»