Practical web programming
Javascript crc32 that mathes PHP crc32 and works well with unicode

Many programmers including me are using hashes to solve different problems, and when we are using hash function in web application we want client-side and server-sire values of hash for the same value to match. So, trying to solve this problem for javascript implementation of CRC32 algorithm and PHP implementation of the same algorithm I got this article and the code that I have included to the article.

Read complete article: Javascript crc32 that mathes PHP crc32 and works well with unicode

Weighted random values generation in javascript. Full javascript code is available. Algorithm selects values from array randomly taking into consideration weights.

Article contains code of Erlang SSL echo server and SSL client example. Code is complete and working. Pattern can be useful in real world projects.

UDP is a widely used protocol and Erlang is a great platform for different network application different kinds. Today I decided to publish small UDP echo server example. I know that UDP socket usage is very simple in Erlang, but I think somebody will find this code usefull.

Article describes algorithm of random row selection based on weight, so some rows will be selected more often than other. Article includes sample codes, so I hope will bу helpful to somebody.

Do not hesitate to leave comments if you have ideas how to improve the algorithm.