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.

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

TextMate for linux

Monday, December 1, 2008

Filed under: Linux, web-development — Tags: , , — Dmitri @ 21:19

Of course TextMate is the best text-editor ever. It has a lot of eseful features and nice syntax highlighting stuff and code autocompetition features.

Windows has an official TextMate clone — E-texteditor. But *nix and linux don’t.

I have read tens of useless articles how to set up gedit as the web IDE and no one was very useful. Moreover almost in every article’s comments some *nix nerds advise to use Vim or Emacs. These editors are so confusion for beginner and you need to spend days to learn how they works. So I explain how to setup gedit to behave like TextMate in 2 minutes.

Lets go!

If you don’t have already installed gedit (in GNOME it’s default text editor), so type in terminal:
sudo apt-get install gedit

Next step is install gedit-plugins:
sudo apt-get install gedit-plugins
That’s all what you need to install.

Open gedit and go to Edit > Preferences and choose “plugins” tab. You will see that plugins’ choice is much larger than standard, it’s good idea to check next plugins:

  • Bracket completion
  • Change case
  • Code comment
  • Color picker
  • Snippets
  • Insert date/time
  • Indent Lines
  • Join/Split lines
  • etc. (what you wish)

If you like dark color scheme go to “Font&Colours” tab and select “Oblivion” scheme it’s look very good. (Anyway if you’re config freak you can download a lot of other themes, just google it).

During the work you can save your most useful code with “snippets” plugin and use them again and again.

Restart gedit.

TextMate for linux is ready for you. Have a nice coding!

© 2008 Dmitri Smirnov