ssh_exchange_identification – Issue with GIT and SSH

ssh_exchange_identification – Issue with GIT and SSH

We’re huge fans of Gitlab at Anlek and about 6 months ago we decided to retire an old server hosting a custom built of gitlab for a newer, easier to update, docker driven one. We upgrade to the new gitlab server and It was really smooth to setup when using the docker image from sameersbn. The gitlab server has been working great and sameersbn did a great job allowing you to customize it and has been keeping it up to date! Despite a smooth start, we’ve noticed that git commands which involved the gitlab server (pull/push/fetch/etc) were failing at a rate of 1 in 2 commands!

Using Foreman with Upstart & Capistrano

Using Foreman with Upstart & Capistrano

Foreman is a great tool for running multiple processes along side your rails project. Processes like Redis, Sidekiq, Faye or any other process that doesn’t run within Rails itself. Foreman runs in your development environment as well as your production environments. To use Foreman in production, you have to export it’s config file in one of the following formats: bluepill inittab launchd runit supervisord systemd upstart Since most of the servers we work on...
Sublime Text Editor Random Caret Height and Width

Sublime Text Editor Random Caret Height and Width

Recently when working in Sublime Text Editor I’ve noticed that my caret changed from it’s usual look and feel to something that was extra wide and extra tall! This didn’t bother me too much until it started covering up brackets or quotes under the extra width of the caret. I’m not sure why this happens but after a long search I was finally able to fix it: Under “Preferences” > “Settings User” just add this:...
New Alfred 2 Workflows

New Alfred 2 Workflows

A few years ago I heard of this small app called Alfred. I started playing with it while it was still in its first Beta. After a few days of using it I know it was an app that would make a huge change in my workflow. I also knew I wanted to support the developers as much as I could so I bought the app as a “Mega Supporter”. Now I never thought that I would get anything extra for this, but it turns out that the developers wanted to thank their supporters by...

User does not respond to 'devise' method

I’ve recently went back to an old project and it seems to have stopped working giving me this error: ~/projectx/vendor/ruby/1.9.1/gems/devise-2.0.0/lib/devise/rails/routes.rb:391:in `raise_no_devise_method_error!': User does not respond to 'devise' method. This usually means you haven't loaded your ORM file or it's being loaded too late. To fix it, be sure to require 'devise/orm/YOUR_ORM' inside 'config/initializers/devise.rb' or before your application...
Access to the webpage was denied on chrome

Access to the webpage was denied on chrome

While working hard at getting an application up and running for a lunch tomorrow, I ran into this annoying screen:   Not really reading the message fully, I thought maybe my web server is throwing some sort of error that was telling chrome to stop the request. Quick google for “Access to the webpage was denied passenger” didn’t really return anything useful, however then I remembered that I switched to Pow a while back, so I google again for...

Wicked_PDF working in Rails 3.1

I recently updated one of my apps to Rails 3.1 and found that my PDF generating tests were failing because they were unable to find the CSS or images to use in the PDF. So I started playing around, and here is what I got: In your app, add a new initializer (or edit your existing wicked_pdf.rb initializer) and put the following: As you can see in the code, I also replaced the background urls with correct references, this is assuming that you’re keeping your CSS...

Cucumber visiting pages using different formats

Ever wonder how you can write a cucumber test that would test how your web app responds to a different format, something like JSON or XML? I was trying to do the following: Background: Given I am logged in And there is the following feeds: | title | body | category | | first feed | something good | default | | second feed | even better | notice | | 3rd feed | something awesome | notice | Scenario: Reading feeds via json When I go to the feeds page using json And I...