Blog Archives

Git for dummies

Only just started to finally get stuck into learning git. It certainly seems to be revolutionising the way we do version control. I’m pretty hooked on subversion and I have to admit, I thought that was as good as it gets! But the hype around git to much to ignore. Here’s some resources I’ve found [...]

Getting Ruby to talk to Oracle with Cygwin

I need to be able to use Ruby to talk to Oracle databases to help us easily build scripts for maintenance and support. So, I started doing some googling and found ruby-oci8. Excellent! I’m also mainly PC bound so I needed to get this working on my cygwin installation. My entire Ruby environment is running [...]

Accessing github from behind a proxy

If you’re behind a proxy which restricts outbound ports (i.e. only port 80 and 443), then you’ll be pleased to know that you can still access Github. Rather than using the git:// protocol (defaulting to port 9418), you can use the HTTP protocol to do the same thing! Article on Github about it here. git [...]

SSL setup for Ruby

I found recently that I wanted to get SSL enabled when making HTTP connections with Ruby. However, if you’re wishing to talk to servers that have certificates signed by commercial certificate authorities then you won’t be able to verify them when you make a connection: require ‘net/http’ require ‘net/https’ http = Net::HTTP.new(‘www.google.com’, 443) http.use_ssl = [...]

Thinking integration

After working on several web projects that have required plenty of integration involving many systems within the enterprise, I’ve come to some realisations about getting integration right: Services must be exposed at the right level It’s extremely tempting when performing integration to try and apply good application programming practices of keeping methods simple and stringing [...]

Ok, ok, I get it, jQuery is cool!

I’d been hearing about jQuery for quite a whiles now but resisted the temptation to dive in. The Rails community in particular is quite abuzz with it and I’d heard the creator of it interviewed on Geoffrey Grosenbach’s Ruby on Rails Podcast. Still I resisted, surely prototype and scriptaculous were the way to go, after [...]

Dependency injection for Rails

I’d been looking around for how to do Dependency Injection (Inversion of Control) in my Rails App. I don’t need anything particularly fancy, just the ability for classes (controllers in particular) to have different service implementations injected into them depending on the environment that they’re in. Something which I take for granted in the Java [...]