January 2012
3 posts
6 tags
How to login to postgresql through psql from a... →
If you get these errors while trying to access your PostgreSQL database through ‘psql’: psql: FATAL:  Peer authentication failed for user “postgres” This was exactly what I was looking for. So I updated my postgreSQL install script.
Jan 23rd
16 notes
4 tags
RVM loses default Ruby version when starting new...
I recently installed a new Ruby version on a server using RVM. To make sure your new ruby installation will be used by default, you have to invoke the follow command: (I already blogged about this) But now, my server kept forgetting this and each time I ssh’ed to the server (and thus starting a new shell) I was back at the default system Ruby version. It seems you can repair your RVM...
Jan 23rd
26 notes
Varnish Guru Meditation
I had a problem where a Rails application communicated with a third-party API (Dropbox) to do some actions. The request would take significantly more time than a regular request, lasting for more than 15 second easily (fetching numerous directories and files). Your browser won’t timeout on such requests, but in my case, Varnish was. It would serve me with the following message: Clearly...
Jan 2nd