Javascript crc3232 that mathes PHP crc32 and works well with unicode

Javascript crc32 implementationMany 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.


Google Chrome session cookie expiration issue/feature - your personal data is insecure now!

Not long ago I was happy that modern and standards complaint browsers are gaining the market and hoped that web programming will become more and more happy and interesting job with HTML5 and three major web browsers compete with aproximately equal shares. But Google Chrome developers have not allowed me to be happy for a long time. They generating new bugs and naming them features. Some of that "features" making me really sad.


PHP MySQL incremental backup/restore implementation (download the script)

I have published two small scripts that allows to create and restore data from mysql database filtered by date, so I can define this as incremental backup. Article describes the backup/restore scripts configuration. The scripts themselves can be downloaded from the GitHub, links are available at the end of the article.


Using MySQL PHP: select random row based on weight

PHP MySQL random row selection based on weightArticle 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.


PHP MySQL prepared SQL statement vs SQL statement

I should confess - I am already using MySQL prepared statements for some time, but very rarely and mainly because they can make certain scripts more readable. As many of us I have read a lot of articles about coolness of prepared statements and that I should use them because of security and speed improvements. Finally my сuriosity won and I decided to test prepared statements against ordinary SQL statements myself. Friendly speaking I was impressed by the results I got....