Author Archives: anonymouscowherd

Markov chain sentence generator in erlang

Markov chains explained, and an erlang example :) Continue reading

Advertisements
Posted in Uncategorized | Tagged , , , , | 3 Comments

A genetic algorithm example in Erlang.

The idea behind this program is to begin with a base population of X people, and try to breed/mutate into Y ( where Y is specified on the command line ), through general selection and random mutation. Basically, what this means is that we can select the population fit to breed, and can randomly mutate the progenies formed out of the mating. Varying the parameters (like the policy with which we select the population fit to mate, or the probabiliy with which mutation occurs, leads to interesting results!)

Continue reading

Posted in Uncategorized | Tagged , , , , , , , | 3 Comments

Erlang websocket server ( websocket protocol 76 )

Erlang websocket server implementing handshake draft 76 Continue reading

Posted in Uncategorized | Tagged , , , | 1 Comment

Python websocket server ( websocket protocol 76 )

A simple python server that handshakes (version 76 of the ietf websocket protocol ) an HTML5 enabled browser connecting to it using websockets. Also includes basic message framing. Continue reading

Posted in Uncategorized | Tagged , , , | 6 Comments

A very basic erlang Crawler

1.Save the code below as spyder.erl 2.Run as : erl spyder.erl  -s spyder start http://site_to_crawl.com -s init stop http://pastebin.com/Qw9f11bi This is a very crude crawler – will crawl all the links in a page, and then further. It doesn’t protect you … Continue reading

Posted in Uncategorized | Tagged , | 1 Comment

[OwlKun] Integrating OAuth with Twitter’s API in python

I believe everyone’s heard that  Twitter will be doing away with basic authentication come June ’10. They’re switching to OAuth. It’s a mechanism via which a consumer (C) and access the resources of a site (S), on behalf of a … Continue reading

Posted in Python, Twitter, Uncategorized | Tagged , , , | 1 Comment

Setting your currently playing rhythmbox song as your pidgin status message.

Status change :) Continue reading

Posted in Dbus, Linux, Metal, Music, Python, rhythmbox, Uncategorized | Tagged , , , , , , , , , | 1 Comment