by avit
tags:
RoR
border:

I started using MongoDB at Gogobot a little while ago. While using it, I encountered some problems, but for the most part, things went pretty smooth.

Today, I encountered a bug that surprised me.

While it certainly should not have, I think it can surprise you as well, so I am writing it up here as a fair warning.

by avit
tags:
RoR
border:

For the past few months I have been super busy building the social graph behind Gogobot.

In this presentation I gave in Israel I go through a fraction of the Gogobot platform and how I implemented a social feature

Feel free to comment & discuss.

Enjoy!

by avit
tags:
RoR
border:

A few weeks back, we started slowly upgrading all of our queues at Gogobot to work with Sidekiq.

Posts on how awesome the experience was and how much better Sidekiq is from Resque coming soon, though with all the good came some bad.

by admin
tags:
RoR
border:

 

"Rails on scale" is an event focused on giving you ideas and tools to use on your real life rails application. The presentations will go in depth, into the language ,the framework, the tools and methods we used when building large scaled apps for customers. Even if you have an app that you don't call "big scale",this event will be very interesting to you since the depth of the lectures will be such that any rails/ruby developer will enjoy. 

by avit
tags:
RoR
border:

My slides from the talk I gave at RailsConf Israel 2012.

Enjoy!

by avit
tags:
RoR
border:

A while back I answered this StackOverflow question.

When you have a lot of specs, it makes sense to run them in separate logical groups and not just with rspec spec or something like that.

This way, you can save time and you can also run them in separate processes on the CI.

For example:

by avit
tags:
RoR
border:

As probably any geek out there, I upgraded my OS to Apple Mountain Lion.

The upgrade created a lot of problems for me, I basically had to reinstall almost everything, from MySql to homebrew.

I am not sure if everyone experienced the same thing, but that was the case for me.

One of the problems I encountered was that I could not install Nokogiri anymore on my machine, bundler would not install it and complain about dependencies not being installed (specifically libxml)

To fix it, you need to reinstall Ruby using RVM with livxml properly linked.

by avit
tags:
RoR
border:

Whenever I am logged in to a server or even when I am working on my own machine, I keep searching through the command history through up and down arrows.

While this can be efficient if you have 2-3 commands, it can be quite frustrating to find specific commands.

That is something I keep doing over and over again, and now I have a better way, I just grep through the list of commands, find the one I want, copy it and paste it into a new command, and I’m done.

This saves me a lot of time.

Here’s how:

by avit
tags:
border:

I wrote a blog post in my other personal blog about how to create a machine that will manage it’s own lifecycle.

I work a lot with background workers, and I constantly need a better way to manage my Resque worker machines, so I wrote a post about how I did it.

I booted up over 50 servers with about 600 Resque workers using this method, and all with a click of a button in the UI.

Worth your time to read it if you are using Resque/Sidekiq and you need to add workers on rush-times of your site or something.

by avit
tags:
RoR
border:

Lately, I needed to create worker machines (Machines that have Resque workers on them).

Usually, the process is very manual and tedious, you need to deploy the code to each machine (on code change), you need to start/stop/restart the workers and more.

Since I needed A LOT of workers, I really wanted to make the process automatic.

I wanted the machine to be in charge of everything it needs.

Meaning

Pages