Logging In With CURL and PHP

July 7th, 2007

This is an example of how you can use CURL to “log in” and retrieve some protected info. I’ve showed the somewhat extreme case where you need to maintain cookies, spoof HTTP referer and use SSL. The example page used here is ClickBank – one of the largest digital product retailers. I’ve tried to comment [...]

Continue Reading...

Squidoo MDK Problems

July 6th, 2007

No response from Squidoo about my countdown module yet, so I’m going to write about some problems I encoutered with the Module Development Kit. This is going to be technical and Squidoo-specific, so beware. A bit of background : Squidoo offers a SDK for module development. This SDK (or MDK as it’s called) comes with [...]

Continue Reading...

A Countdown Module for Squidoo?

July 4th, 2007

Recently I decided to take a look at Squidoo and almost immediately I noticed they offered a Module Development Kit. After checking out the list of “Most Wanted” modules it seems a countdown module is a fairly popular idea and should be easy enough to do. A countdown module would basically “count down” to a [...]

Continue Reading...

Click Heatmaps for Everyone

June 22nd, 2007

(Another obscure topic here… yay!) One day not too long ago I remembered the “website heatmap” buzz (not so popular anymore now) and wondered whether I could/should create a software that could generate heatmaps for any particular website. Note that originally the phrase “website heatmap” was used to refer to an overlay image showing where [...]

Continue Reading...

Getting Excited About Toolkits And SDKs

June 10th, 2007

…because that’s what I tend to do. You know how it is – while browsing the web you come across some component library, API spec. or similar, and it looks so cool you wish you could immediately put it to use. I usually download those, store them somewhere, maybe read the docs/watch the demos… and [...]

Continue Reading...

Update on Living Image project

November 29th, 2006

This project has been going for a while, so I’ve decided to write a short overview of the results seen so far. If you don’t know what’s it about – The Living Image project is a website where anyone can vote for one or more digitally generated images. Those pictures are created by artificial neural [...]

Continue Reading...

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...