Tag Archive for 'Algorithms'

My first five Dollar Bill

Yesterday I got my hands on my very first Lincoln (five dollars) bill, they seem much more older and used than Euro banknotes. As I had already made a Euro note serial number validation algorithm in PHP I thought: “why don’t I do the same for dollar bills?”.

Five Dollars (Front)

Continue reading ‘My first five Dollar Bill’

ISBN-10 and ISBN-13 (EAN) validation with PHP

Since the begining of this year the standart ISBN has now 13 numbers instead of 10 so, I did some functions for validating the ISBN-10 and EAN (works for ISBN-13) with PHP, maybe it’s useful for someone.

Continue reading ‘ISBN-10 and ISBN-13 (EAN) validation with PHP’

Euro banknote validation with PHP

Euro Notes

Have you ever come across a fake Euro banknote? Well, most of us probably have (at least those of us who live in the European Union, like me) - more than 300 thousand Euro banknotes are falsified every year.

Continue reading ‘Euro banknote validation with PHP’

Cyc - Who killed JFK?

Watch this Google Tech Talk named “Computers versus Common Sense” for some insight about Cyc and “universal common knowledge computers”.

Cyc is an artificial intelligence project that attempts to assemble a comprehensive ontology and database of everyday common sense knowledge, with the goal of enabling AI applications to perform human-like reasoning.

Continue reading ‘Cyc - Who killed JFK?’

PHP CAPTCHA Decoder

I’ve developed a simple OCR CAPTCHA decoder in PHP, it’s pretty fast and breaks with a 100% success rate all CAPTCHAs that meet some requirements.

Continue reading ‘PHP CAPTCHA Decoder’

PHP Friendly Password Generator

Today I’ll be sharing an algorithm that I use quite a lot, for generating passwords that are easily memorable and spelled - one may also call this type of passwords mnemonic passwords.

Continue reading ‘PHP Friendly Password Generator’

PHP Password Strength Algorithm

I’ve ported the jQuery Password Strength Meter from JavaScript to PHP.

Continue reading ‘PHP Password Strength Algorithm’

Solitaire Players of the World Unite!

Dr. Luis van Ahn presented in his fantastic Google Tech Talk Video called Human Computation (he speaks very fast sometimes in this video).

Continue reading ‘Solitaire Players of the World Unite!’

PHP Math Library

I’ve just finished my PHP Math Library and Abstraction Layer, I’ve been up all night in order to code it, but it was worth it. I am proud of it.

My PHP Math Library features the following:

Continue reading ‘PHP Math Library’

APRIORI Algorithm

Palco Principal

During the last take off event, which took place in April 28th at the marvelous universitary city of Coimbra, I had the chance to watch in the first row to João Carvalho presentation, and talk to him later. He is the responsible for the Palco Principal website - a community website that allows Portuguese-spoken bands to interact with users and vice-versa. If you are or understand Portuguese you can access his presentation in PDF format, or the recorded presentation, in MP3.

Continue reading ‘APRIORI Algorithm’