Internationalization in Rails 2.2

Tuesday, October 13, 2009

Filed under: Ruby, Ruby on Rails, web-development — Tags: , , , — Dmitri @ 08:41

This tutorials is about Internationalization in Ruby on Rails 2.2 and later. You don’t need to invent a wheel from scratch all stuff for internationalization and localization of your application is available in standard Rails package since version 2.2.

Complete internationalization tutorial

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 ;-)

Generate static websites with Ruby (webby)

Monday, January 19, 2009

Filed under: HTML and CSS, Ruby, web-development, work — Tags: , — Dmitri @ 14:00

Often we need to generate some websites with static content, for example without any line of PHP code or without Ruby on Rails, just need to have plain HTML files. As for Me I hate to edit 50 HTML pages manually. I found a nice solution. It’s Webby

This is a great solution to complete such task.

You can check how it’s work here or there (old version).

There are more tools like Webby, Nanoc and jekyll. I have didn’t tried them, but I guess the functionality is the same.

Official Estonian currency rates with Ruby

Friday, December 19, 2008

Filed under: Ruby — Tags: , , — Dmitri @ 09:28

Just for some Ruby practice, this class do the same (gets the currency rates) as PHP in my previous post.

Check the Ruby code here.

© 2008 Dmitri Smirnov