Ruby SSL certificate verification errors (0)

Recent entry January 2, 2012

On a client project, we had recently installed capistrano-campfire to get notifications in our Campfire chatroom whenever a deployment takes place.

Unfortunately I kept getting

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)

when I tried deploying. There’s nothing quite like starting the year with SSL issues…

According to this article the problem

… comes from the fact that the new Ruby 1.9 installation doesn’t find the certification authority certificates (CA Certs) used to verify the authenticity of secured web servers.

I my case, I was using Ruby 1.8 (well, REE) on OS X Snow Leopard, but the problem - and solution - was the same nevertheless.

, , Read the full entry , 0 comments

Dear Open Source Software (0)

Recent entry December 18, 2011

Dear Open Source Software

I don’t think I have ever written you before, but there is something I wanted to get off my chest.

I just wanted to let you know, that you rock! Just the other day, you saved my customer a bunch of money - and made me look like a hero.

Okay, I realize you only did so because I had done part of the work already. And I am probably giving you credit for something you didn’t really do, but thanks to you a team of strangers had implemented features I needed and given them back to me.

Also, the way you enable people I have never heard about to take something I have created and transform into something they can use, is mind boggling.

Thanks.

Yours, Jakob

PS: I know, I know… I don’t contribute often enough, and I will some day, I promise. Soon.

, 0 comments

Challenge the deadline (4)

Recent entry November 30, 2011

There are basically two kinds of deadlines: Real, and Arbitrary.

Real deadlines are those necessitated by some external, unchangeable event. For example legislation, the company running out of money, the CEO having to get up in front of the world press and announce the product, or a marketing campaign kicking off.

, , Read the full entry , 4 comments

How to export CSV data from PostgreSQL (0)

Recent entry November 7, 2011

Just because I can never remember how to do this:

psql my_database -c "COPY (SELECT stuff FROM my_table) TO STDOUT CSV" > my_file.csv

Works in at least PostgreSQL 8.4.

, , 0 comments

Routing requests to local development environment (1)

Recent entry October 19, 2011

Some third party systems needs to send requests to your web application in order to work.

Facebook fetches the actual application, Chargify notifies you of subscription changes, payment gateways tell you the transaction has been accepted.

That’s fine in production where you have a public facing webserver running, but when you’re developing locally you have to jump through a few hoops.

, , Read the full entry , 1 comments

Import MTS video clips to iMovie (1)

Recent entry September 12, 2011

My parents have a digital camcorder. A week long vacation with said camcorder, my parents, and their only grandchild produces a fair amount of raw footage. Before we headed back home after the vacation I wisely snapped up all the footage from their camera hoping to eventually run it through iMovie.

Turns out their camcorder stores its clips in MTS/AVCHD format, and I didn’t grab all the fluff^Wnecessary files. As a result iMovie ‘11 cannot import the MTS video clips.

, , , , Read the full entry , 1 comments

Digging into Objective-C (again) (2)

Recent entry September 8, 2011

While the concept of writing native Mac apps in Ruby definitely appeals to me, I must say the experience isn’t quite as easy as I was looking for.

After writing my last post I realized that what I had thought to be the path of least resistance, wasn’t. And while I knew I’d run into resistance with XCode and Objective-C as well, at least I’d be doing things the “proper” way and learning new stuff.

So I fired up XCode once again and set out to write a Mac application. The following is a bunch of notes and stray thoughts I scribbled down during those first hours - my first (well, fourth) impressions of developing iApps coming from Ruby.

, Read the full entry , 2 comments

Running MacRuby and HotCocoa on Snow Leopard (0)

Recent entry August 15, 2011

I spent some time over the weekend playing around with MacRuby and HotCocoa, trying to put together a simple Mac application.

Getting MacRuby and HotCocoa running on Snow Leopard wasn’t entirely as easy as it should have been, though. Here are some of the hoops I jumped through.

, , Read the full entry , 0 comments

The state of Ruby in Denmark (5)

Recent entry August 11, 2011

Yesterday marked the 5 year anniversary of Copenhagen Ruby Brigade. Five years ago, I was part of founding that group. Five years, imagine that.

Back then, you could have heard me claim I knew all the Ruby developers in Denmark. While probably an exaggeration, it wasn’t far from the truth. Thankfully that is no longer the case. Yesterday, as I was sitting in the conference room at Podio looking at the other people present, I realized I didn’t know half of them. This got me thinking about how far we’ve come in the danish Ruby community over the last years.

, , , Read the full entry , 5 comments

Announcing r-conomic (1)

Recent entry August 2, 2011

If you have ever tried to integrate with e-conomic you’ll likely recognize that their API comes out pretty high on the How to make a crappy API checklist.

Luckily, if you’re using Ruby, you can now use the r-conomic gem to handle SOAP and the other tedious bits for you.

I’ll let the README do the talking while I head on over to my Working With Rails profile and finally check off the “Has published a Ruby gem” checkbox.

, , , Read the full entry , 1 comments

Archives
More entries in the archives »
What is this?
This is the virtual home of Jakob Skjerning, a system developer from Copenhagen, Denmark. Find out more...