Hire Us

Railsware Blog

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

Chrome extension that improves New Relic navigation experience

Recently we’ve released Chrome extension that improves New Relic navigation experience, by giving ability to return to time spans you’ve selected previously. If you running out of time while troubleshooting application performance issues New Relic can help you a lot. Tracing general performace issues and bugs become faster and easier. …

Speeding up Authlogic login for Postgres and MySQL

Update (2012, 10 December) Authologic-team patched weird behavior with (I)LIKE and now Postgres users can make everything without clutches. Just use new version 3.2.0. Introduction User authentication – is the most utilized part of Authlogic gem. But default configuration of current version(3.1.2) doesn’t use database indexes or their usage is …

Use New Relic like a Pro

Introduction New Relic has become an industry standard for web applications performance measurement in Rails community.Simply adding and configuring newrelic_rpm gem for your Rails application gives you a great overview of its performance with an adequate level of details. There are still a few improvements you can do to make …

Rails 3.2.9 through associations issues

Recent 3.2.9 release bugfix has brought an issue for through associations.inverse_of usage can solve the problem only partially (polymorphic associations are still affected). UPDATE: patch that introduced this issue has just been reverted in rails master. Few days ago Rails 3.2.9 was released.Among the bugfixes a fix for through associations …

yield-gotcha every Ruby developer should be aware

yield-gotcha every Ruby developer should be aware of

Preface Using yield and blocks is what makes Ruby so different from other scripting languages. But in some cases yield can lead to unpredictable behavior and it’s crucial to understand what can go wrong. Let’s consider next code: File.open(“/etc/hosts”, “r”) do |f| content << f.read end File is opened, used …

Premium IT consulting versus IT Outsourcing

Working with non-native developers without a project manager, really can that be true? In the past 11 years I have experienced, developed and improved many different structures to improve the output of both nearshore and offshore outsourcing teams, but memories just fail to recollect any case related to an outsourcing …

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 …

Mailtrap Feed Me Campaign

The Mailtrap Feed Me campaign has started – share your fail story and win an iPad or other prizes! Have you ever used your production database in staging or development environments just to fix some tricky bug and make sure everything works as expected.Hell yeah, we all do this right?But …

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 …

Remove QA headache while testing email delivery

Are you a QA engineer or tester? Have you ever sent emails to real users by mistake? Did you have to create additional email accounts for testing and was it difficult to trace emails from a bunch of mailboxes? If your answer is “Yes” for at least one question, this …

Designs Evaluation

The goal of this post is to define main criteria of design evaluation for non-designers. As for me, there are two main questions in this case and answers to them should help in design evaluation. Ability to answer those questions increases the value of your point of view.

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 …

PivotalBooster version 1.1.0.beta – what’s new?

We are glad to announce you a major release of PivotalBooster version 1.1.0.beta. With its new and enhanced features, working with your projects, tasks and stories will become even more convenient and flexible. For example, now it is much easier to create a new story or update an existing one …

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 …