The new flickr stream

November 12th, 2011

Hey folks, I’m back with a new flickr stream. On this stream, I will post some interesting shoots from my journeys and trips.

Click here to visit the photo stream travel1337.

Stay tuned.

roadmap for 2k11

August 10th, 2011

A few articles (written by me) about LAMP-Performance.

Articles about Linux and hardware performance will follow in fall 2011.

My roadmap for 2011 contains the following thinks:

  • get inside of the MySQL core
  • passing the Zend Certificate Engineer Program
  • writing a couple of extensions for PHP
  • release a WordPress+Performance alternative called Speedpress
  • continue the development of the PHP-search engine, Theta8 and a few more

If you have any questions or suggestions, don’t hesitate to contact me. I’d like to stay in touch with ambitious people, to talk about innovative ideas and visions.

Stay tuned.

Note on Benford’s Law

February 22nd, 2011

While dealing with Benford’s Law i noticed, that the algorithm, which used the product formula, works more than 2 times faster, then the algorithm with the summation formula. Below you can see my two implementations of Benford’s Law in C. Thanks to Prof. Dr. Klaus Neumann for any suggestions.

Params

int n := position of the numeral in the number

int d := numeral

return := p(d) at position n

Example

1337 -> 1. benford(1,1) -> 2. benford(2,3) -> benford(3,3) -> benford(4,7)

Benford’s Law with summation formula

float benford10(int n, int d){
float j = pow(10, n – 1), s = 0, i;
for(i = floor(pow(10, (n – 2))); i <= j – 1; i++)
s += log10(1 + (1 / ((i * 10) + d)));
return s;
}

Benford’s Law with product formula

float benford10(int n, int d){

float j = pow(10, n – 1) – 1, p = 1, i;

for(i = floor(pow(10, (n – 2))); i <= j; i++)

p *= (1 + (1/((10 * i) + d)));

return log10(p);

}

Hello World

January 31st, 2011

Hello world – or to say it with PHP

<?php

echo “Hello World”;

?>

Stay tuned, Alex.