Isikukoodi valideerimine

Friday, May 29, 2009

Filed under: Java, PHP, Ruby — Tags: , , , , — Dmitri @ 11:29

Leidsin täna seda → Isikukood. Algoritm on selge aga näidese kood on räpp…

Siis…

Versioon PHP by Setor
Versioon PHP 2 by MiamiBC (kõige lihtsam ja arusaadavam)
Java version by Incubo
Minu versioon Ruby keeles
Mika Tuupola versioon JavaScript

Kui sul on mingi teine versioon siis saada mulle ka ;-)

Plugin ‘Minify’ for Frog CMS

Wednesday, May 20, 2009

Filed under: PHP, web-development — Tags: , , — Dmitri @ 11:25

About Minify

‘Minify’ is a plugin to minify JavaScript and/or CSS code and combine it
into one file on the fly. This will increase performance of website.
So you don’t need to do dozens HTTP request for every JavaScript or CSS file.
Minify plugin is more useful and faster with Funky cache plugin.

How it works and how to use it.

Official Estonian currency rates with PHP

Thursday, December 18, 2008

Filed under: PHP, Wrong world, jQuery, me, web-development, work — Tags: , , — Dmitri @ 13:35

I had a bit free time today and I have written a PHP class which gets the official rates for Estonian crown. This class will be useful for internet shops or any other commercial organizations who need to keep their courses fresh.

You can download or check source. This stuff is really simple as hell, anyway there is a small documentation inside archive.
Here you can see the most fresh Estonian currency rates

Why Obama has won?

Friday, November 7, 2008

Filed under: PHP, web-development — Tags: , , — Dmitri @ 10:52

New US. president Barack Obama wins elections because his site is written on PHP, but John McCain has ASP.NET site, so they are:

Obama vs McCain.

:-)

Optimizing PNG images

Tuesday, October 14, 2008

Filed under: web-development, work — Tags: , , , — Dmitri @ 22:09

PNG is quite popular and versatile format for web, but not so as we all want. Why? Because software cannot render, save and open it correctly. Only IE6 is worth to remember, I hope soon that wretched browser will stay in far-far past. Sometimes happens that PNG’s file size is quite heavy.

OK, lets begin our story. When you create a PNG files in Photoshop they seems to be quite large. “Why” you ask? I answer, because Adobe Photoshop (even CS3) don’t know how to save PNG format correctly (strange, but Adobe Fireworks does). Ok, lets see why Photoshop saves PNG images incorrectly.

© 2008 Dmitri Smirnov