Create your fixtures easily

Posted by Dmytro Shteflyuk on under Ruby & Rails

Every time I’m creating fixtures for Rails application I’m being angry because any more or less considerable project needs tons of them. Most complicated thing is to track all relationships, validations, and to keep fixtures up to date. A few days ago Yurii Rashkovskii has released small utility — Fixturease. What if I would tell you that now you can create your fixtures using your models?

Read the rest of entry »

Sphinx 0.9.7-RC2 released, Ruby API updated

Posted by Dmytro Shteflyuk on under Ruby & Rails

Today I found that Sphinx search engine has been updated. Major new features include:

  • extended query mode with boolean, field limits, phrases, and proximity support (eg.: @title "hello world"~10 | @body example program);
  • extended sorting mode (eg.: @weight DESC @id ASC);
  • combined phrase+statistical ranking which takes words frequencies into account (currently in extended mode only);
  • official Python API;
  • contributed Perl and Ruby APIs.

I have updated Sphinx Client Library along with Sphinx 0.9.7-RC2 Windows build.

Redesign

Posted by Dmytro Shteflyuk on under Resume

I got new design for my blog finally! My wife has finished her work and presented sketch in her blog today. I’m highly impressed and want to see what do you think guys. Please look it (click on logo) and vote on sidebar or in the bottom of post. Thanks, your opinion is significant for me!

Dmytro Shteflyuk's Home logo

Corresponding post in IRIS Design blog.

Using Sphinx search engine in Ruby on Rails

Posted by Dmytro Shteflyuk on under Ruby & Rails

Almost all Web-applications needs data search logic and really often this logic should have full-text search capabilities. If you are using MySQL database, you can use its FULLTEXT search, but it’s not efficient when you have a large amout of data. In this case third party search engines used, and one of them (and I think, the most efficient) is Sphinx. In this article I’ll present my port of Sphinx client library for Ruby and show how to use it.

Read the rest of entry »