Hire Us

Railsware Blog

on product management, engineering, design, culture and many more...

Rails 4.0 ActiveSupport small improvement

A few days ago my patch with the beginning_of_week config option has been merged to Rails master, so starting from Rails 4.0 we’ll gain full control over the week start day. Preface Working on Interstellar, I’ve found out thatActiveSupport has a lot of useful methods like Date#beginning_of_week, Date#end_of_week and many …

A couple of Airbrake tips

No software is complete without bugs and no Rails application is complete without proper exception tracking. In most cases we choose Airbrake to collect those exceptions for us. Here’s a couple of tips to make Airbrake more useful. Server-specific environment names Here at the Playhem team we have multiple independent …

Shared Handlebars Templates for Rails 3

Hello my dear friends. Today we will talk about the way, how we share handlebars templates in Rails 3. In the previous article I explained you how we share mustache templates between rails backend and javascript frontend in our company. After article publication, many people turned to the question “What …

Libskypekit and Skypekit – C and Ruby interface for Skype

Preface There are two methods to programmatically use Skype: Via the native desktop Skype application using Skype Desktop APIVia SkypeKit Runtime using SkypeKit SDK wrapper. The first method is rather slow due to an interaction with the user interface. The second one is more interesting as there is no UI …

Effective similarity search in PostgreSQL

Effective similarity search in PostgreSQL

Hello my dear friends. In “PostgreSQL most useful extensions” I showed a list of some useful extensions for PostgreSQL. Of course, that article didn’t cover all useful extensions (in my humble opinion) and some extensions I want to describe in separate articles. Today we will talk about effective similarity search …

Speed up your ActiveResources!

Preface In non trivial projects we often use SOA approach.Thereby one big monolithic application can be segregated into smaller applications or services. The benefit is obvious – it’s easy to control and maintain small applications. If you use Rails framework you probably already use ActiveResource for requesting your services because …

Shared Mustache Templates for Rails 3

Hello my dear friends. Today we will talk about how we share mustache templates in Rails 3. Let’s imagine that we have a task, where on first load of the page we show only 10 products. But when user scroll, we should automatically load more products on page (aka continuous …