Processing Binary Files In PHP

October 17th, 2006

This little tip might be usefull for people who have recently started learning PHP and have some experience in other languages (like me). Recently I needed to write a PHP script that would process a binary file I had created in my Delphi program. However, it turned out that fread() doesn’t work as expected – […]

Continue Reading...

Evolving Websites – Why Not?

October 9th, 2006

Genetic algorithms are used for evolving various things – from bot behaviour in games to digital art. They can be used for solving nearly any problem/field that allows you to construct a well-defined genome and a fitness function. Defining a genome for a website is doable, and probably quite simple, too. Many websites consist of […]

Continue Reading...

Generating text as a Markov chain

September 1st, 2006

Some words have a tendency to appear in certain contexts. For example, “jumps” is likely to be followed by “over”, but “cabagge” is probably not going to appear there. It is possible to analyze a text and determine how often words appear in specific contexts. These statistics can then be used for various purposes.

This method is useful for various tasks in natural language processing, but the fun part is you can use it to generate a random text that appears to be meaningful, and that’s what I’m going to do 🙂

Continue Reading...