Tag Archives: python

Faster string matching in Python

I constantly find myself in a situation, like developing the Music Suggestions Ninja, where I need to have the user enter a string and find the best match for that string from a list of strings. Here’s the code to do it!

My first web app – a music recommendation and playlist generation service

A small synopsis of my journey through developing a web app to recommend and generate music playlists. Read about the encountered problems and their solutions.

Python Beowulf cluster – find a use for those computers that are 10+ years old

This is a simple, but useful, example of how you can take advantage of all the old computers you have laying around. Ever want to make a homemade supercomputer? This is the start.

A simple internet content sieve

You can grab the html of a website, but what if you are only interested in a small part of the content of the website? Use a sieve!

Cover image for The Archive Literary Journal

Turing Test: Passed, using computer-generated poetry

This is a story of how an artificial intelligence I designed to be able to pass a Turing Test for poetry.

Adding motion sensing using Passive Infrared

Instructions on how to put together a simple motion detection appartus using an infrared sensor and radio frequency communications.

Declarative information gathering

Where does a AI get its knowledge? From the internet! Here I show how to connect up to Wikipedia and WolframAlpha to have access to incredible amounts of knowledge!

Adding a face to an AI

Update 02/12/2014: I made a slightly better version using graphics that implement a little bit of the actual mouth movements (see here for code): So for a face, I thought I would try making some sort of realtime voice animating system. I made a very very simple one in python. Here is an example of […]

Creating a personality: chatterbots

This part is actually very easy – there is a fantastic API already available that does the job. Use this API and then all that needs to be done for the AI program is creating a function that feeds in the query to the robot and gets the response: In this example I use CLEVERBOT […]

Visual information: facial recognition

Once again, this will be short and sweet. The code here is the most simple, it does not save any of the processed images. If people are interested in that I can post code that will save images of the faces with their features labeled, but I am excluding that now for clarity. Here is […]