Recently I updated Postgres.app and after that I started getting a weird error while
running Active Record tests locally using PostgreSQL adapter.

/Users/prathamesh/Projects/sources/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:674:in `initialize': could not connect to server: No such file or directory (PG::ConnectionBad)
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?

This was really weird error as the PostgreSQL server was running smoothly on port 5432
and I was able to run my rails apps without any issues. This issue was only happening
while running Active Record tests.

Well, the fix was simple. Just had to reinstall the pg gem and it fixed all issues!

Recently I started tracking the time I spent on various coding activities using Org mode.
C-c C-x C-i is used to start the timer and C-c C-x C-o is used to stop the timer.
I like to add some details about where the time was spent when the timer is stopped.
Org mode allows to enter such notes using org-log-note-clock-out variable.

The description of this variable says -

Non-nil means record a note when clocking out of an item.

So I set the variable to true in my Org settings.

(setqorg-log-note-clock-outt)

Now whenever I stop the timer, it opens a new buffer from where I can add a note describing what
was done in that particular time.

Here we use auto-mode-alist variable which associates major modes
with file patterns so that when that file is opened, the major mode
gets automatically activated.

The format is as follows:

(PATTERN.major-mode)

So \\.jsx\\' matches .jsx as well as .js.jsx files and enables
web-mode for them. It also sets content-type as jsx for these
files so that JSX tags get highlighted and indentation for JSX works
properly.

React also allows JSX in plain .js files. My configuration for .js
files was as follows:

(add-to-list'auto-mode-alist'("\\.js\\'".web-mode))

But JSX tags don’t get highlighted and indentation also does not work
with above configuration in plain .js files.

This happens because content-type is set to javascript instead of
jsx.

This problem can be solved using adding a hook when web-mode as suggested in
this issue.

Now the content-type will be set to jsx only when original
content-type is javascript. This solved the issue completely as
normal HTML and ERB files work as before and JSX tags and indentation
works in plain JavaScript files.

kgio gem is dependency of unicorn which is the application server
used by Codetriage. Looking at
documentation of kgio, I
found out that latest gem version is 2.9.2 while as our Gemfile.lock
still had 2.8.0.

Update

After i submitted the PR, the tests could not be run on Travis because
of error related to installing raindrops gem which is also
dependency of Unicorn:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/travis/.rvm/rubies/ruby-2.2.0-preview1/bin/ruby -r ./siteconf20141002-1677-1g08hg8.rb extconf.rb
....
linux_inet_diag.c:28:2: error: ‘TRAP_BEG’ undeclared (first use in this function)
linux_inet_diag.c:28:2: note: each undeclared identifier is reported only once for each function it appears in
linux_inet_diag.c:30:2: error: ‘TRAP_END’ undeclared (first use in this function)
linux_inet_diag.c: At top level:
linux_inet_diag.c:22:1: warning: ‘rb_thread_blocking_region’ defined but not used [-Wunused-function]
make: ***[linux_inet_diag.o] Error 1

I did not had this problem locally when I did bundle install. But to
fix this, I again checked
documentation for
raindrops. Turns out that the latest release of raindrops is
0.13.0 whereas Gemfile.lock was still pointing to 0.11.0. Also
this release is specific to 2.2.0 according to changelog.